Update stackset create operation to correctly return the resource's ID. (#3709)

* Update stackset create operation to correctly return the resource's ID.

* Add test confirming create_stack_set response.
This commit is contained in:
Jakub Musko 2021-02-18 19:04:12 +01:00 committed by GitHub
commit b6d7704b23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -603,13 +603,14 @@ def test_boto3_delete_stack_set():
@mock_cloudformation
def test_boto3_create_stack_set():
cf_conn = boto3.client("cloudformation", region_name="us-east-1")
cf_conn.create_stack_set(
response = cf_conn.create_stack_set(
StackSetName="test_stack_set", TemplateBody=dummy_template_json
)
cf_conn.describe_stack_set(StackSetName="test_stack_set")["StackSet"][
"TemplateBody"
].should.equal(dummy_template_json)
response["StackSetId"].should_not.be.empty
@mock_cloudformation