mirror of
https://github.com/storytold/irsa-manager.git
synced 2026-10-15 00:03:20 +00:00
update attached role policies
This commit is contained in:
@@ -347,13 +347,14 @@ func (m *mockAwsClient) StsClient() *awsclient.AwsStsClient {
|
||||
|
||||
type (
|
||||
mockAwsIamAPI struct {
|
||||
createOidcErr error
|
||||
deleteOidcErr error
|
||||
createRoleErr error
|
||||
deleteRoleErr error
|
||||
updateAssumeRolePolicyError error
|
||||
attachRolePolicyError error
|
||||
detachRolePolicyError error
|
||||
createOidcErr error
|
||||
deleteOidcErr error
|
||||
createRoleErr error
|
||||
deleteRoleErr error
|
||||
updateAssumeRolePolicyError error
|
||||
listAttachedRolePoliciesError error
|
||||
attachRolePolicyError error
|
||||
detachRolePolicyError error
|
||||
}
|
||||
mockAwsS3API struct {
|
||||
createBucketErr bool
|
||||
@@ -374,6 +375,10 @@ func (m *mockAwsIamAPI) CreateRole(ctx context.Context, params *iam.CreateRoleIn
|
||||
return nil, m.createRoleErr
|
||||
}
|
||||
|
||||
func (m *mockAwsIamAPI) ListAttachedRolePolicies(ctx context.Context, params *iam.ListAttachedRolePoliciesInput, optFns ...func(*iam.Options)) (*iam.ListAttachedRolePoliciesOutput, error) {
|
||||
return nil, m.listAttachedRolePoliciesError
|
||||
}
|
||||
|
||||
func (m *mockAwsIamAPI) UpdateAssumeRolePolicy(ctx context.Context, params *iam.UpdateAssumeRolePolicyInput, optFns ...func(*iam.Options)) (*iam.UpdateAssumeRolePolicyOutput, error) {
|
||||
return nil, m.updateAssumeRolePolicyError
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user