CreateStack response no longer contains StackName, so
we need to parse the StackId and extract the name from
the new ARN format
Change-Id: If55ff286c98e8396a14fa4ee2b08622faa680a03
Signed-off-by: Steven Hardy <shardy@redhat.com>
# Check result looks OK
root = etree.fromstring(result)
- create_list = root.xpath('/CreateStackResponse/CreateStackResult' +
- '[StackName="' + self.stackname + '"]')
+ create_list = root.xpath('/CreateStackResponse/CreateStackResult')
assert create_list
assert len(create_list) == 1
+ # Extract StackId from the result, and check the StackName part
+ stackid = create_list[0].findtext('StackId')
+ idname = stackid.split('/')[1]
+ print "Checking %s contains name %s" % (stackid, self.stackname)
+ assert idname == self.stackname
+
alist = None
tries = 0
print 'Waiting for stack creation to be completed'