Made some corrections to the developer identity response and added checks to add coverage.
This commit is contained in:
parent
49cce220ac
commit
383b0c1c36
2 changed files with 6 additions and 13 deletions
|
|
@ -51,6 +51,7 @@ def test_get_credentials_for_identity():
|
|||
conn = boto3.client('cognito-identity', 'us-west-2')
|
||||
result = conn.get_credentials_for_identity(IdentityId='12345')
|
||||
|
||||
assert result.get('Expiration') > 0 or result.get('ResponseMetadata').get('HTTPStatusCode') == 200
|
||||
assert result.get('IdentityId') == '12345' or result.get('ResponseMetadata').get('HTTPStatusCode') == 200
|
||||
|
||||
|
||||
|
|
@ -65,4 +66,5 @@ def test_get_open_id_token_for_developer_identity():
|
|||
},
|
||||
TokenDuration=123
|
||||
)
|
||||
assert len(result['Token'])
|
||||
assert result['IdentityId'] == '12345'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue