From 920d8b72ccbe44d22e10038b568878432e77f9b9 Mon Sep 17 00:00:00 2001 From: ricolin Date: Mon, 9 Oct 2017 11:34:11 +0800 Subject: [PATCH] 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 --- heat_integrationtests/common/test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/heat_integrationtests/common/test.py b/heat_integrationtests/common/test.py index d43deceb21..ab9a58798f 100644 --- a/heat_integrationtests/common/test.py +++ b/heat_integrationtests/common/test.py @@ -350,6 +350,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: