Add functional tests for update restrict
This adds functional tests for update restrict functionality.
Change-Id: I85e99b376203a48b725c6e9c1d9b5aefa8024b8e
Blueprint: stack-update-restrict
diff --git a/common/test.py b/common/test.py
index c54febe..3339bf6 100644
--- a/common/test.py
+++ b/common/test.py
@@ -257,6 +257,14 @@
(resource_name, status, build_timeout))
raise exceptions.TimeoutException(message)
+ def verify_resource_status(self, stack_identifier, resource_name,
+ status='CREATE_COMPLETE'):
+ try:
+ res = self.client.resources.get(stack_identifier, resource_name)
+ except heat_exceptions.HTTPNotFound:
+ return False
+ return res.resource_status == status
+
def _verify_status(self, stack, stack_identifier, status, fail_regexp):
if stack.stack_status == status:
# Handle UPDATE_COMPLETE/FAILED case: Make sure we don't