Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isolate unit tests from local aws config file #2160

Merged
merged 3 commits into from
Aug 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading