Commit Graph

896 Commits

Author SHA1 Message Date
Liam Young f3ebe916f2 Add get_subordinate_units
Add zaza.openstack.utilities.juju.get_subordinate_units to get a list
of all subordinate units associated with units in unit_list.
Subordinate can be filtered by using 'charm_name' which will only
return subordinate units which have 'charm_name' in the name of the
charm.
2019-12-11 12:12:25 +00:00
Alex Kavanagh 5b99a8a1ae Merge pull request #137 from gnuoy/swift-gr
Add Swift Global Replication Tests
2019-12-04 12:05:36 +00:00
Alex Kavanagh 4255835c48 Merge pull request #140 from openstack-charmers/feature/manila-tests
Fix mis-named variable
2019-12-04 10:53:45 +00:00
Chris MacNaughton bb675982b6 Fix mis-named variable 2019-12-04 11:32:17 +01:00
Liam Young f1092b0811 Doc string fixes 2019-12-04 10:24:04 +00:00
Alex Kavanagh d4cc35bd94 Merge pull request #125 from openstack-charmers/feature/manila-tests
Add manila API test
2019-12-04 09:48:29 +00:00
Chris MacNaughton a6bde71683 remove unnecessary class variables 2019-12-04 10:19:53 +01:00
Chris MacNaughton 8b40d28ad1 address tinwood's comments 2019-12-03 17:18:22 +01:00
Alex Kavanagh ccddc59e3c Merge pull request #139 from openstack-charmers/issue/138
neutron: Retry operation after change of config
2019-11-29 16:19:18 +00:00
Frode Nordahl 2961196333 neutron: Retry operation after change of config
There is a race between `neutron-api` charm readiness and actual
API readiness.

Fixes #138
2019-11-29 16:39:50 +01:00
Liam Young d2904e228d Add Swift Global Replication Tests 2019-11-29 11:47:43 +00:00
Chris MacNaughton 5a65e05c37 Merge pull request #136 from gnuoy/make-OpenStackBaseTest-multimodel-friendly
Make OpenStackBaseTest model_alias aware
2019-11-29 12:30:34 +01:00
Liam Young e63fb86df2 Make OpenStackBaseTest model_alias aware 2019-11-29 11:04:53 +00:00
Andrew McLeod d004a4152d rename cinder backup swift to cinder backup swift proxy (#134) 2019-11-28 16:45:44 +01:00
Chris MacNaughton 3c1669aa7f Merge pull request #135 from gnuoy/fix-resource-cleanup
Guard against run_resource_cleanup being unset
2019-11-28 16:34:42 +01:00
Liam Young 5e9440dd97 Define run_resource_cleanup in OpenStackBaseTest so all sub-classes inherit it 2019-11-28 15:17:32 +00:00
Liam Young b6c649c00b Guard against run_resource_cleanup being unset
A test may not call the base class setup so may be missing
run_resource_cleanup in which case teardown will fail. Guard against
that and default to False.
2019-11-28 14:59:46 +00:00
Chris MacNaughton e51eb2c5c9 Merge pull request #133 from gnuoy/optional-resource-cleanup
Add support for tests defining resource_cleanup
2019-11-27 12:33:23 +01:00
Liam Young e839a19321 Flip default for cleanup to False 2019-11-27 10:29:06 +00:00
Liam Young 39cb8ea0cc Add support for tests defining resource_cleanup
Add support for tests having a resource_cleanup method. Whether this
is run or not is dictated by the class variable
'run_resource_cleanup'. By default this will be True but any test
can switch it to False so that resources created by the tests are
preserved. Helpful for debugging failures.

FWIW future work might include automatically disabling resource
cleanup if a test fail is detected.
2019-11-27 09:05:01 +00:00
Chris MacNaughton 0022d3bdaf Merge pull request #132 from openstack-charmers/issue/120
neutron: Do not run tear down on test failure
2019-11-27 09:14:16 +01:00
Frode Nordahl b871907e84 neutron: Do not run tear down on test failure
Fixes #120
2019-11-27 08:58:03 +01:00
Chris MacNaughton 2b0036b16b Merge pull request #131 from gnuoy/add-model-name-to-get_keystone_session_from_relation
Expose model_name option in get_keystone_session_from_relation
2019-11-26 08:59:27 +01:00
Liam Young bd903fa325 Add docstring entry 2019-11-25 17:41:29 +00:00
Liam Young 9c34bc42da Expose model_name option in get_keystone_session_from_relation 2019-11-25 17:40:03 +00:00
Frode Nordahl 3f7a9cff44 Merge pull request #128 from sahid/pause-resume
vault: add pause/resume test case
2019-11-25 17:38:18 +01:00
Frode Nordahl 22a844bf0c Merge pull request #130 from gnuoy/explicit-model-name-in-utils
First set of updates to set model name explicitly
2019-11-25 13:13:33 +01:00
Liam Young 748915646a First set of updates to set model name explicitly 2019-11-25 10:49:50 +00:00
Sahid Orentino Ferdjaoui 70282da7c1 vault: add pause/resume test case
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-11-21 16:38:29 +00:00
Frode Nordahl de1d0c51a1 Merge pull request #115 from ajkavanagh/octavia-policyd-tests
Add octavia policyd tests
2019-11-21 16:06:51 +01:00
Alex Kavanagh d5f8f762e8 Fix up octavia test to work with refactored _rule after openstack-dashboard test merge 2019-11-21 14:55:28 +00:00
Alex Kavanagh b00e570e57 Add octavia policyd tests
Providing a policy.d test for Octavia is a bit more complicated as the
obvious policy is just to prevent listing of load balancers;
unfortunately it doesn't work in the upstream, as the code doesn't check
the policy in octavia.  However, "showing" an load balancer does involve
a policy check and so the test is more complicated than 'normal' policy
tests in that a resource is created, then the policy override is checked
and then the resource is deleted.
2019-11-21 14:50:57 +00:00
Liam Young 57a7c8c90f Merge pull request #126 from ajkavanagh/policy-overrides-openstack-dashboard
Modified policyd tests to support openstack-dashboard
2019-11-21 13:12:26 +00:00
Alex Kavanagh 4ac88e92bb Fix nit re: copy/paste comment 2019-11-21 13:04:14 +00:00
Alex Kavanagh 1b5613ac00 Fix pep8 issue 2019-11-21 09:22:57 +00:00
Alex Kavanagh 28db85e06c Fix more policyd tests so that they can work o-s dashboard
The difference in how openstack-dashboard and every other service uses
policies continues to create special cases.  This set of fixes deals
with some more of those differences.
2019-11-20 17:23:26 +00:00
Alex Kavanagh c0db2def3b Modified policyd tests to support openstack-dashboard
* Addition of the (incomplete) openstack-dashboard test.
* Modification of other charm policyd override tests to support
  multi-file policy overrides resource ZIP.
2019-11-20 17:23:26 +00:00
Alex Kavanagh 8f09ed84d5 Merge pull request #127 from thedac/reboot-cluster-from-complete-outage
Reboot cluster from complete outage tests
2019-11-19 20:27:48 +00:00
David Ames af64a75fd7 Use model.run_action_on_leader
Address reveiw requests
Use model.run_action_on_leader
Log action.data on action failure
2019-11-19 11:51:04 -08:00
David Ames 9c75b89273 Reboot cluster from complete outage tests
Testing for cold start scenario for MySQL InnoDB Cluster.
2019-11-18 16:46:08 -08:00
Chris MacNaughton f0be9b5136 Add manila API test 2019-11-15 15:59:39 +01:00
Alex Kavanagh 9e7edf7921 Merge pull request #113 from openstack-charmers/feature/manila-ganesha
Add functional tests for Manila with Ganesha
2019-11-14 09:19:40 +00:00
coreycb 95a1ad1f2e Merge pull request #121 from thedac/mysqlbackup
Add mysqldump action test
2019-11-13 11:15:06 -05:00
Alex Kavanagh 37241ba61b Merge pull request #124 from openstack-charmers/issue/123
policyd: await agent status executing after config change
2019-11-13 13:46:39 +00:00
Frode Nordahl 4298be05d2 policyd: await agent status executing after config change
The current implementation may miss waiting for config change to
actually happen as it in some circumstances jumps to waiting for a
idle state prior to the model executing anything.

Add a wait for agent status `executing` immediatelly after config
change to avoid this.

Fixes #123
2019-11-13 14:29:18 +01:00
Chris MacNaughton 396db15475 Merge pull request #122 from openstack-charmers/neutron-retry-ping
neutron: Add tenacity to retry ping
2019-11-13 19:35:21 +08:00
Frode Nordahl e51b3c481d neutron: Add tenacity to retry ping
It would be awesome if the first iteration of a ARP lookup, ICMP
echo and ICMP reply on a newly created instance was always
successful.  Sadly this is not the reality.
2019-11-13 12:03:17 +01:00
Frode Nordahl 187340beb1 Merge pull request #114 from openstack-charmers/ovn-charm
TLS related fixes for successful run of neutron-api tests
2019-11-13 06:38:19 +01:00
David Ames 9cd26e9e4c Add mysqldump action test 2019-11-12 14:17:08 -08:00
Frode Nordahl 9108059f71 vault: Extend workaround for LP: #1826382
We also need to restart consumers of the placement API on the
'nova-cloud-controller' unit.
2019-11-12 17:40:25 +01:00