Browse Source

Waiting for stack deleted completely at fault tests cleanup (II)

Change-Id: I17ad7b186a944ccc69b730f478e6b01eda4639f9
changes/75/786375/1
Eduardo Olivares 1 month ago
parent
commit
38cd0d1710
2 changed files with 2 additions and 2 deletions
  1. +1
    -2
      tobiko/openstack/heat/_stack.py
  2. +1
    -0
      tobiko/tests/unit/openstack/heat/test_stack.py

+ 1
- 2
tobiko/openstack/heat/_stack.py View File

@ -217,8 +217,7 @@ class HeatStackFixture(tobiko.SharedFixture):
def cleanup_stack(self):
self.delete_stack()
if self.stack:
self.wait_until_stack_deleted()
self.wait_until_stack_deleted()
def delete_stack(self, stack_id=None):
"""Deletes stack."""


+ 1
- 0
tobiko/tests/unit/openstack/heat/test_stack.py View File

@ -261,6 +261,7 @@ class HeatStackFixtureTest(openstack.OpenstackTest):
def test_cleanup(self):
client = MockClient()
client.stacks.get.return_value = None
stack = MyStack(client=client)
stack.cleanUp()
client.stacks.delete.assert_called_once_with(stack.stack_name)


Loading…
Cancel
Save