feat: return credential state for all status errors

This commit is contained in:
Damian Debkowski authored and Danielle Miu committed 2024-07-17 10:54:18 -04:00
1 parent a0cb3b8fee
commit 08d1e99e8b
16 files changed
+1450 -623

No files matched your search

+3 -2
View File
@@ -400,9 +400,10 @@ func validSTSMock() []credential.AwsCredentialPersistedStateOption {
}
// TestAwsS3Error returns an s3 api error
func TestAwsS3Error(code, msg string) error {
func TestAwsS3Error(code, op, msg string) error {
return &smithy.OperationError{
ServiceID: "s3",
ServiceID: "s3",
OperationName: op,
Err: &smithy.GenericAPIError{
Code: code,
Message: msg,