Merge "Raise HTTPNotFound if not in create or adopt"

This commit is contained in:
Zuul 2018-01-19 05:05:09 +00:00 committed by Gerrit Code Review
commit fbddba7280
1 changed files with 5 additions and 0 deletions

View File

@ -366,6 +366,11 @@ class HeatIntegrationTest(testscenarios.WithScenarios,
except heat_exceptions.HTTPNotFound:
if success_on_not_found:
return
elif not any(s in status for s in ['CREATE', 'ADOPT']):
# raise exception when stack not found, if it's not
# in create or adopt (which should be the only two possible
# reason that stack may not have been created yet)
raise
# ignore this, as the resource may not have
# been created yet
else: