Implementing delete-group endpoint and appropriate test case
This commit is contained in:
parent
0c3d7c4f04
commit
876ff476f1
3 changed files with 23 additions and 0 deletions
|
|
@ -182,3 +182,14 @@ def test_list_group_policies():
|
|||
conn.list_group_policies(GroupName="my-group")["PolicyNames"].should.equal(
|
||||
["my-policy"]
|
||||
)
|
||||
|
||||
|
||||
@mock_iam
|
||||
def test_delete_group():
|
||||
conn = boto3.client('iam', region_name='us-east-1')
|
||||
conn.create_group(GroupName='my-group')
|
||||
groups = conn.list_groups()
|
||||
assert groups['Groups'][0]['GroupName'] == 'my-group'
|
||||
assert len(groups['Groups']) == 1
|
||||
conn.delete_group(GroupName='my-group')
|
||||
conn.list_groups()['Groups'].should.be.empty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue