David Ames
40e9c86df4
Test the condition not the implementation
2019-12-10 08:36:22 -08:00
David Ames
c109abbe25
Fix unit test
2019-12-09 09:22:01 -08:00
Liam Young
d2904e228d
Add Swift Global Replication Tests
2019-11-29 11:47:43 +00:00
Liam Young
9c34bc42da
Expose model_name option in get_keystone_session_from_relation
2019-11-25 17:40:03 +00:00
Liam Young
748915646a
First set of updates to set model name explicitly
2019-11-25 10:49:50 +00:00
Frode Nordahl
8e8544bab7
Fix ovn_present for ovn-dedicated-chassis
...
Add missing unit test.
2019-11-02 10:31:30 +01:00
Frode Nordahl
7d1d04a742
Deduce whether DVR is enabled from neutron-api config
...
Add helper to detect presence of OVN in deployment
2019-11-01 06:39:17 +01:00
Frode Nordahl
85927e20c6
Add helper to get uuids of machines w/OVN chassis
...
Refactor get_machines_for_application as generator function instead
of building and passing on static List.
2019-11-01 06:39:07 +01:00
David Ames
ea48e8b3d6
Unit test fix
2019-10-21 16:19:42 -07:00
David Ames
13fa5e9851
Only use TEST_ prefix
2019-10-18 11:26:37 -07:00
David Ames
f29aac19c4
Handle OSCI environment variables
...
Move to preferred TEST_* environment variables, while remaining backward
compatible.
2019-10-18 10:14:34 -07:00
David Ames
bb1525ddff
Merge pull request #60 from exsdev0/rabbitmq-zaza-tests
...
Rabbitmq zaza tests
2019-10-15 08:40:20 -07:00
Edin Sarajlic
596c347be4
Add unit test for generic util function: check_commands_on_units
2019-10-15 14:03:43 +11:00
Edin Sarajlic
6402d5a021
Add unit test for generic util function: port_knock_units
2019-10-15 14:03:43 +11:00
Edin Sarajlic
009f37ab0b
Add unit test for generic util function: get_unit_hostnames
2019-10-15 12:51:39 +11:00
Liam Young
6c15605222
Series upgrade tests run funcs after upgrade.
...
Execute a list of functions after series upgrade if one is
supplied. This change is driven by the upgrade testing of vault.
Vault needs to be unsealed after it is rebooted.
2019-10-14 10:39:11 +00:00
Liam Young
0080d84c33
dist upgrade before series upgrade
2019-10-10 11:21:59 +00:00
David Ames
81604c399b
Review requests for Liam
2019-07-17 11:07:52 -07:00
Chris MacNaughton
045c50637b
Add a new SSH function
...
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.
2019-06-06 13:46:06 +02:00
Liam Young
648ac9262b
Expose resource_removeds retry options ( #11 )
...
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.
2019-05-23 11:16:03 +02:00
Liam Young
6dad655b5d
Avoid adding duplicate handler ( #4 )
...
If a logging handler has already been added don't add it again.
2019-05-14 15:31:55 +02:00
Liam Young
6b2c1d26eb
Add function for getting keystone auth from relation
2019-05-13 09:06:40 +00:00
Chris MacNaughton
0c2f36fb4e
modify base zaza poackage into zaza.openstack package
2019-05-08 13:38:33 +02:00
coreycb
ebf9aa085e
Merge pull request #230 from thedac/saml
...
Keystone SAML Mellon functional testing
2019-05-01 06:59:11 +02:00
Chris MacNaughton
dd434e281e
Add zaza namespacing, starting with openstack
2019-04-25 17:46:03 +02:00
David Ames
ac4f68e560
Merge branch 'master' into require-env-vars
2019-04-22 10:21:15 -07:00
Chris MacNaughton
4954e44c51
Use jinja2's StrinctUndefined to make template variables mandatory
2019-04-21 16:33:03 +02:00
Liam Young
2492dbfd99
Add function to upgrade charm
2019-04-16 10:41:02 +00:00
Frode Nordahl
a0ed15a68c
Detect units in `error` state while awaiting idle model
...
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
2019-04-14 00:39:46 +02:00
Frode Nordahl
204d7c3c3e
Add ceph rbd mirror ( #195 )
...
* utilities/ceph: Add model_name parameter to set model scope
* utilities/ceph: Add ``get_rbd_hash`` helper
* Add ``remove_application``
* ceph_rbd_mirror: Add tests
2019-03-28 14:56:17 +00:00
Liam Young
d90da772d2
Expose resource_reaches_status' retry options ( #206 )
...
* Expose resource_reaches_status' retry options
resource_reaches_status is used in many places to monitor many
different kinds of OpenStack resource. It is reasonable to expect a
flavor to be created in a few seconds where as an image based instance
may take minutes to become active. With that in mind this change
exposes the retry options used by tenacity allowing the caller to
set reasonable expectations for the resource state change.
In addition the image based instance creation call is updated
to retry for longer as this has been timing out.
* Remove swap files
2019-03-27 13:02:47 +01:00
David Ames
02180fb178
Unit tests
2019-03-14 08:55:26 -07:00
Liam Young
5339ea9217
Add rtype info to docstrings
2019-03-07 16:31:35 +00:00
Liam Young
e9c7690af4
Enable masakari instance monitor tests
...
Add helpers and a test to test a guest dying and being resurrected
by masakari instance monitor.
2019-03-07 16:03:42 +00:00
Liam Young
3118f122b4
Misc methods to support vm migration tests
...
Misc methods to support vm migration tests.
2019-03-05 19:30:57 +00:00
Chris MacNaughton
774a49faef
Support globstar for recursion
2019-01-29 14:49:03 +01:00
Chris MacNaughton
cd6ad8485f
Allow file assertions to include globs
2019-01-29 14:03:47 +01:00
David Ames
9e62dae2ef
Merge pull request #163 from fnordahl/add-ovs-and-octavia-tests
...
Add Octavia tests
2018-11-30 08:22:45 -08:00
David Ames
33b74f2da8
Use yaml.safe_load
...
We should be using yaml.safe_load and not yaml.load in all of our code.
2018-11-29 09:26:21 -08:00
Frode Nordahl
3fd0e7a326
cert: Fix encoding of password
2018-11-29 06:29:06 +01:00
Liam Young
82e9f1b625
Accept bespoke workload statuses and default
...
When checking the readyness of an application check both the
bespoke status as defined in the tests.yaml and the default.
Closes issue 158.
2018-11-13 17:11:45 +00:00
Alex Kavanagh
1e4733bd90
Merge pull request #150 from thedac/render-vips
...
Allow OSCI environment variables
2018-11-06 08:40:13 +00:00
David Ames
3791cd9ffd
Update the upgrade-series command
...
Since https://github.com/juju/juju/pull/9395 the ordering of the
upgrade-series command has changed.
Update to match current juju.
2018-11-05 15:46:50 -08:00
David Ames
f6fe86e282
Allow OSCI environment variables
...
Zaza explicitly limits which environment variables are allowed for
template rendering. Allow the variables that OSCI actually uses. Without
this OSCI fails to render vips.
This enables zaza tests with HA in OSCI.
2018-11-05 15:28:04 -08:00
David Ames
1d709bbddd
Review requests
...
Pep8 fixes.
2018-10-31 07:39:38 -07:00
David Ames
348e7211cd
Explicit Model Timeout Exception
...
When we timeout waiting for the model to be idle and have specific
workload statuses make that explicit.
2018-10-29 11:32:43 -07:00
David Ames
3338fe89ba
More generic non leader first series upgrade
...
Make the series_upgrade_mongodb less specific to mongodb. We may
eventually use this to series upgrade vault.
Fix bug in the generalized series_upgrade_non_leaders_first.
Fix change in switch --agree to --yes.
2018-10-29 10:03:28 -07:00
Liam Young
4f4cccb80f
Merge pull request #147 from ChrisMacNaughton/file-ownership
...
WIP: Add support for testing file ownership
2018-10-17 09:06:02 +01:00
Chris MacNaughton
11133ccd1f
fix up local template rendering
2018-10-17 09:32:49 +02:00
Liam Young
69698ea57d
Merge pull request #142 from ChrisMacNaughton/bundle-flattener
...
Add support for removing machine placement in a bundle
2018-10-12 12:34:19 +01:00