39cb8ea0ccbf2c2fc8894f9bb721509e68d54041
Add support for tests having a resource_cleanup method. Whether this is run or not is dictated by the class variable 'run_resource_cleanup'. By default this will be True but any test can switch it to False so that resources created by the tests are preserved. Helpful for debugging failures. FWIW future work might include automatically disabling resource cleanup if a test fail is detected.
Zaza OpenStack Tests
This is a test library designed to be shared between the OpenStack Charms to improve code-reuse among the various components.
Usage
This example is taken from the pacemaker-remote charm's tests.yaml:
charm_name: pacemaker-remote
tests:
- zaza.openstack.charm_tests.pacemaker_remote.tests.PacemakerRemoteTest
configure:
- zaza.openstack.charm_tests.noop.setup.basic_setup
gate_bundles:
- basic
smoke_bundles:
- basic
test-requirements.txt:
git+https://github.com/openstack-charmers/zaza.git#egg=zaza
git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack
Description
Languages
Python
99.6%
Jinja
0.4%