IAM delete_server_certificate (#1380)
* IAM delete_server_certificate * flake8 fixes
This commit is contained in:
parent
0c01c7f495
commit
52ce8d378f
4 changed files with 34 additions and 1 deletions
|
|
@ -58,6 +58,19 @@ def test_upload_server_cert():
|
|||
"arn:aws:iam::123456789012:server-certificate/certname")
|
||||
|
||||
|
||||
@mock_iam_deprecated()
|
||||
def test_delete_server_cert():
|
||||
conn = boto.connect_iam()
|
||||
|
||||
conn.upload_server_cert("certname", "certbody", "privatekey")
|
||||
conn.get_server_certificate("certname")
|
||||
conn.delete_server_cert("certname")
|
||||
with assert_raises(BotoServerError):
|
||||
conn.get_server_certificate("certname")
|
||||
with assert_raises(BotoServerError):
|
||||
conn.delete_server_cert("certname")
|
||||
|
||||
|
||||
@mock_iam_deprecated()
|
||||
@raises(BotoServerError)
|
||||
def test_get_role__should_throw__when_role_does_not_exist():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue