Commit Graph

1460 Commits

Author SHA1 Message Date
David Ames
7d4d40700a Region is different for before and after Focal
For the Horizon region setting use the Keystone URL prior to Focal and
"default" thereafter.
2020-08-07 01:12:37 +00:00
David Ames
c498b35852 Lint fix 2020-08-06 23:16:11 +00:00
David Ames
8a47b981b9 Tell horizon to use the "defaul" region
SAML Mellon tests have been broken on Focal. The handling of the region
selection behaves differently from bionic. Or it may be that bionic
accidentally was working by seeing a string as int 0.

Horizon has a "default" region which returns the keystone URL.
2020-08-06 23:06:01 +00:00
Frode Nordahl
3f7d82c850 Merge pull request #376 from openstack-charmers/lourot/arista
Make NeutronCreateNetworkTest more robust
2020-07-30 14:54:35 +02:00
Aurelien Lourot
e530533345 Make NeutronCreateNetworkTest more robust 2020-07-30 12:27:21 +02:00
Alex Kavanagh
59d68e49a5 Ensure that the tests directory exists for the local cacert (#373)
A recent change to allow multiple zazas to run at the same time fixed
the cacert file into a local 'tests/' directory.  Unfortunately, that
doesn't exist for every environment where zaza runs (e.g. mojo) and so
this patch ensures that the path exists prior to trying to download into
it.
2020-07-23 15:07:21 +02:00
Frode Nordahl
e7a694cf25 Merge pull request #371 from openstack-charmers/lourot/arista
Make neutron/arista tests more robust
2020-07-23 13:02:58 +02:00
Aurelien Lourot
a1eb37c365 Make neutron/arista tests more robust
When creating an Arista-backed Neutron network, the API call from Neutron
to Arista sometimes spuriously fails. This is not fatal and Neutron
simply retries a few seconds later. The tests now account for that.
2020-07-23 09:49:48 +02:00
Aurelien Lourot
9a5f149e09 Merge pull request #370 from openstack-charmers/issue/349
octavia/policyd: Change target for policyd test
2020-07-22 12:18:03 +02:00
Frode Nordahl
158e8ce37f octavia/policyd: Change target for policyd test
List available provider drivers as policyd test, this should be
more light weight than creating and retrieving a load-balancer.

Fixes #349
2020-07-22 10:40:29 +02:00
Liam Young
59b6c1bd35 Merge pull request #341 from openstack-charmers/lourot/keystone
Minor improvements to keystone tests
2020-07-16 13:26:09 +01:00
Liam Young
20b6a5eec0 Merge pull request #366 from openstack-charmers/image_arch
add image arch and properties specification
2020-07-16 13:13:46 +01:00
David Ames
376c9dbfd2 Merge pull request #367 from gnuoy/default-app-name-for-vrrp
Add defaut app name for vrrp tests
2020-07-15 13:38:51 -07:00
Liam Young
ce6cfe68b3 Add defaut app name for vrrp tests
Set a default application_name for vrrp tests so they can be
called by charms other than the neutron-api gate tests.
2020-07-15 20:07:17 +00:00
Andrew McLeod
a670e274fa add image arch and properties specification 2020-07-15 16:56:06 +02:00
Aurelien Lourot
0094872fec Merge pull request #345 from openstack-charmers/octavia-use-common-launch-helper
Use common launch helper with retry handling for Octavia tests
2020-07-15 16:12:27 +02:00
Dmitrii Shcherbakov
4f237688af Merge pull request #363 from gnuoy/skip-ks-test_003_test_overide_is_observed
Skip test_003_test_overide_is_observed
2020-07-14 17:13:10 +03:00
Liam Young
9896c8d9c5 Skip test_003_test_overide_is_observed
Skip test_003_test_overide_is_observed until Bug #1880959 is fix
released.
2020-07-14 14:08:31 +00:00
coreycb
f81e085dfb Merge pull request #362 from gnuoy/add-victoria
Add Groovy Victoria support
2020-07-14 08:55:56 -04:00
Liam Young
e729c64956 Fixed existing codename errors spotted by coreycb 2020-07-14 12:53:07 +00:00
Liam Young
2d3eaa6e84 Fix typo 2020-07-14 12:42:29 +00:00
Liam Young
e409b68639 Add Groovy Victoria support 2020-07-14 12:39:58 +00:00
David Ames
a84b15b786 Merge pull request #361 from gnuoy/wait-ceph-ready
Add ceph_ready config step
2020-07-13 07:57:33 -07:00
Liam Young
c4176881d0 Fix spelling typo 2020-07-13 14:56:04 +00:00
David Ames
fdd92e3c5b Merge pull request #359 from gnuoy/set-default-app-name
Set application_name for ceph-radosgw tests
2020-07-13 07:53:06 -07:00
David Ames
161f632e1d Merge pull request #360 from gnuoy/no-hard-coded-region
Stop assuming RegionOne in ceph-radosgw tests
2020-07-13 07:52:18 -07:00
Liam Young
9e395f69b7 Add ceph_ready config step
Add a ceph_ready config step which just checks that the ceph units
are in a 'active' 'Unit is Ready.*' state. This is useful when
encryption at rest is being used and the tests.yaml assumes that
the units are going to come up blocked. Once vault is ready the
tests then need to wait for the ceph units to become unblocked.
2020-07-13 14:42:43 +00:00
Liam Young
65cc6aa604 Stop assuming RegionOne in ceph-radosgw tests
Stop assuming RegionOne in ceph-radosgw tests and get the region
from the app config instead.
2020-07-13 14:36:59 +00:00
Liam Young
f6e2a40166 Set application_name for ceph-radosgw tests
Set application_name for ceph-radosgw tests so that the tests can be
run without relying on getting the application name from the
tests.yaml.
2020-07-13 14:33:35 +00:00
Alex Kavanagh
9b01f9016b Merge pull request #357 from thedac/fix-for-740116
Wait for resolving update-status hook errors
2020-07-10 09:46:26 +01:00
David Ames
4546e821c1 Wait for resolving update-status hook errors
The cold boot restart takes too long on update-status. Make the timeout
longer.
2020-07-09 09:27:25 -07:00
Aurelien Lourot
0287664d92 Fix paramiko.ssh_exception.BadAuthenticationType (#355)
Fix paramiko.ssh_exception.BadAuthenticationType when SSHing to a new Ubuntu instance.

Note that paramiko still has a few issues around authentication:
https://github.com/paramiko/paramiko/pull/1106/files

This paramiko PR also shows that password='' isn't the same as
password=None
2020-07-09 16:35:00 +02:00
Alex Kavanagh
6266c7dbca Merge pull request #356 from gnuoy/masakari-assert-guest-ready
Add check that guest is up
2020-07-09 12:07:02 +01:00
Liam Young
701e751398 Add check that guest is up
On a recent mosci run the guest used for a restart test had a
pending power task which stopped the restart test working properly.
This PR adds an assertion that the guest is ready.
2020-07-09 10:15:56 +00:00
Liam Young
f1336ee5fc Merge pull request #354 from thedac/fixes-for-738717
Fixes for MySQL testing
2020-07-08 20:37:07 +01:00
David Ames
7265b79769 Fixes for MySQL testing
* Better handle workload state checking during cold start
* Switch from debug to info to see log messages
2020-07-08 10:27:01 -07:00
Aurelien Lourot
c75e16df07 Merge pull request #353 from gnuoy/store-keys-in-tmpdir
Use model tmp dir for key storage
2020-07-07 14:45:03 +02:00
Liam Young
7f122b8611 Last unit test fix (passing locally, was failing in travis) 2020-07-07 12:38:18 +00:00
Liam Young
ed2aded7f9 Fix another unit test 2020-07-07 12:32:54 +00:00
Liam Young
9b706b8eaa Remove swap files 2020-07-07 12:24:32 +00:00
Liam Young
76fdb61e0f Fix up unit tests 2020-07-07 12:18:01 +00:00
Aurelien Lourot
6b30e48baf Merge pull request #351 from gnuoy/keystone-wait_for_cacert
Add wait_for_cacert
2020-07-07 13:19:42 +02:00
Aurelien Lourot
ea714ac0c5 Merge pull request #350 from gnuoy/vault-auto_initialize_no_validation_no_wait
Add auto_initialize_no_validation_no_wait
2020-07-07 13:18:34 +02:00
Aurelien Lourot
17e78bb74e Merge pull request #352 from gnuoy/LTSGuestCreateVolumeBackedTest
Add LTSGuestCreateVolumeBackedTest
2020-07-07 13:17:24 +02:00
Liam Young
a829b372e0 Use model tmpdor for key storage
Use the model specific tmp dir to store the test ssh private key.
This avoids the key being overwritten in CMR tests.

Depends-On: https://github.com/openstack-charmers/zaza/pull/371
2020-07-07 09:56:25 +00:00
Liam Young
9c52b3390d Add LTSGuestCreateVolumeBackedTest
Add a test class which launches a volume backed instance.
2020-07-07 09:06:35 +00:00
Liam Young
8f44ab681a Add wait_for_cacert
wait_for_cacert will wait for keystone to recieve and install
a cacert. This is particularly useful when the certificate
issuer is in a different model.
2020-07-07 09:03:36 +00:00
Liam Young
d0981d64af Add auto_initialize_no_validation_no_wait
When vault is in its own model with no clients then vault needs
to be initialised without waiting for clients to start executing
and without validating a client has recieved the cert. To achieve
this, this PR adds auto_initialize_no_validation_no_wait.
2020-07-07 08:57:40 +00:00
Liam Young
3fa5297a1d Merge pull request #347 from ChrisMacNaughton/bug/tempest-cinder
ensure that we add the bare cinder endpoint
2020-07-06 13:32:11 +01:00
Frode Nordahl
849e08528b octavia: fix pause/resume test and temporarily disable it
Re-enable when LP: #1886202 is fixed.
2020-07-03 16:33:50 +02:00