Fix boto3 IAM test function names
This commit is contained in:
parent
67cb2e25bb
commit
e9f8bec91a
@ -537,7 +537,7 @@ def test_generate_credential_report():
|
|||||||
'generate_credential_report_result']['state'].should.equal('COMPLETE')
|
'generate_credential_report_result']['state'].should.equal('COMPLETE')
|
||||||
|
|
||||||
@mock_iam
|
@mock_iam
|
||||||
def test_generate_credential_report_boto3():
|
def test_boto3_generate_credential_report():
|
||||||
conn = boto3.client('iam', region_name='us-east-1')
|
conn = boto3.client('iam', region_name='us-east-1')
|
||||||
result = conn.generate_credential_report()
|
result = conn.generate_credential_report()
|
||||||
result['State'].should.equal('STARTED')
|
result['State'].should.equal('STARTED')
|
||||||
@ -560,7 +560,7 @@ def test_get_credential_report():
|
|||||||
report.should.match(r'.*my-user.*')
|
report.should.match(r'.*my-user.*')
|
||||||
|
|
||||||
@mock_iam
|
@mock_iam
|
||||||
def test_get_credential_report():
|
def test_boto3_get_credential_report():
|
||||||
conn = boto3.client('iam', region_name='us-east-1')
|
conn = boto3.client('iam', region_name='us-east-1')
|
||||||
conn.create_user(UserName='my-user')
|
conn.create_user(UserName='my-user')
|
||||||
with assert_raises(ClientError):
|
with assert_raises(ClientError):
|
||||||
|
Loading…
Reference in New Issue
Block a user