Fix variables reference in the integration tests methods
In the common integration tests methods: _wait_for_stack_status and _wait_for_resource_status local variables 'res' and 'stack' were used outside the loop where they were referenced. Change-Id: I4b68054a9474dbfe36955602e7961e9328bb278e Closes-Bug: #1428064
This commit is contained in:
parent
6950453e12
commit
e95e8ca22e
|
@ -204,7 +204,7 @@ class HeatIntegrationTest(testscenarios.WithScenarios,
|
|||
|
||||
message = ('Resource %s failed to reach %s status within '
|
||||
'the required time (%s s).' %
|
||||
(res.resource_name, status, build_timeout))
|
||||
(resource_name, status, build_timeout))
|
||||
raise exceptions.TimeoutException(message)
|
||||
|
||||
def _wait_for_stack_status(self, stack_identifier, status,
|
||||
|
@ -243,7 +243,7 @@ class HeatIntegrationTest(testscenarios.WithScenarios,
|
|||
|
||||
message = ('Stack %s failed to reach %s status within '
|
||||
'the required time (%s s).' %
|
||||
(stack.stack_name, status, build_timeout))
|
||||
(stack_identifier, status, build_timeout))
|
||||
raise exceptions.TimeoutException(message)
|
||||
|
||||
def _stack_delete(self, stack_identifier):
|
||||
|
|
Loading…
Reference in New Issue