Commit Graph

1790 Commits

Author SHA1 Message Date
mkalcok
88fe0af9cb Functional tests for nova-compute 'cloud' actions (#470)
* Functional test for 'enable' and 'disable' actions on nova-compute

* lint fixes

* Put tests of new functionality into separate class

* Added tests for actions `remove-from-cloud` and `register-to-cloud`

* Set longer timeout for action verification

* Add logging to help with CI debugging

* Raise error if action fails

* Cleanup running VMs before test starts

* Add cleanup to tests that create VMs
2021-03-27 08:27:02 +00:00
Aurelien Lourot
76dddb7097 Merge pull request #533 from thedac/issue/528
Fix test_vault_reload race condition
2021-03-26 18:28:02 +01:00
David Ames
e5d2acc88c Fix test_vault_reload race condition
The test_vault_reload test was checking for running config without giving the
config-change time to complete. Simply adding an idle wait resolves the issue.

Closes Issue: #528
2021-03-26 16:58:08 +00:00
David Ames
0ace737254 Merge pull request #514 from ajkavanagh/object-retrier
Object retrier
2021-03-25 09:09:08 -07:00
Aurelien Lourot
3997c6bb3e Merge pull request #531 from ajkavanagh/pin-lxml-2-6-2
Pin lxml to 4.6.2
2021-03-25 16:27:47 +01:00
Alex Kavanagh
e9f11da5df Fix typo and rename class for better understanding
Fixes a typo (None -> not None) and renames the class from
ObjectRetrier -> ObjectRetrierWraps to make it clearer that the class
instantiation is to wrap and object with the retrier code rather than do
retries at that moment.
2021-03-25 14:47:42 +00:00
Alex Kavanagh
8af30a5275 Pin lxml to 4.6.2
See https://github.com/openstack-charmers/zaza-openstack-tests/issues/530

Issue:

    Python 3.5. is deprecated/EOL
    Py35 is used on Xenial
    Xenial is used as the test platform to run tests.
    lxml is used by zaza-openstack-tests for the SAML assertions (because they are XML)
    lxml > 4.6.2 releases are after py3.5 has been deprecated/EOL.
    Therefore, no wheels are now built for lxml for py35.
    Thus there is a binary dependency to build lxml for testing
2021-03-25 11:46:47 +00:00
Billy Olsen
eae35cce96 Merge pull request #505 from ionutbalutoiu/add-glance-ceph-radosgw-tests
Add test for Glance with Ceph RGW backend
2021-03-24 15:28:55 -07:00
Ionut Balutoiu
0315ca680e Add test for Glance with Ceph RGW backend
This test shall be used for Glance testing bundles with Ceph
deployed, and multi-backend enabled.

It validates that images can be stored using the Ceph RGW (via
the OpenStack Swift API).
2021-03-24 15:28:51 +02:00
David Ames
2a6517f6fd Add restart on change test (#527)
Add the restart on change test for mysql-router.
2021-03-23 15:32:01 +00:00
Frode Nordahl
451a1892cf Merge pull request #529 from openstack-charmers/lourot/rm-old-hacluster-scaleback-tests
Remove obsolete HaclusterScalebackTest
2021-03-22 13:50:30 +01:00
Aurelien Lourot
b428b6cf15 Remove obsolete HaclusterScalebackTest
It has been superseded by HaclusterScaleBackAndForthTest
and was used in the following charm gates:
hacluster and mysql-router.
2021-03-19 15:37:03 +01:00
Przemysław Lal
e3fab555cc Add tests for neutron-openvswitch and neutron-gateway charms (#523)
* Add support for running NeutronOvsVsctlTest against any charm and not
only charm-neutron-gateway.
* Add new test case for charm-neutron-gateway and charm-neutron-openvswitch to
verify correct handling of conflicting ext-port and data-port configurations.

Signed-off-by: Przemysław Lal <przemyslaw.lal@canonical.com>
2021-03-17 17:52:10 +00:00
Dmitrii Shcherbakov
79317b5e39 Merge pull request #369 from auria/hacluster-scaleback
HaclusterScaleBackAndForthTest
2021-03-16 14:44:15 +03:00
Peter Matulis
fae2f6319e Add upgrades doc note (#526)
* Add upgrades doc note

Add a note so that upgrade testing (charms and payload)
remains in sync with the end-user documentation (CDG)
2021-03-15 17:17:22 +00:00
Aurelien Lourot
d7c21424de Merge pull request #524 from ionutbalutoiu/add-manila-netapp-tests
Add Manila NetApp tests
2021-03-15 14:48:47 +01:00
Ionut Balutoiu
7e56813885 Add Manila NetApp tests
These Zaza tests are meant to be used with the new `manila-netapp` charm.
2021-03-15 15:11:38 +02:00
Aurelien Lourot
8bc88b398f Merge pull request #509 from ionutbalutoiu/refactor-manila-ganesha-test
Refactor Manila Ganesha test
2021-03-15 13:21:55 +01:00
Ionut Balutoiu
74c5c9d69c Fix _write_testing_file_on_instance docstring 2021-03-12 14:53:21 +02:00
Aurelien Lourot
c9d8800034 Merge pull request #486 from ionutbalutoiu/update-ceph-rbd-mirror-tests
Update Ceph RBD Mirror tests
2021-03-12 09:19:54 +01:00
Alex Kavanagh
c041042fe2 Add function to just retry on keystone ConnectFailure
The main failure that seems to occur with clients is the
ConnectFailure, which according to the docs, is retry-able.  Thus
provide a function that adds that exception condition automatically.
Also fix the import problem in octavia test for the object retrier that
is being used to validate the ObjectRetrier feature.
2021-03-10 09:41:10 +00:00
Alex Kavanagh
ed8528b76a Add object retrier to the LB tests for octavia 2021-03-10 09:40:03 +00:00
Alex Kavanagh
45146b6c45 Add ObjectRetrier to perform retries on openstack client calls
This adds a wrapper class that detects if a callable object in any of
the descendent objects raises an Exception.  If so, then it retries that
exception.

This is to attempt to make the zaza tests a little more robust in the
face of small network failures or strange restarts.  This is a test, and
robust logging a reporting should be used to determine whether it is
covering up actual bugs rather than CI system issues.

Related Bug: (zot repo)#348
2021-03-10 09:40:03 +00:00
Liam Young
0cbe7fe563 Merge pull request #522 from ajkavanagh/change-docstrings-for-vault-utils
Clean-up/correct docstrings in vault/utils.py
2021-03-10 07:43:30 +00:00
Alex Kavanagh
c6e54dd505 Clean-up/correct docstrings in vault/utils.py 2021-03-09 18:09:37 +00:00
Alex Kavanagh
4551f66505 Fix the kerberos set-up by loosening ubuntu check (#521)
* Fix the kerberos set-up by loosening ubuntu check

The cs:ubuntu charm's workload-status-message has changed recently (as
the charm was re-written).  This PR loosens the application states check
to ignore the workload-status-message and just wait for the charm to be
active workload-status.  This is almost certainly enough, as it's a very
simple charm.

* Fix tox.ini to pass tests (maybe)
2021-03-09 18:59:33 +01:00
Alex Kavanagh
7f04ff4939 Merge pull request #520 from mastier/master
fix formatting issues and docstring
2021-03-09 17:44:45 +00:00
Alex Kavanagh
731f9e415a Merge pull request #519 from ChrisMacNaughton/move-tests-to-35+
remove python 3.4 support
2021-03-09 17:39:14 +00:00
Bartosz Woronicz
d7ec4fd0b8 fix formatting issues and docstring
That fixes the issues introduced in PR #512 #517
Now flake8 should not complain
2021-03-08 16:18:52 +01:00
Chris MacNaughton
2d753a32ba remove python 3.4 support 2021-03-08 15:46:24 +01:00
Billy Olsen
a396e32873 Merge pull request #518 from ChrisMacNaughton/feature/github_actions
Add github actions support with linting and unit tests
2021-03-08 07:42:24 -07:00
Chris MacNaughton
975f5058f4 Add github actions support with linting and unit tests 2021-03-08 11:50:48 +01:00
Bartosz "mastier" Woronicz
79a78c2ca0 fix reload test for vault (#517)
The test was failing for xenial-ha-mysql bundle
This fixes the issue for cluster vault
by picking the right vault cluster leader
to run the commands against.

Co-authored-by: Bartosz Woronicz <bartosz.woronicz@canonical.com>
2021-03-08 08:59:23 +01:00
Aurelien Lourot
aafdc4070f Workaround for lp:1874719 2021-03-05 18:08:54 +01:00
Aurelien Lourot
93a48133b3 Add assertions to HaclusterScaleBackAndForthTest 2021-03-05 12:50:50 +01:00
Aurelien Lourot
fbd24759c0 Merge pull request #499 from thedac/mysql-scale-fix
Fix race condition in MySQL tests
2021-03-05 12:48:44 +01:00
coreycb
a8e409928a Merge pull request #512 from mastier/master
add reload and restart action tests for vault
2021-03-04 13:37:55 -05:00
Ionut Balutoiu
9901248f79 Refactor Manila Ganesha test
The current Manila Ganesha `test_manila_share` had a lot of
functionality that can be re-used to any configured Manila backend.

It's a good idea to have this functionality generalized into
`zaza.manila.tests.ManilaBaseTest`, which can be reused for any
tested Manila backend.
2021-03-04 14:21:56 +02:00
Bartosz Woronicz
73c78a0db3 add reload and restart action tests for vault 2021-03-04 11:58:32 +01:00
Ionut Balutoiu
2fefca5a40 Code cleanup
* Move general function out of the testing class. This will make them
  easy to be reused.
* Properly organize the tests, and add tons of docstrings and comments
  to have them as clear as possible.
* Add `failover_cinder_volume_host` to the Zaza `utilities/openstack.py`,
  since this is a general purpose function.
2021-03-03 13:56:36 +02:00
Aurelien Lourot
0931ebb456 Fix docstring 2021-03-03 10:56:15 +01:00
Aurelien Lourot
c80f5fdef8 Make HaclusterScaleBackAndForthTest less stressful
Removing and re-adding two units out of a cluster of three
so fast seems to be too stressful for corosync/pacemaker,
which makes the test fail in rare cases.  Removing and
re-adding one unit only is enough in order to validate the
functionality.  This also makes the test execution time
much shorter.
2021-03-03 10:50:53 +01:00
David Ames
adda372699 Show cluster status before removal 2021-03-02 22:44:40 +00:00
Aurelien Lourot
802e0e0af4 Merge pull request #480 from ionutbalutoiu/update-saml_mellon-tests
Add multi-backend testing for Keystone SAML Mellon
2021-02-26 11:07:28 +01:00
Aurelien Lourot
20bd5dfb59 Remove obsolete comment
The automatic corosync cleanup on Juju >= 2.8 turned out
not to work and has been removed from charm-hacluster.
The 'update-ring' action is now always needed.
2021-02-25 13:05:30 +01:00
Ionut Balutoiu
d41f8b3724 Update Ceph RBD Mirror tests
The updated tests add the possibility of testing deployments
with `image` RBD mirroring mode implemented as part of the
Cinder Ceph Replication charm spec.
2021-02-25 11:01:54 +02:00
Ionut Balutoiu
d728458afa Add multi-backend testing for Keystone SAML Mellon
The new updated tests rely on new testing bundles deployed with
two local IdPs via the Juju charm https://jaas.ai/u/ionutbalutoiu/test-saml-idp.
2021-02-24 20:21:14 +02:00
Aurelien Lourot
8c819814fb Don't wait for principle to get back to active 2021-02-19 16:58:32 +01:00
David Ames
135da1e1a3 Fix reboot-cluster-from-complete-outage race 2021-02-18 09:38:05 -08:00
Aurelien Lourot
c00aa18ffb Assert that corosync considers all nodes to be online 2021-02-18 16:56:08 +01:00