sts: Implement get_caller_identity (#806)
Return a canned response Signed-off-by: Andrew Harris <andrew.harris@getbraintree.com>
This commit is contained in:
parent
55f39265dd
commit
f68b2963db
3 changed files with 35 additions and 0 deletions
|
|
@ -26,3 +26,14 @@ def test_sts_get_federation_token():
|
|||
res.status_code.should.equal(200)
|
||||
res.data.should.contain(b"SessionToken")
|
||||
res.data.should.contain(b"AccessKeyId")
|
||||
|
||||
|
||||
def test_sts_get_caller_identity():
|
||||
backend = server.create_backend_app("sts")
|
||||
test_client = backend.test_client()
|
||||
|
||||
res = test_client.get('/?Action=GetCallerIdentity')
|
||||
res.status_code.should.equal(200)
|
||||
res.data.should.contain(b"Arn")
|
||||
res.data.should.contain(b"UserId")
|
||||
res.data.should.contain(b"Account")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue