From 0f992e7cca6a40404f0b3b80a2dec74bd631156d Mon Sep 17 00:00:00 2001 From: Tatsuya Sasaki <45072971+Sasaki1994@users.noreply.github.com> Date: Wed, 23 Aug 2023 23:02:41 +0900 Subject: [PATCH] isolate unit tests from local aws config file (#2160) --- config/resolve_credentials_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/resolve_credentials_test.go b/config/resolve_credentials_test.go index f099594c77d..3e128966d9c 100644 --- a/config/resolve_credentials_test.go +++ b/config/resolve_credentials_test.go @@ -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 {