Skip to content

Commit

Permalink
Update config/resolve_credentials_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
lucix-aws authored Aug 22, 2023
1 parent 035b94b commit 3360b34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/resolve_credentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,9 @@ func TestResolveCredentialsIMDSClient(t *testing.T) {
opts := []func(*LoadOptions) error{
WithRetryer(func() aws.Retryer { return aws.NopRetryer{} }),
WithHTTPClient(httpClient),
WithSharedConfigProfile("profile-name"),
WithSharedConfigFiles([]string{"creds-file"}),
// 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 3360b34

Please sign in to comment.