908f0b4a3b059583db62790099b683558fea31b7
The current rabbit tests post a message on one unit and then consumes the first message on another unit. If the two do not match then the test fails. This means that a single pre-existing message can break all these tests as the consumer always gets the wrong message. This change updates the tests to search for the target message rather than assuming that the first message is the target message. Messages that are not the target message are not reposted so any pre-existing messages are consumed and in effect thrown away but given these are all test messages in a test queue and the tests do not run in parallel this should be fine.
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%