Commit Graph

412 Commits

Author SHA1 Message Date
Liam Young d652eff6d9 Add a helper for testing restart on changed
Most api charms test restart on changed by flipping the value of
debug. This has led to the same test being copied around. To reduce
the boiler plate code this change adds a new test helper which can
be used instead.
2020-04-21 07:16:58 +00:00
Aurelien Lourot 3d11b9c018 Fix test_106_compute_catalog_endpoints on Queens 2020-04-20 10:51:49 +02:00
Aurelien Lourot 9477fd4c52 Fix test_106_compute_catalog_endpoints prior to Rocky 2020-04-20 08:00:46 +02:00
Aurelien Lourot 13d9702cdb Add test_902_quota_settings 2020-04-19 16:58:24 +02:00
Aurelien Lourot 6005ca7517 Add test_310_pci_alias_config 2020-04-19 16:58:24 +02:00
Aurelien Lourot 1594a09625 Fix test_220_nova_metadata_propagate 2020-04-19 16:58:24 +02:00
Aurelien Lourot 8b8155347e Fix typos 2020-04-19 16:58:24 +02:00
Aurelien Lourot 975248f571 Add test_106_compute_catalog_endpoints 2020-04-17 17:42:31 +02:00
Aurelien Lourot 071754e7cf Add test_302_api_rate_limiting_is_enabled 2020-04-17 12:47:44 +02:00
Aurelien Lourot 7c1f01e368 Add test_220_nova_metadata_propagate 2020-04-17 12:04:23 +02:00
Aurelien Lourot 0f8396b213 Fix test_104_compute_api_functionality 2020-04-17 12:02:43 +02:00
Aurelien Lourot ac3ffe1652 Merge remote-tracking branch 'origin/master' into nova-cloud-controller 2020-04-17 10:53:35 +02:00
Alex Kavanagh f8a0b2bcf0 Merge pull request #216 from gnuoy/ceph-iscsi-tests
Add ceph-iscsi tests
2020-04-17 09:50:15 +01:00
Aurelien Lourot ea345c6c55 First NovaCloudController test cases
Not yet covering the same amount as nova-cloud-controller's Amulet tests.
https://launchpad.net/bugs/1828424
2020-04-17 10:07:13 +02:00
Liam Young 53b81209a6 Add missing doc string 2020-04-17 07:17:49 +00:00
Aurelien Lourot 49730180f6 Temporarily disable test_800_ovs_bridges_are_managed_by_us 2020-04-17 07:02:29 +02:00
Alex Kavanagh 52a4afcabd Merge pull request #217 from AurelienLourot/neutron-gateway-managed-bridges
Neutron gateway managed bridges
2020-04-16 20:07:52 +01:00
Alex Kavanagh c69e177736 Merge pull request #230 from AurelienLourot/nova-security-tests
Make nova.SecurityTests runable against nova-cloud-controller
2020-04-16 18:50:16 +01:00
Aurelien Lourot 8e9ecc53e8 Openstack -> OpenStack 2020-04-16 18:59:07 +02:00
Aurelien Lourot ac227eab08 Fix copy-paste mistakes and typos and remove dead code 2020-04-16 15:10:03 +02:00
Aurelien Lourot 11edf863b7 Merge remote-tracking branch 'origin/master' into nova-security-tests 2020-04-16 14:24:14 +02:00
Liam Young 3245a6646f Merge pull request #224 from ChrisMacNaughton/feature/parallel-series-upgrade-refactor
Series upgrade can be done in massively parallel batches
2020-04-16 12:31:10 +01:00
Aurelien Lourot 94434f62ac Make nova.SecurityTests runable against nova-cloud-controller
Needed for https://bugs.launchpad.net/charm-nova-cloud-controller/+bug/1828424
2020-04-16 09:48:57 +02:00
Frode Nordahl e9ff6d30cc Merge pull request #214 from ChrisMacNaughton/feature/ceph-prometheus
Add new Ceph test for Prometheus
2020-04-16 08:50:06 +02:00
Chris MacNaughton c492ecdcac Add functional test that covers Ubuntu Lite in Parallel 2020-04-15 15:54:44 +02:00
Chris MacNaughton 27e5f7d8bc We must have async functions for the before/after callables 2020-04-10 16:51:41 +02:00
Chris MacNaughton 2a98274d67 Add a few more function hooks to the series upgrade process
By including pre and pos-application functions, charm
series upgrades can be handled in a more generic way,
even when they require running additional actions
before a unit is upgraded, or after the whole application
is upgraded.
2020-04-10 10:50:43 +02:00
Chris MacNaughton 186708e883 Change upgrade process to handle each machine fully
Updating each machine in a fully self-contained way makes
it easy to add per-machine and (possibly) per-application
post-upgrade function calls. This still performs the actual
series upgrades fully in parallel but will, for example,
start the do-release-upgrade on one unit while another is
still performing the initial dist-upgrade
2020-04-10 10:50:43 +02:00
Chris MacNaughton cf1ea4c71b First pass at batched parallel series upgrade 2020-04-10 10:50:43 +02:00
Liam Young 4dfcd931fa Create new pool for tests 2020-04-09 08:21:07 +00:00
Alex Kavanagh 147b94e1f6 Extend resource wait timeouts for cinder tests (juju storage)
As the cinder charm now has Juju storage support, the cinder
tests needs their timeouts extended as Juju storage on serverstack
is MUCH, MUCH slower than ephemeral storage (which is local to the
host).
2020-04-08 10:52:03 +01:00
Liam Young cf2b0f21b9 Merge pull request #222 from openstack-charmers/issue/221
octavia: tear down resources created during LBaasV2 test
2020-04-08 07:34:41 +01:00
Frode Nordahl 91c120a650 octavia: only run tearDown on success 2020-04-08 07:35:14 +02:00
Frode Nordahl 116da9ca6c octavia: tear down resources created during LBaasV2 test
Fixes #221
2020-04-07 17:56:37 +02:00
Frode Nordahl f35da80f27 Unpin flake8, fix lint
Add Python 3.8 env in Travis CI test matrix.

At present the pinning of flake8 disallows running of lint on
Python 3.8 systems.

Update flake8 ignore-list to ignore W504 instead of W503, the PEP
guidance is that either is ok, but there must be local consistency.

There are more occurences of binary operator before line-break
than after in this repository, and we have also chosen to ignore
W504 in most of our other repositories.
2020-04-07 11:14:49 +02:00
Aurelien Lourot 06b9083f3c Validate that charm-neutron-gateway marks bridges as managed by us
https://bugs.launchpad.net/charm-neutron-gateway/+bug/1809190
2020-04-06 18:16:53 +02:00
Chris MacNaughton 33fa6e02de Fix typo 2020-04-06 16:13:56 +02:00
Chris MacNaughton d3974c84a3 Fix iterating over applications 2020-04-06 16:12:00 +02:00
Chris MacNaughton 3b93ebf492 Add new Ceph test for Prometheus 2020-04-02 09:25:16 +02:00
Liam Young ff3e7f64dc Add ceph-iscsi tests 2020-04-01 14:38:47 +00:00
Liam Young be8889e581 Move new methods out of test class
The new methods assertActionRanOK & assertRemoteRunOK are useful in
setup as well as tests so it makes sense to move them out of the
test class.
2020-04-01 10:18:30 +00:00
Liam Young a3f1230aea Remove prints 2020-04-01 09:08:10 +00:00
Liam Young 588d38d4d7 Add custom assertions
Add custom assertions to check that remote actions and commands
run ok.
2020-04-01 08:58:36 +00:00
Liam Young 9cb7876e19 Add BaseCharmTest class without OpenStack setup.
The ceph-iscsi charm is a non-openstack api charm that also needs
config changed and pause/resume tests.
2020-03-31 16:22:03 +00:00
Camille Rodriguez 3f8a09605e Add functional tests for charm-keystone-kerberos (#206)
* kerberos authentication tests

* kerberos authentication setup and test

* kerberos authentication setup and test

* kerberos authentication setup and test

* pep8 corrections

* pep8 corrections

* remove hardcoded code

* add logging

* fix keytab location

* add logging

* add logging and custom exception for kerberos test server errors

* syntax list

* adding empty keytab in setup

* pep8

* Kerberos custom exception

* date

* fix creation of empty file

* logging

* wait until workload is active

* wait until workload is active

* Edit tests for optimal configuration and logging

* remove empty lines

* add logging to tests

* add logging to tests, import subprocess

* tests.py need setup.py get_unit_full_hostname function

* token retrieval test

* add dns to test host as well as keystone

* test keystone token

* user needs to be the one created in the kerberos system (i.e admin)

* openstack token issue to confirm authentication

* openstack token issue to confirm authentication

* pep8

* cmd has to be formatted differently for subprocess call

* fix error

* piping password to the kinit prompt

* add a verification for the cached kerberos token file

* add a verification for the cached kerberos token file

* must wait for subprocess to go through to check result

* change config to run the kerberos client tests on a ubuntu vm

* change config to run the kerberos client tests on a ubuntu vm

* change config to run the kerberos client tests on a ubuntu vm

* install krb5-client on ubuntu test host

* install krb5-client on ubuntu test host

* retrieve openstack token

* stderr is a dict

* adding python-pip and keystoneauth1[kerberos]

* adding python-pip and keystoneauth1[kerberos]

* adding python-pip and keystoneauth1[kerberos]

* add other mandatory packages to test host

* pep8

* unused exception, removing

* revert change

* rename run_all_tests for run_all_configuration_tests

* install the python3 packages
2020-03-30 16:36:50 -05:00
Liam Young f5feea4b51 Merge pull request #197 from ChrisMacNaughton/feature/parallel-series-upgrade
Enable parallel / asynchronous series upgrade
2020-03-27 15:54:36 +00:00
Chris MacNaughton bf3c3628a1 Revert "Remove client version from Manila Test" 2020-03-27 13:45:48 +01:00
Chris MacNaughton 6bf6dcd8e8 fix lint 2020-03-25 15:36:22 +01:00
Chris MacNaughton 71b9d5a6fb lint fixes 2020-03-25 15:26:08 +01:00
Chris MacNaughton a1e5649d12 Refactor if-statement into upgrade config generator 2020-03-25 08:44:41 +01:00