add STS test
This commit is contained in:
parent
ec3ab5ade7
commit
d49baae644
@ -1,6 +1,7 @@
|
|||||||
import boto
|
import boto
|
||||||
import sure # flake8: noqa
|
import sure # flake8: noqa
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
|
import requests
|
||||||
|
|
||||||
from moto import mock_dynamodb
|
from moto import mock_dynamodb
|
||||||
from moto.dynamodb import dynamodb_backend
|
from moto.dynamodb import dynamodb_backend
|
||||||
@ -35,3 +36,10 @@ def test_list_tables_layer_1():
|
|||||||
def test_describe_missing_table():
|
def test_describe_missing_table():
|
||||||
conn = boto.connect_dynamodb('the_key', 'the_secret')
|
conn = boto.connect_dynamodb('the_key', 'the_secret')
|
||||||
conn.describe_table.when.called_with('messages').should.throw(DynamoDBResponseError)
|
conn.describe_table.when.called_with('messages').should.throw(DynamoDBResponseError)
|
||||||
|
|
||||||
|
|
||||||
|
@mock_dynamodb
|
||||||
|
def test_sts_handler():
|
||||||
|
res = requests.post("https://sts.amazonaws.com/", data={"GetSessionToken": ""})
|
||||||
|
res.ok.should.be.ok
|
||||||
|
res.text.should.contain("SecretAccessKey")
|
||||||
|
Loading…
Reference in New Issue
Block a user