add unit tests for get_federation_token
This commit is contained in:
parent
fb558bb1ca
commit
8e541ae9f8
2 changed files with 24 additions and 0 deletions
|
|
@ -15,3 +15,13 @@ def test_sts_get_session_token():
|
|||
res.status_code.should.equal(200)
|
||||
res.data.should.contain("SessionToken")
|
||||
res.data.should.contain("AccessKeyId")
|
||||
|
||||
|
||||
def test_sts_get_federation_token():
|
||||
backend = server.create_backend_app("sts")
|
||||
test_client = backend.test_client()
|
||||
|
||||
res = test_client.get('/?Action=GetFederationToken&Name=Bob')
|
||||
res.status_code.should.equal(200)
|
||||
res.data.should.contain("SessionToken")
|
||||
res.data.should.contain("AccessKeyId")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue