chore(deps): move to aws-sdk-go-v2 (#5381)

This commit is contained in:
Sylvain Baubeau
2023-10-18 16:21:56 +02:00
committed by GitHub
parent 00f2059e5d
commit 9fba79f0b6
7 changed files with 136 additions and 131 deletions

View File

@@ -36,13 +36,16 @@ func TestAwsCommandRun(t *testing.T) {
},
{
name: "fail without creds",
envs: map[string]string{
"AWS_PROFILE": "non-existent-profile",
},
options: flag.Options{
RegoOptions: flag.RegoOptions{SkipPolicyUpdate: true},
AWSOptions: flag.AWSOptions{
Region: "us-east-1",
},
},
wantErr: "failed to retrieve credentials",
wantErr: "non-existent-profile",
},
}
@@ -57,7 +60,6 @@ func TestAwsCommandRun(t *testing.T) {
tt.options.AWSOptions.Endpoint = addr
tt.options.GlobalOptions.Timeout = time.Minute
t.Setenv("AWS_PROFILE", "non-existent-profile")
for k, v := range tt.envs {
t.Setenv(k, v)
}