2013-08-03 21:21:25 +00:00
|
|
|
import sure # noqa
|
2013-05-24 21:22:34 +00:00
|
|
|
|
|
|
|
import moto.server as server
|
|
|
|
|
|
|
|
'''
|
|
|
|
Test the different server responses
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
def test_sts_get_session_token():
|
2013-12-29 01:15:37 +00:00
|
|
|
backend = server.create_backend_app("sts")
|
|
|
|
test_client = backend.test_client()
|
|
|
|
|
2013-05-24 21:22:34 +00:00
|
|
|
res = test_client.get('/?Action=GetSessionToken')
|
|
|
|
res.status_code.should.equal(200)
|
|
|
|
res.data.should.contain("SessionToken")
|
|
|
|
res.data.should.contain("AccessKeyId")
|