Commit Graph

758 Commits

Author SHA1 Message Date
Liam Young
a3433a1276 Add Ceph test CheckPoolTypes
Add a ceph test to check that the type of pools requested by
clients matches the pools that were created.
2020-08-10 12:32:49 +00:00
Chris MacNaughton
80995ccf23 Vault tests should leave Vault unsealed
When cleaning up after a Vault test case, Vault should be left
in the same state we found it, unsealed.

Closes-Bug: #379
2020-08-10 09:09:02 +02:00
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
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
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
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
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
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
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
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
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
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
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
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
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
Chris MacNaughton
37dfa53baf ensure that we add the bare cinder endpoint
When there is a cinderv2 or cinderv3 endpoint, we should
enable the bare cinder bits in the tempest config.
2020-07-03 16:04:14 +02:00
Frode Nordahl
6f5bd1c4b9 Merge pull request #335 from javacruft/gss-cacert-verify
Pass deployment CA cert to requests
2020-07-03 13:09:50 +02:00
Liam Young
0fe56cbc33 Switch pre_deploy_certs from OS_ to TEST_ vars 2020-07-03 10:48:12 +00:00
James Page
ecb47bfa4f Fix lint 2020-07-03 10:59:39 +01:00
James Page
29849225c2 Pass deployment CA cert to requests
Ensure that the CA cert for the deployment is passed to
requests when retrieving stream data from swift.

Refresh the product catalog entry on each attempt to retrieve
stream data as the URL will update once data was been written
to the swift endpoint in the deployment.

Retry on KeyError and drop number of retry attempts

Add a log message to detail URL being used for product-stream data

Log return data from streams endpoint

Fixup endpoint resolution
2020-07-03 10:19:22 +01:00
Frode Nordahl
b4f155d5e3 octavia: Consume common helpers for test instance lifecycle 2020-07-03 08:56:04 +02:00
Frode Nordahl
29356f6419 Move cleanup of launched instances to common class
Use the nomenclature for resource cleanup as defined in the
`BaseCharmTest`.
2020-07-03 08:56:01 +02:00
Frode Nordahl
0df72bf47c Make shared resource cleanup method class instance method
At present the shared resource cleanup method is a class method.
This will prohibit descendents of the class to influence whether
cleanup should be run.

Remove the @classmethod decorator so that it will make its
descisions based on class instance variables set by the
descendent.
2020-07-03 08:55:57 +02:00
Liam Young
fac724a5d2 Merge pull request #344 from thedac/ocata
Do not run API check on Ocata
2020-07-03 07:27:08 +01:00
David Ames
39b6065879 Do not run API check on Ocata
Since commit c98aa001f9, there are some
missing changes.

This stops the API check on Ocata when gnocchi is in play. Gnocchi must
be in play for Ocata but heretofore has not been.
2020-07-02 16:10:39 -07:00
Frode Nordahl
2472a7b505 ceph/fs: Use common helpers for launching test instances
Fixes #311
2020-07-02 17:59:39 +02:00