Skip to content

Commit

Permalink
isolate unit tests from local aws config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasaki1994 committed Jun 27, 2023
1 parent 461e68f commit ba0bf40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/resolve_credentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,8 @@ 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"}),
}

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

0 comments on commit ba0bf40

Please sign in to comment.