Skip to content

Commit

Permalink
Merge pull request #2761 from aws/fix-dont-fail-test-if-credentials-set
Browse files Browse the repository at this point in the history
Don't fail credentials unit tests if credentials are found on a file
  • Loading branch information
Madrigal authored Aug 23, 2024
2 parents d1d210d + c10d543 commit 097b04b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changelog/3ddb265e427047bea4b15251acbcd270.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "3ddb265e-4270-47be-a4b1-5251acbcd270",
"type": "bugfix",
"description": "Don't fail credentials unit tests if credentials are found on a file",
"modules": [
"config"
]
}
1 change: 1 addition & 0 deletions config/resolve_credentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ func TestResolveCredentialsIMDSClient(t *testing.T) {
WithRetryer(func() aws.Retryer { return aws.NopRetryer{} }),
WithHTTPClient(httpClient),
WithSharedConfigFiles([]string{}),
WithSharedCredentialsFiles([]string{}),
}

if tc.enabledState != imds.ClientDefaultEnableState {
Expand Down

0 comments on commit 097b04b

Please sign in to comment.