Commit Graph

21 Commits

Author SHA1 Message Date
Adam Dyess
b080f5ff59 config_current doesn't need to flatten values to , but applying config to zaza.model does required all values are strings 2020-01-27 11:46:23 -06:00
Adam Dyess
0614ff5ad6 integrate comments from @thedac to improve waiting for stable, and some documentation issues 2020-01-24 12:59:58 -06:00
Adam Dyess
7063056844 use ':' style argument definitions rather than '@' 2020-01-24 11:23:09 -06:00
Adam Dyess
e294034018 improve docstrings for config_current 2020-01-22 13:14:12 -06:00
Adam Dyess
b75aaa79c5 Resolve pep8 violations 2020-01-22 09:33:58 -06:00
Adam Dyess
b4f1201da2 Integrate suggestions from ajkavanagh 2020-01-22 09:30:48 -06: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
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
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
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
Chris MacNaughton
2888e62e3a Add ceph pg tuning test 2019-09-05 14:30:49 +02:00
David Ames
138bd11207 Zaza tests for percona-cluster
Port over amulet tests to zaza for percona-cluster.
Add testing of new feature actions for cold start tests: bootstrap-pxc
and notify-bootstrapped.
2019-07-15 07:51:54 -07:00
Liam Young
cb6df2f689 Allow test to override application name
Allow tests to override the default application name as it may not
match what is in the tests.yaml, particularly in the case of CMR
tests.
2019-07-03 06:49:54 +01:00
Frode Nordahl
b6eadf243b Fix lint
Also re-enable unit tests for the resident utilities etc.
2019-06-27 11:33:52 +02:00
Chris MacNaughton
83e4ca7247 Ensure we use pgrep >= bionic-stein 2019-06-26 10:24:07 +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
9721fe5d42 Fix restart_on_changed helper (#6)
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.
2019-05-17 15:08:58 +02:00
Chris MacNaughton
dd434e281e Add zaza namespacing, starting with openstack 2019-04-25 17:46:03 +02:00