Currently when vault auto_inititialize [sic] is called a validation
step is run at the end to check that clients connected to vault
have the correct setup. However in sometimes there are no clients
to run validation with (as with cross model relation testing). To
facilitate this expose a new method 'auto_initialize_no_validation'
which skip the client validation.
Also correct the spelling of auto_inititialize but add a partial
to support tests that are already using the old spelling.
It is likely that there are other commands that we
would like to run in our tests, so this is a new SSH
command runner that the existing SSH check has been
updated to use.
resource_removed is used in many places to monitor removal of
different kinds of OpenStack resource. It is reasonable to expect a
flavor to be removed in a few seconds where as an image based instance
may take minutes to be removed. With that in mind this change
exposes the retry options used by tenacity allowing the caller to
set reasonable expectations for the resource removal.
The restart_on_changed helper was moved to use the config_change
context manager but the code that checks that the config file is
correctly reverted at the end of the test was accidently left within
the context.
At present Zaza will wait until it hits a timeout if one of the
units enters a error state while it awaits a idle model.
Add check for errored units to ``block_until_all_units_idle()``
and ``wait_for_application_states()``
Fixes#100
The call to status action in ``wait_for_mirror_state`` helper is
susceptible to Ceph bug LP: #1820976.
Encapsulate in try except clause to work around it.
When you tell Ceph to resync mirrored RBD images it will in
practice remove and re-create the image.
At present the image state wait helper will happilly accept no
images in a pool as a positive outcome.
Add optional ``require_images_in`` parameter that allows the wait
helper to block even when no images are available in the pool (yet)
Update installation sequence to fit the Travis Xenial environment.
This should save us some time on binary deps as we no longer need
to install snapd and kernel packages mandated by spectre/meltdown
in the Travis ``trusty`` image.
At present the test uses a dict which includes the internal
numeric ID each pool has. This may be different on each side
depending on which order the pools were created in.
Use pool name in a sorted list for comparison instead.