Raise HTTPNotFound if not in create or adopt
We should raise exception when stack not found, if it's not waiting for create or adopt (which should be the only two possible reason that stack may not have been created yet). Change-Id: I6c13ba8ab1b0e312a0932c40f7e9e2b7f92822c3
This commit is contained in:
parent
bdade04310
commit
920d8b72cc
@ -350,6 +350,11 @@ class HeatIntegrationTest(testscenarios.WithScenarios,
|
|||||||
except heat_exceptions.HTTPNotFound:
|
except heat_exceptions.HTTPNotFound:
|
||||||
if success_on_not_found:
|
if success_on_not_found:
|
||||||
return
|
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
|
# ignore this, as the resource may not have
|
||||||
# been created yet
|
# been created yet
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user