Skip to content

Commit

Permalink
tests/resource/aws_iam_user_login_profile: Ensure testDecryptPassword…
Browse files Browse the repository at this point in the history
…AndTest honors current testing region (#15697)

Reference: #15688
Reference: #15690

Output from acceptance testing in AWS Commercial:

```
--- PASS: TestAccAWSUserLoginProfile_basic (25.86s)
```

Output from acceptance testing in AWS GovCloud (US):

```
--- PASS: TestAccAWSUserLoginProfile_basic (36.33s)
```
  • Loading branch information
bflad authored Oct 20, 2020
1 parent 512f2ab commit e81b095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_iam_user_login_profile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func testDecryptPasswordAndTest(nProfile, nAccessKey, key string) resource.TestC
}

iamAsCreatedUserSession := session.New(&aws.Config{
Region: aws.String("us-west-2"),
Region: aws.String(testAccGetRegion()),
Credentials: credentials.NewStaticCredentials(accessKeyId, secretAccessKey, ""),
})
_, err = iamAsCreatedUserSession.Config.Credentials.Get()
Expand Down

0 comments on commit e81b095

Please sign in to comment.