Commit Graph

222 Commits

Author SHA1 Message Date
Liam Young
e63fb86df2 Make OpenStackBaseTest model_alias aware 2019-11-29 11:04:53 +00: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
Frode Nordahl
b871907e84 neutron: Do not run tear down on test failure
Fixes #120
2019-11-27 08:58:03 +01: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
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
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
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
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
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
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
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
Frode Nordahl
43322b0152 neutron: Deduce expected security check results on TLS presence
If 'neutron-api' has a certificates relation to vault we have
different expectations of the security checklist result.
2019-11-12 17:40:16 +01:00
Chris MacNaughton
46fad02251 apparently cloud-init doesn't actually create a directory like that 2019-11-08 11:50:51 +08:00
Chris MacNaughton
d97b6a77c4 fix ssh command 2019-11-08 08:59:40 +08:00
David Ames
55c2e60b8e Fix generator sort failure 2019-11-07 15:55:35 -08:00
Alex Kavanagh
ca98d2af7f Merge pull request #107 from thedac/mysql8-actions
MySQL 8 specific tests
2019-11-07 16:00:29 +00:00
David Ames
c6530f244d Merge pull request #111 from ajkavanagh/heat-policyd-tests
Add heat policy.d functional tests
2019-11-07 07:50:08 -08:00
Chris MacNaughton
6c817e5942 move getting share locations to later 2019-11-07 20:42:41 +08:00
Chris MacNaughton
a5b618d08b refactor tests a bit 2019-11-07 15:13:06 +08:00
Chris MacNaughton
ce0eb7ab12 Add functional tests for Manila with Ganesha
Add a functional gate where we mount a share on two VMs
in the cloud under test to validate that manila + ganesha
shares work correctly.
2019-11-07 11:32:28 +08:00
Corey Bryant
6d53e6d758 Increase wait attempts for volume availability
Increase wait attempts for availability of volume created from image
in CephRBDMirrorTest. This is taking longer as of Nautilus due to
switch to using juju storage backed by undercloud cinder taking
longer than prior method of directory-backed OSD devices.
2019-11-06 20:59:48 -05:00
David Ames
22614a3099 Get leaders and non-leaders 2019-11-06 15:35:56 -08:00
David Ames
25b3932ce9 MySQL 8 zaza tests
* Re-arrange the MySQL, Percona-cluster classes to avoid code
  duplication
* cluster-status action
2019-11-06 15:28:20 -08:00
Corey Bryant
3437f8bc02 tmp 2019-11-06 14:58:39 -05:00
Alex Kavanagh
b95f6e6e7d Add heat policy.d functional tests 2019-11-06 11:40:20 +00:00
Frode Nordahl
8d676bf9fa Make non-existent tests/tests.yaml non-fatal where possible
Not all test environments or runners are equal, don't crash on
non-existent test config.
2019-11-05 16:38:06 +01:00
Liam Young
b5f46b2820 Merge pull request #108 from openstack-charmers/ovn-charm
Teach `basic_overcloud_network` configure job about OVN
2019-11-05 10:01:50 +00:00
Frode Nordahl
675b109d54 Optionally limit number of units to get port attached
This is useful for validating deployments with OVN where it is not
required to have external networking attached to every chassis.

Any chassis that does not have external networking directly
attached will forward traffic destined for the external network
through a tunnel to a chassis that does.
2019-11-02 17:16:39 +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
Liam Young
99b53a2a76 Lint fixes 2019-10-31 15:52:37 +00:00
Liam Young
8178607ba9 Refactor swift tests and add storage
The SwiftImageCreateTest was running a pause/resume test for
swift proxy which does not make sense. So, break the proxy specific
tests into their own class and add a class for storage. A
subsequent change to the swift-proxy charm will be needed to add
the new proxy test class to the tests.yaml.
2019-10-31 15:37:56 +00:00
Jose Delarosa
337c83b68d heat: Reduce number of asserts and use helpers when appropriate 2019-10-30 14:42:25 -05:00
Jose Delarosa
806e6afd87 Removed blank line after docstring for pep8 compliance 2019-10-29 23:46:52 -05:00
Jose Delarosa
b2141a1c62 heat: more enhancements
* Move code into test_410_heat_stack...() instead of calling functions
* Use glance and nova helper functions as available
* Simplify method for detecting duplicate encryption keys
2019-10-29 23:28:07 -05:00
Jose Delarosa
80d1f1086d Code improvements and fixes
* Removed heat templates
* Improved Docstring content
* Added code to assert errors when failing
* Removed private variable names
* Removed test_402_heat_stack_list function
2019-10-28 23:30:51 -05:00
Jose Delarosa
08b5b70854 Fix pep8 failures 2019-10-25 16:28:27 -05:00
Jose Delarosa
d4ea94298f Add heat functional tests 2019-10-25 15:54:03 -05:00
Alex Kavanagh
47dc2a8b5f Add openstack-dashboard functional tests
This PR adds the ported from the amulet tests in the openstack-dashboard
charm.  This is launchpad bug: 1828424 [1]

[1]: https://bugs.launchpad.net/charm-openstack-dashboard/+bug/1828424
2019-10-23 15:48:00 +01:00
Frode Nordahl
a82979d145 vault: Await execution prior to validation step
Make it possible for consumers of the ``auto_initialize_no_validation``
function to execute subsequent setup and test code that require vault
and the consumers of the ``certificates`` relation to be ready.

With the current order of execution, it is not possible to use the
configure function in models where ``keystone`` application is not
present.
2019-10-18 11:05:18 +02:00
David Ames
29a4c7cf44 Display routes in assertion error 2019-10-16 15:46:33 -07:00