Add create_login_profile for iam service
This commit is contained in:
parent
2881c9b20c
commit
5aec4d9de5
3 changed files with 44 additions and 0 deletions
|
|
@ -96,6 +96,17 @@ def test_get_user():
|
|||
conn.get_user('my-user')
|
||||
|
||||
|
||||
@mock_iam()
|
||||
def test_create_login_profile():
|
||||
conn = boto.connect_iam()
|
||||
with assert_raises(BotoServerError):
|
||||
conn.create_login_profile('my-user', 'my-pass')
|
||||
conn.create_user('my-user')
|
||||
conn.create_login_profile('my-user', 'my-pass')
|
||||
with assert_raises(BotoServerError):
|
||||
conn.create_login_profile('my-user', 'my-pass')
|
||||
|
||||
|
||||
@mock_iam()
|
||||
def test_add_user_to_group():
|
||||
conn = boto.connect_iam()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue