Wait for the stack to actually be deleted before ending the test.
Fixes #233
Change-Id: I4f2060ff73615bcb16ac9cba3d7062117cca08dd
Signed-off-by: Zane Bitter <zbitter@redhat.com>
c = self.get_heat_client()
c.delete_stack(**parameters)
+ print 'Waiting for stack deletion to be completed'
+ while self.in_state('DELETE_IN_PROGRESS'):
+ tries += 1
+ assert tries < 50
+ time.sleep(10)
+
+ assert self.in_state('DELETE_COMPLETE')
+
def get_nova_client(self):
if self.novaclient != None:
return self.novaclient