merge
This commit is contained in:
parent
181b5539f6
commit
e51d1bfade
172 changed files with 49629 additions and 49629 deletions
|
|
@ -1,39 +1,39 @@
|
|||
from __future__ import unicode_literals
|
||||
import sure # noqa
|
||||
|
||||
import moto.server as server
|
||||
|
||||
'''
|
||||
Test the different server responses
|
||||
'''
|
||||
|
||||
|
||||
def test_sts_get_session_token():
|
||||
backend = server.create_backend_app("sts")
|
||||
test_client = backend.test_client()
|
||||
|
||||
res = test_client.get('/?Action=GetSessionToken')
|
||||
res.status_code.should.equal(200)
|
||||
res.data.should.contain(b"SessionToken")
|
||||
res.data.should.contain(b"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(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")
|
||||
from __future__ import unicode_literals
|
||||
import sure # noqa
|
||||
|
||||
import moto.server as server
|
||||
|
||||
'''
|
||||
Test the different server responses
|
||||
'''
|
||||
|
||||
|
||||
def test_sts_get_session_token():
|
||||
backend = server.create_backend_app("sts")
|
||||
test_client = backend.test_client()
|
||||
|
||||
res = test_client.get('/?Action=GetSessionToken')
|
||||
res.status_code.should.equal(200)
|
||||
res.data.should.contain(b"SessionToken")
|
||||
res.data.should.contain(b"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(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