Add functional tests for update restrict

This adds functional tests for update restrict functionality.

Change-Id: I85e99b376203a48b725c6e9c1d9b5aefa8024b8e
Blueprint: stack-update-restrict
This commit is contained in:
Rabi Mishra
2016-02-15 14:15:50 +05:30
parent 8c55606cfb
commit 329db1ec50
2 changed files with 163 additions and 0 deletions

View File

@@ -257,6 +257,14 @@ class HeatIntegrationTest(testscenarios.WithScenarios,
(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