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
David Ames
2538e1023c
Merge pull request #342 from openstack-charmers/issue/311
...
Fix issues with too aggressive retry behaviour on instance creation
2020-07-02 13:36:12 -07:00
Frode Nordahl
2472a7b505
ceph/fs: Use common helpers for launching test instances
...
Fixes #311
2020-07-02 17:59:39 +02:00
Frode Nordahl
0f3d9bf7c4
Move useful helpers from Neutron tests to OpenStackBaseTest
...
The dual-instance launch and retrieve is a common pattern in tests.
Let's share them.
2020-07-02 17:59:31 +02:00
Frode Nordahl
520830905b
Increase wait time for cloud_init_complete
...
We often see test runs being killed prematurely due to slow to
complete cloud-init step on a loaded CI cloud.
Related issue #311
2020-07-02 13:03:42 +02:00
Frode Nordahl
5040bdf32d
Merge pull request #338 from openstack-charmers/lourot/arista-setup-race-condition
...
Wait for neutron to be connected to Arista before querying it
2020-07-02 11:29:25 +02:00
Liam Young
73d729474e
Merge pull request #313 from openstack-charmers/add-cephfs-pause-resume-test
...
Add CephFS pause/resume test
2020-07-01 16:47:32 +01:00
Aurelien Lourot
defa4c542c
Merge pull request #278 from ajkavanagh/fix-auth-domain
...
Fix broken dictionary assignment for domain
2020-07-01 16:16:43 +02:00
Liam Young
58182b86b8
Deprecate zaza.openstack.utilities.juju ( #340 )
...
This is the 3rd change in the effort to deprecate
zaza.openstack.utilities.juju in favour of zaza.utilities.juju.
All functions now just wrap their equivalents in
zaza.utilities.juju and a decorator has been added which logs a
warning if the function is used.
2020-07-01 14:38:19 +02:00
Alex Kavanagh
697382c8ef
Merge pull request #337 from auria/cinder-enabled-services
...
CinderTests: Support enabled-services option
2020-07-01 10:38:23 +01:00
Aurelien Lourot
1f2ec452e7
Merge pull request #339 from gnuoy/masakari-default_app_name
...
Set application_name for masakari tests
2020-07-01 11:14:55 +02:00
Aurelien Lourot
1e682e9480
Fix application name in trace
2020-07-01 11:07:49 +02:00
Camille Rodriguez
2331907134
Add Gnocchi S3 storage backend functional test ( #334 )
...
Add tests for Gnocchi S3 storage backend support.
2020-06-30 16:30:39 +01:00
Liam Young
e75902ac21
Set application_name for masakari tests
...
Set application_name for masakari tests so that the tests can be
run without relying on getting the application name from the
tests.yaml.
2020-06-30 14:42:25 +00:00
Aurelien Lourot
e184ad7498
Wait for neutron to be connected to Arista before querying it
2020-06-30 16:28:15 +02:00
Alvaro Uria
b69455d3e8
CinderTests: Support enabled-services option
...
charm-cinder supports units with a limited number of services running
(api/scheduler on a unit, volume service on another one). Functional
tests wait for all services to be restarted when a subset of them should
be observed.
Partial-Bug: #1779310
2020-06-30 13:38:00 +02:00
Alex Kavanagh
c7bd60ef4d
Merge pull request #336 from openstack-charmers/lourot/arista
...
Add functional tests for neutron-arista
2020-06-24 15:42:00 +01:00
Aurelien Lourot
68af0d2079
Clarification
2020-06-24 16:27:35 +02:00
Aurelien Lourot
87d5667990
Download Arista image
2020-06-24 11:44:25 +02:00
Aurelien Lourot
b1ccc4bd24
Rename neutron arista charm
2020-06-23 15:50:34 +02:00
Aurelien Lourot
a04cc1f077
Cosmetic improvements
2020-06-23 13:11:50 +02:00
Aurelien Lourot
13b590ea12
Refactor overriding mechanism
2020-06-23 13:03:04 +02:00
Aurelien Lourot
f0ceb33f3a
Add functional tests for neutron-arista
2020-06-22 16:15:03 +02:00
Liam Young
a419fccdb7
Merge pull request #308 from openstack-charmers/ipv6-fixes
...
Ipv6 fixes
2020-06-19 10:59:12 +01:00
Liam Young
20a9c3f23e
Merge pull request #333 from openstack-charmers/issue/331
...
Store local overcloud CACERT copy in relative path
2020-06-19 10:58:21 +01:00
Liam Young
7f5d9bfdc9
Merge pull request #326 from afreiberger/bug/1882247
...
Fix racy swift global replication testing
2020-06-19 10:56:01 +01:00
Frode Nordahl
537473ad3a
Store local overcloud CACERT copy in relative path
...
At present the overcloud CACERT is copied to /tmp and as such it
is not possbile to run multiple tests at once without them
stepping on each other.
Store the copy in a path relative to where the test is executed,
in line with how the SSH keys are stored etc.
Fixes #331
2020-06-19 09:50:28 +02:00
Frode Nordahl
95eb158e7e
Support undercloud running TLS ( #330 )
...
Consume the `OS_CACERT` environment variable when setting up
undercloud auth.
Fixes #329
2020-06-19 08:28:18 +02:00
Drew Freiberger
1f2b4890ef
Fix racy swift global replication testing
...
During some runs of functional testing, swift global replication would
only have 2 copies rather than 3 of the object that was just written.
This patch attempts to resolve the race condition and also adds ordering
to more recently added tests.
Closes-Bug: #1882247
2020-06-18 16:19:13 -05:00
David Ames
d063586236
Merge pull request #321 from javacruft/gss-by-action
...
Add setup for glance-simplestreams-sync
2020-06-17 10:19:44 -07:00
coreycb
ac65792d53
Merge pull request #320 from gnuoy/tempest-auto-detect
...
Tempest auto detect
2020-06-12 12:07:50 -04:00
Liam Young
68648aede5
Tidyup following review feedback
2020-06-12 13:14:28 +00:00
Liam Young
12cf1725cb
Fix service -> setup f map
2020-06-12 12:54:57 +00:00
Liam Young
1a784f5b04
Merge pull request #319 from coreycb/drop-os-prefix
...
Drop OS_ prefix from OS_TEST_HTTP_PROXY
2020-06-12 13:51:59 +01:00
James Page
931fcb4aa7
Add setup for glance-simplestreams-sync
...
Use action to complete initial image sync for the gss charm.
This avoids races where the images end up in the wrong locations
and allows the tests to actually know when images should be
discoverable.
Update tests to wait for at least four images (20.04 is synced
by default).
2020-06-12 13:47:38 +01:00
Liam Young
5a4d2c5b93
Merge pull request #318 from coreycb/drop-workspace-check
...
Drop check for tempest workspace directory
2020-06-12 13:40:23 +01:00
Corey Bryant
de893b66b8
Drop OS_ prefix from OS_TEST_HTTP_PROXY
...
As part of this change also switch to using deployment_env.
2020-06-12 02:35:35 +00:00
Corey Bryant
e8898979b5
Drop check for tempest workspace directory
...
This check is not necessary. The workspace is recreated on each
run, so just attempt to remove the workspace each time.
2020-06-12 01:56:17 +00:00
Liam Young
b95c79c9e3
Include templates
2020-06-11 15:53:51 +00:00
Frode Nordahl
effbf13190
Add CephFS pause/resume test
2020-06-11 16:44:40 +02:00
Liam Young
d837c0ed97
Automatically enable/disable config for tempest.
...
Automatically enable/disable config for tempest based on the
contents of the keystone service catalogue.
2020-06-11 14:12:16 +00:00
Aurelien Lourot
5a94e4a52d
Merge pull request #316 from gnuoy/charm-upgrade
...
Add test to perform charm upgrade.
2020-06-11 15:32:30 +02:00
Liam Young
8336b75c40
Add test to perform charm upgrade.
...
Add test to perform charm upgrade and a few small tweaks to the
upgrade utils.
2020-06-11 10:33:39 +00:00
David Ames
3f008fc42d
Merge pull request #302 from coreycb/add-tempest-support-corey
...
Add tempest support
2020-06-10 08:33:18 -07:00
Dmitrii Shcherbakov
9844701d19
Wait until a share status reaches 'available' ( #310 )
...
* Wait until a share status reaches 'available'
It appears to be that the test_manila_share test case does not wait
until a share becomes available which results in failures like this:
manilaclient.common.apiclient.exceptions.BadRequest: New access rules
cannot be applied while the share or any of its replicas or migration
copies lacks a valid host or is in an invalid state. (HTTP 400)
(Request-ID: req-8d609e13-9a80-428b-953b-17ab8d0e0cae)
Fixes : #309
2020-06-10 13:18:29 +02:00
Frode Nordahl
c0a7302358
Merge pull request #312 from gnuoy/add-gateway-failover-tests
...
Add test for networking when gateways are stopped
2020-06-09 18:05:13 +02:00
Liam Young
9d9b47a275
Add test for networking when gateways are stopped
...
Add test for networking when gateways are stopped. This includes
refactoring the existing network test so I can reuse some of the
code.
2020-06-09 15:06:01 +00:00
Corey Bryant
bdc2e96e93
Drop OS_ prefix from SETUP_ENV_VARS
2020-06-09 14:22:26 +00:00
Corey Bryant
7f6ed4665d
Fix pep8 error
2020-06-09 14:01:27 +00:00