Skip to content

Commit 0c83db2

Browse files
committed
FIXUP
1 parent d9b7aaa commit 0c83db2

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/integration_tests/tests/configure.bats

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,17 @@ load 'clean'
1010
assert_not_exists "$AWS_SHARED_CREDENTIALS_FILE"
1111
assert_not_exists "$AWSCLI_LOGIN_ROOT/.awscli-login/config"
1212

13+
export AWS_REGION=us-east-1
14+
export AWS_ENDPOINT_URL="http://127.0.0.1:8888" # Avoid bothering AWS
15+
1316
run aws login
1417
assert_failure
15-
assert_line --partial "aws: error: argument command: Invalid choice"
18+
if [ -v AWSCLI_TEST_V2 ]; then
19+
# New behavior: SSO always attempted in V2 with invalid credentials.
20+
assert_line --partial "Attempting to open your default browser."
21+
else
22+
assert_line --partial "aws: error: argument command: Invalid choice"
23+
fi
1624
}
1725

1826
@test "Enable plugin in ~/.aws/config" {

0 commit comments

Comments
 (0)