8a04739912db7127866a99830076893466baa191
If there are multiple charms of a given application then a hook like leader-settings-changed can trigger a deferred hook. So a race can occur where the deferred hooks of unit1 are cleared then in the process of clearing unit2 a deferred hook is triggerred in unit1. To fix this do not block on the wl status message after the hook test completes. Also, make sure that an action failure is fatal to surface any issues.
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%