Purge executions created during functional testing

Change-Id: Ibcfbe23d2608d43a21e7a5b77002071672325fa9
Partial-Bug: #1488157
This commit is contained in:
Lingxian Kong 2015-08-25 00:14:34 +08:00
parent 6b89f6918e
commit 5bd01b7bfb
1 changed files with 8 additions and 0 deletions

View File

@ -339,6 +339,10 @@ class ExecutionTestsV2(base.TestCase):
self.client.delete_obj('workflows', wf)
self.client.workflows = []
for wf in self.client.executions:
self.client.delete_obj('executions', wf)
self.client.executions = []
super(ExecutionTestsV2, self).tearDown()
@test.attr(type='smoke')
@ -870,6 +874,10 @@ class TasksTestsV2(base.TestCase):
self.client.delete_obj('workflows', wf)
self.client.workflows = []
for wf in self.client.executions:
self.client.delete_obj('executions', wf)
self.client.executions = []
super(TasksTestsV2, self).tearDown()
@test.attr(type='smoke')