Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
85671af0b5 | |||
1f0016f4db |
3 changed files with 3 additions and 3 deletions
|
@ -975,7 +975,7 @@ class AwsCliClient(S3ClientWrapper):
|
||||||
response = self._to_json(output)
|
response = self._to_json(output)
|
||||||
|
|
||||||
assert response.get("Policy"), f"Expected Policy in response:\n{response}"
|
assert response.get("Policy"), f"Expected Policy in response:\n{response}"
|
||||||
assert response["Policy"].get("PolicyName") == policy_name, f"PolicyName should be equal to {policy_name}"
|
assert response["Policy"].get("Arn") == policy_arn, f"PolicyArn should be equal to {policy_arn}"
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
|
@ -776,7 +776,7 @@ class Boto3ClientWrapper(S3ClientWrapper):
|
||||||
def iam_get_policy(self, policy_arn: str) -> dict:
|
def iam_get_policy(self, policy_arn: str) -> dict:
|
||||||
response = self.boto3_iam_client.get_policy(PolicyArn=policy_arn)
|
response = self.boto3_iam_client.get_policy(PolicyArn=policy_arn)
|
||||||
assert response.get("Policy"), f"Expected Policy in response:\n{response}"
|
assert response.get("Policy"), f"Expected Policy in response:\n{response}"
|
||||||
assert response["Policy"].get("PolicyName") == policy_name, f"PolicyName should be equal to {policy_name}"
|
assert response["Policy"].get("Arn") == policy_arn, f"PolicyArn should be equal to {policy_arn}"
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
|
@ -408,7 +408,7 @@ class S3ClientWrapper(HumanReadableABC):
|
||||||
"""Adds the specified user to the specified group"""
|
"""Adds the specified user to the specified group"""
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def iam_attach_group_policy(self, group: str, policy_arn: str) -> dict:
|
def iam_attach_group_policy(self, group_name: str, policy_arn: str) -> dict:
|
||||||
"""Attaches the specified managed policy to the specified IAM group"""
|
"""Attaches the specified managed policy to the specified IAM group"""
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
|
|
Loading…
Reference in a new issue