Skip to content

Commit

Permalink
isolate unit tests from local aws config file (aws#2160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasaki1994 authored Aug 23, 2023
1 parent 1dfaa98 commit 0f992e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/resolve_credentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,9 @@ func TestResolveCredentialsIMDSClient(t *testing.T) {
opts := []func(*LoadOptions) error{
WithRetryer(func() aws.Retryer { return aws.NopRetryer{} }),
WithHTTPClient(httpClient),
// separate from the local config, should it exist - the default loader will ignore nonexistent profiles
WithSharedConfigProfile(" "),
WithSharedConfigFiles([]string{}),
}

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

0 comments on commit 0f992e7

Please sign in to comment.