Causes get_server_certificate to fail correctly
When no certificate with the name exists, the API should return a 404 (NoSuchEntity).
This commit is contained in:
parent
ae938223d4
commit
4bfbcf4d03
2 changed files with 12 additions and 0 deletions
|
|
@ -21,6 +21,14 @@ def test_get_all_server_certs():
|
|||
cert1.arn.should.equal("arn:aws:iam::123456789012:server-certificate/certname")
|
||||
|
||||
|
||||
@mock_iam()
|
||||
def test_get_server_cert_doesnt_exist():
|
||||
conn = boto.connect_iam()
|
||||
|
||||
with assert_raises(BotoServerError):
|
||||
conn.get_server_certificate("NonExistant")
|
||||
|
||||
|
||||
@mock_iam()
|
||||
def test_get_server_cert():
|
||||
conn = boto.connect_iam()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue