Commit Graph

270 Commits

Author SHA1 Message Date
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
Liam Young 0b6d5e69b9 Revert "WIP: Add release comparison options" 2019-01-17 09:39:34 +00:00
Liam Young 29a197b1a2 Merge pull request #173 from ChrisMacNaughton/add-file-assertions-release
WIP: Add release comparison options
2019-01-17 09:39:25 +00:00
Chris MacNaughton f7f1c33b5b Add release comparison options 2019-01-15 17:00:53 +01:00
Chris MacNaughton a51b8d9070 Allow tests to be imported from the charm directory 2019-01-11 09:07:08 +01:00
David Ames 50aeb64bcc Merge pull request #171 from ChrisMacNaughton/file-ownership
rename expected file from files.yaml to file-assertions.yaml
2018-12-13 08:32:49 -08:00
Chris MacNaughton ec82f8f889 rename expected file from files.yaml to file-assertions.yaml 2018-12-13 15:40:45 +01:00
Frode Nordahl d5b996f572 Make Octavia setup function run configure-resources action 2018-12-04 14:37:58 +01:00
David Ames 25cfab8651 Allow application_name parameter to config_change
When the charm under test is not the self.application_name of the object
of the setup/test class zaza.test_charms.test_utils.config_change would
try to make a configuration change to the wrong charm. This lead to
https://github.com/openstack-charmers/zaza/issues/168.

This change allows passing application_name to config_change for when
the charm under test is not the same as the object's
self.application_name.

Closes-Issue: https://github.com/openstack-charmers/zaza/issues/168
2018-12-03 19:33:06 +00:00
Ryan Beisner f9d6203f4b Log overlays and template renders for greater visibility 2018-11-30 15:22:47 -06: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
Frode Nordahl 732ed4cb4f Add Octavia tests 2018-11-30 16:25:51 +01: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 39aed0fa99 Skip Compute/Neutron owned ports for overlay test 2018-11-29 10:04:05 +01:00
Frode Nordahl 4721d21ba2 Make reusable and generic add_image func, add support tags 2018-11-29 06:29:06 +01:00
Frode Nordahl 3fd0e7a326 cert: Fix encoding of password 2018-11-29 06:29:06 +01:00
Frode Nordahl e1f360f823 Add helper to get authenticated octaviaclient 2018-11-29 06:29:06 +01:00
Alex Kavanagh c89a7940a5 Merge pull request #164 from thedac/ceph-osd-in-out
Rename ceph-osd pause/resume osd-out/osd-in
2018-11-27 09:31:22 +00:00
David Ames cc4adabba9 Merge pull request #153 from fnordahl/add-neutron-openvswitch-tests
Add neutron openvswitch tests
2018-11-26 15:53:00 -08:00
David Ames 107197360c Rename ceph-osd pause/resume osd-out/osd-in
Partial-Bug: #1793507
2018-11-26 15:28:49 -08:00
Frode Nordahl e74a5b485c Add initial neutron-openvswitch tests
First setup and test is for testing the new LXD profile.
2018-11-23 09:17:48 +01:00
David Ames d508f87fe9 Merge pull request #154 from fnordahl/add-barbican-vault-tests
Add barbican vault tests
2018-11-20 07:41:40 -08:00
David Ames 239027d2d2 Fix typo 2018-11-14 07:34:34 -08:00
David Ames a65638664d Check for the VIP in the identity catalog entry
Add an early test to check that the catalog entry for the identity
service uses the VIP.
2018-11-13 14:37:49 -08:00
Liam Young c8ae64dc47 Ensure workload statuses and messages are reset for each app 2018-11-13 18:00:43 +00:00
Liam Young 12204594f9 Change check_unit_workload_status state to states to make it clearer 2018-11-13 17:32:35 +00: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
David Ames 7835520c8a Promise to optimize in the future 2018-11-09 08:03:49 -08:00
David Ames d77b868411 Wait for idleness on config changed
Intermittent failures in the keystone testing were due to not waiting
long enough after a configuration change.

In addition to waiting for expected workload status also wait for
idleness.
2018-11-09 07:48:42 -08:00
Frode Nordahl b88447c7c6 Add setup and test code for barbican-vault 2018-11-09 12:00:54 +01:00
Frode Nordahl 2f680ccd93 Add stand-alone UnsealVault test
Useful for bootstrapping Vault when it is present in
test bundles for other charms.
2018-11-09 11:51:47 +01:00
Liam Young 6b0628a603 Add missing Rocky and Queens versions 2018-11-08 09:24:27 +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 1fb704507b Use model.applications as a dict 2018-10-31 08:24:47 -07: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
Chris MacNaughton cc893ae851 Add tests derived from tests.yaml in the target directory 2018-10-17 09:20:23 +02:00
David Ames 12ab3d8a40 Handle series upgrade for memcached 2018-10-16 15:32:51 -07:00
David Ames c092029603 Handle sereis-upgrade for mongodb 2018-10-16 13:28:46 -07: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
Chris MacNaughton bc37046851 raise exception when trying to mix series 2018-10-12 09:05:26 +02:00
Chris MacNaughton 69c44551ff add unit testing and fix typo 2018-10-10 12:14:15 +02:00
Chris MacNaughton 362ce7bac5 rename flatten-bundle to remove-placement 2018-10-10 11:34:31 +02:00
Nicolas Pochet b3996949b8 Add ceph osd tests (#93)
Create functional tests replacing the Amulet tests that are currently used for testing.
2018-10-10 09:09:06 +02:00