Add create_login_profile for iam service

This commit is contained in:
ttacon 2014-10-29 15:31:49 -04:00
commit 5aec4d9de5
3 changed files with 44 additions and 0 deletions

View file

@ -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()