7c8a190e7aa6c20403654344854a5259e00fd1e6
zaza normally runs libjuju async functions in a background thread to enable zaza to be blocking, but keep the libjuju async functions 'ticking over' between blocking calls. This can break unit tests as starting the zaza background thread will hang unless it is cleaned up. A simple solution is just to use zaza in non-threaded mode in the unit tests, and zaza provides a mechanism for this via zaza.RUN_LIBJUJU_IN_THREAD = False.
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.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%