Merge #913.
This commit is contained in:
parent
408a70992c
commit
0adebeed24
36 changed files with 669 additions and 58 deletions
|
|
@ -144,6 +144,26 @@ def test_create_stack_from_s3_url():
|
|||
'TemplateBody'].should.equal(dummy_template)
|
||||
|
||||
|
||||
@mock_cloudformation
|
||||
def test_describe_stack_pagination():
|
||||
conn = boto3.client('cloudformation', region_name='us-east-1')
|
||||
for i in range(100):
|
||||
conn.create_stack(
|
||||
StackName="test_stack",
|
||||
TemplateBody=dummy_template_json,
|
||||
)
|
||||
|
||||
resp = conn.describe_stacks()
|
||||
stacks = resp['Stacks']
|
||||
stacks.should.have.length_of(50)
|
||||
next_token = resp['NextToken']
|
||||
next_token.should_not.be.none
|
||||
resp2 = conn.describe_stacks(NextToken=next_token)
|
||||
stacks.extend(resp2['Stacks'])
|
||||
stacks.should.have.length_of(100)
|
||||
assert 'NextToken' not in resp2.keys()
|
||||
|
||||
|
||||
@mock_cloudformation
|
||||
def test_describe_stack_resources():
|
||||
cf_conn = boto3.client('cloudformation', region_name='us-east-1')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue