From c10d54316d559ac37a2e0bb7e63f3ec985a5270e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Madrigal=20=F0=9F=90=A7?= <599908+Madrigal@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:44:25 -0400 Subject: [PATCH] Don't fail credentials unit tests if credentials are found on a file --- .changelog/3ddb265e427047bea4b15251acbcd270.json | 8 ++++++++ config/resolve_credentials_test.go | 1 + 2 files changed, 9 insertions(+) create mode 100644 .changelog/3ddb265e427047bea4b15251acbcd270.json diff --git a/.changelog/3ddb265e427047bea4b15251acbcd270.json b/.changelog/3ddb265e427047bea4b15251acbcd270.json new file mode 100644 index 00000000000..06404c6dd51 --- /dev/null +++ b/.changelog/3ddb265e427047bea4b15251acbcd270.json @@ -0,0 +1,8 @@ +{ + "id": "3ddb265e-4270-47be-a4b1-5251acbcd270", + "type": "bugfix", + "description": "Don't fail credentials unit tests if credentials are found on a file", + "modules": [ + "config" + ] +} \ No newline at end of file diff --git a/config/resolve_credentials_test.go b/config/resolve_credentials_test.go index 4288967e3cd..503a1ec7be3 100644 --- a/config/resolve_credentials_test.go +++ b/config/resolve_credentials_test.go @@ -578,6 +578,7 @@ func TestResolveCredentialsIMDSClient(t *testing.T) { WithRetryer(func() aws.Retryer { return aws.NopRetryer{} }), WithHTTPClient(httpClient), WithSharedConfigFiles([]string{}), + WithSharedCredentialsFiles([]string{}), } if tc.enabledState != imds.ClientDefaultEnableState {