Liam Young 0f9fc9c49b Only auto-resolve update-status hooks
If a unit is rebooted while executing a hook Juju will mark it as
errored when it comes back. To work around this in tests, units in
an error state are resolved on reboot. However, this could mask a
genuine error. So, to minimise the risk only resolve units that
went into an error state when running update-status as the system
was in a stable state prior to reboot so that should have been the
only hook running.

Charm going into an error state on reboot applies equally to
subordinates so use the same logic for hacluster.

block_until_all_units_idle can return when a subordinate hook is
still queued so check for update-status errors when manually
queuing update-status run via action.
2019-07-30 14:23:31 +00:00
2019-07-17 11:07:52 -07:00
2019-06-27 11:33:52 +02:00
2019-05-09 10:53:24 +02:00
2019-07-16 11:57:34 +02:00

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
No description provided
Readme Apache-2.0 3.8 MiB
Languages
Python 99.6%
Jinja 0.4%