Implement CloudFormation's physical_resource_id for Data Pipeline

This commit is contained in:
Hugo Lopes Tavares 2015-09-17 15:19:36 -04:00
commit dafddb094b
2 changed files with 9 additions and 1 deletions

View file

@ -1462,7 +1462,7 @@ def test_datapipeline():
}
cf_conn = boto.cloudformation.connect_to_region("us-east-1")
template_json = json.dumps(dp_template)
cf_conn.create_stack(
stack_id = cf_conn.create_stack(
"test_stack",
template_body=template_json,
)
@ -1472,3 +1472,7 @@ def test_datapipeline():
data_pipelines['pipelineIdList'].should.have.length_of(1)
data_pipelines['pipelineIdList'][0]['name'].should.equal('testDataPipeline')
stack_resources = cf_conn.list_stack_resources(stack_id)
stack_resources.should.have.length_of(1)
stack_resources[0].physical_resource_id.should.equal(data_pipelines['pipelineIdList'][0]['id'])