tobiko/tobiko/tests/unit/openstack/heat
Eduardo Olivares 41a47bf8cf Shelve name of tests using a heat stack
Tobiko workers can share heat stacks. A test checks whether the stack it
requires already exists and if not, it creates it.
Sometimes, when a test fails, it deletes its stack, affecting other
tests using the same stack, running in parallel on different workers.

This patch saves persistently the name of the tests using a heat stack
using sets.
The test names are added to those sets when a new test is going to use
the stack and are removed from the sets when the test stops using the
stack (or when the test ends).
The cleanup method only deletes the stack if the numnber of tests using
it is zero.

The shelves are cleaned up everytime tobiko is executed with pytest (or
tox)

Change-Id: I92655be072efe8ecb7993c7dbf76ba930b6d9a89
2022-12-01 12:12:42 +01:00
..
__init__.py Rename package: tobiko.tests -> tobiko.tests.unit 2019-05-24 06:54:40 +02:00
my-stack.yaml Rename package: tobiko.tests -> tobiko.tests.unit 2019-05-24 06:54:40 +02:00
test_client.py Update OpenStack clients to improve 'lazyness' 2019-06-18 07:59:44 +02:00
test_stack.py Shelve name of tests using a heat stack 2022-12-01 12:12:42 +01:00
test_template.py Use safe loader/dumper to load/dump YAMLs things 2021-10-25 13:28:07 +02:00