1 parent 8a2e7e3 commit aced86bCopy full SHA for aced86b
1 file changed
src/integration_tests/tests/configure.bats
@@ -10,9 +10,17 @@ load 'clean'
10
assert_not_exists "$AWS_SHARED_CREDENTIALS_FILE"
11
assert_not_exists "$AWSCLI_LOGIN_ROOT/.awscli-login/config"
12
13
+ export AWS_REGION=us-east-1
14
+ export AWS_ENDPOINT_URL="http://127.0.0.1:8888" # Avoid bothering AWS
15
+
16
run aws login
17
assert_failure
- 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
24
}
25
26
@test "Enable plugin in ~/.aws/config" {
0 commit comments