Remove redundant checks of stack status
The main methods create/update/delete in HeatIntegrationTest class
already contains _wait_for_stack_status, so we can remove duplicate
checks in tests.
Also was added paramter enable_cleanup for stack_create method, which
allows to disable CleanUp method in tests, where we delete stack
manually.
Change-Id: I41b546d648656676ec9bc3b38940eac68f9a848d
diff --git a/functional/test_notifications.py b/functional/test_notifications.py
index a9b6cf1..a4c419c 100644
--- a/functional/test_notifications.py
+++ b/functional/test_notifications.py
@@ -141,17 +141,9 @@
return len(handler.notifications) == count
def test_basic_notifications(self):
- stack_identifier = self._stack_rand_name()
- # do this manually so we can call _stack_delete() directly.
- self.client.stacks.create(
- stack_name=stack_identifier,
- template=self.basic_template,
- files={},
- disable_rollback=True,
- parameters={},
- environment={}
- )
- self._wait_for_stack_status(stack_identifier, 'CREATE_COMPLETE')
+ # disable cleanup so we can call _stack_delete() directly.
+ stack_identifier = self.stack_create(template=self.basic_template,
+ enable_cleanup=False)
self.update_stack(stack_identifier,
template=self.update_basic_template)
self.stack_suspend(stack_identifier)