Skip to content

Commit

Permalink
Added cleanup/Delete Policy whereever applicable
Browse files Browse the repository at this point in the history
Signed-off-by: Ketan Arlulkar <6256964+ketanarlulkar@users.noreply.github.com>
  • Loading branch information
ketanarlulkar committed May 17, 2022
1 parent d1cc1d8 commit 747d563
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions s3tests_boto3/functional/test_iam.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def test_put_user_policy():
)
client.put_user_policy(PolicyDocument=policy_document, PolicyName='AllAccessPolicy',
UserName=get_tenant_user_id())
client.delete_user_policy(PolicyName='AllAccessPolicy', UserName=get_tenant_user_id())


@attr(resource='user-policy')
Expand Down Expand Up @@ -159,6 +160,7 @@ def test_put_existing_user_policy():
UserName=get_tenant_user_id())
client.put_user_policy(PolicyDocument=policy_document, PolicyName='AllAccessPolicy',
UserName=get_tenant_user_id())
client.delete_user_policy(PolicyName='AllAccessPolicy', UserName=get_tenant_user_id())


@attr(resource='user-policy')
Expand All @@ -181,6 +183,7 @@ def test_list_user_policy():
UserName=get_tenant_user_id())
response = client.list_user_policies(UserName=get_tenant_user_id())
eq("AllAccessPolicy" in response["PolicyNames"], True)
client.delete_user_policy(PolicyName='AllAccessPolicy', UserName=get_tenant_user_id())


@attr(resource='user-policy')
Expand Down

0 comments on commit 747d563

Please sign in to comment.