[#274] Fix iam_attach_group_policy function #274

Merged
abereziny merged 2 commits from r.chernykh/frostfs-testlib:test-iam into master 2024-08-05 12:48:59 +00:00
Showing only changes of commit 85671af0b5 - Show all commits

View file

@ -776,7 +776,7 @@ class Boto3ClientWrapper(S3ClientWrapper):
def iam_get_policy(self, policy_arn: str) -> dict:
response = self.boto3_iam_client.get_policy(PolicyArn=policy_arn)
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