[#274] Fix iam_get_policy function
This commit is contained in:
parent
54b42e2d8d
commit
ae9e8d8c30
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue