12674 Commits

Author SHA1 Message Date
Zuul
1a4b619110 Merge "Conditionally mark test_attach_detach_volume as slow" 2019-02-23 06:15:23 +00:00
Zuul
787ca5edca Merge "Allow decorators.attr to be conditional" 2019-02-23 06:15:20 +00:00
Zuul
517b6fc8e3 Merge "Mark test_server_connectivity_reboot as slow" 2019-02-23 06:15:18 +00:00
Pallav Gupta
1f6cc860ff Fix typo
Change-Id: Ie5ac0576459ffa9ae06251e56c7bcdd3f715efd5
2019-02-22 01:17:35 +05:30
Zuul
8688554660 Merge "Add unit tests for tempest cleanup" 2019-02-21 03:14:04 +00:00
Zuul
66158e6e09 Merge "Fix tempest cleanup" 2019-02-21 03:14:02 +00:00
Zuul
83e12b67c1 Merge "Update v3 identity group tests to work w/ pre-prov" 2019-02-19 08:56:09 +00:00
Zuul
69104c80a3 Merge "Remove deprecated services from cleanup" 2019-02-18 11:57:02 +00:00
Martin Kopec
470aca738c Add unit tests for tempest cleanup
In the previous patches, tempest cleanup got improved
and new methods were implemented. This review adds
more unit tests to exercise those changes and to
improve tempest cleanup test coverage.

Change-Id: Ibf30162e49a8cf87accdbe7f0a6cc38941873d5e
Related-Bug: #1812660
2019-02-18 10:51:57 +00:00
Martin Kopec
5a884bfbb0 Fix tempest cleanup
Edit service classes so that they discover initial
state of resources before deleting any.

Unify service names - f.e. if a service returns resources
in a list named server_groups, server_groups should be
the key of initial resources in the saved_state.json.

When is_preserve is True, security groups in
NetworkSecGroupService were filtered by networks present
in tempest.conf, however, these groups are associated
with a project_id, therefore it should be filtered
against projects present in tempest.conf.

Change-Id: I97d0115bbb43a089b33602df7c98e153984ceaf1
Related-Bug: #1812660
2019-02-17 23:52:51 +00:00
Trevor McCasland
4986d0da54 Update v3 identity group tests to work w/ pre-prov
I don't see any limitations by using pre-provisioned
credentials for these tests:

* test_group_create_update_get
* test_group_users_add_list_delete
* test_list_user_groups
* test_list_groups

Change-Id: Id22911035ce880ab1faa9b37b238b9372ae98087
2019-02-15 18:38:42 +00:00
Matt Riedemann
9968315d43 Conditionally mark test_attach_detach_volume as slow
Based on average test times from the last 300 runs
of the tempest-full job [1] this change marks the
test_attach_detach_volume test as slow but only if
SSH validation is enabled, which it is in tempest-full
but might not be in other jobs that run it, for example
in refstack which uses this test for interoperability
certification.

[1] http://paste.openstack.org/show/745114/

Change-Id: I47710321d8dfb0345c793e66bd09a5dd1933557b
Related-Bug: #1783405
2019-02-15 09:01:30 -05:00
Matt Riedemann
2999963ff8 Allow decorators.attr to be conditional
There are cases where we want to conditionally apply an
attribute to a test function, for example, if SSH validation
is enabled then a test may run much slower than if it is not.

This adds a 'condition' kwarg to the attr() decorator which
behaves similarly to the 'condition' kwarg on the skip_because()
decorator.

Change-Id: I83233854a217b6961e7614d7d9df1b4fc8d5a640
2019-02-15 09:01:26 -05:00
Matt Riedemann
b4763ef57e Mark test_server_connectivity_reboot as slow
Based on average test run times from the last 300 runs of
the tempest-full job [1] the test_server_connectivity_reboot
test is third slowest at about 200 seconds. This should not
be a surprise given all of the other tests in the same class
are already marked slow.

This change marks that test slow like the others which means
it will be run in the tempest-slow job.

[1] http://paste.openstack.org/show/745114/

Change-Id: Ie8ea1555cc4512bf29dff1e7df592dedfab28c61
Related-Bug: #1783405
2019-02-14 14:09:11 -05:00
Matt Riedemann
4b8a7b8638 Mark test_volume_boot_pattern as slow
Based on the average test times taken from the last 300 runs
of the tempest-full job [1] the test_volume_boot_pattern
scenario test is the slowest test that is not marked slow at
208 seconds.

This change marks that test as slow which means it will still
be run in the tempest-slow job.

[1] paste.openstack.org/show/745114/

Change-Id: Ibc5e5ecaa997744aecea8aff07e7a7e06178f5f3
Related-Bug: #1783405
2019-02-14 14:07:11 -05:00
Martin Kopec
9e43fd8bbe Remove deprecated services from cleanup
The patch removes deprecated services from
cleanup_service.py:
 * NetworkVipService
 * NetworkMemberService
 * NetworkHealthMonitorService
 * NetworkPoolService
 * FloatingIpService
 * SecurityGroupService
The above services are not used by the cleanup tool, they
call clients which were already removed from Tempest or
the clients are marked as deprecated ones.

Change-Id: I55ddbce64404c67688600dc6b1231d0bd8ff7006
Related-Bug: #1812660
2019-02-13 15:20:20 +00:00
Colleen Murphy
8b9980b497 Normalize endpoint path in oauth client
oauthlib uses the request URI as input for generating an oauth
signature and matching it against the incoming oauth_signature request
attribute. tempest also uses the URI to generate this signature, which
means the URIs must match exactly.

If the keystone catalog contains an endpoint with a trailing slash, such
as https://keystone.example.org/v3/, then the URI that tempest uses for
the signature generation will be
https://keystone.example.org/v3//OS-OAUTH1/request_token. The incoming
request URI that oauthlib sees will not have the duplicate slash and so
the resulting signature will differ, and the auth request will be
rejected due to mismatching HMAC-SHA1 signatures.

This patch corrects the issue for deployments that use a trailing slash
in their keystone catalogs (which is valid) by normalizing the path
before generating the signature.

Change-Id: Ie827b1af7b23c6d6eaf2c2894cc2629d0e252108
2019-02-12 15:43:59 +01:00
Zuul
00b8a6c204 Merge "Update v3 project tests to work w/ pre-prov" 2019-02-12 08:46:51 +00:00
Zuul
4008e4afef Merge "Immutable user source: v3 test_groups" 2019-02-12 05:34:55 +00:00
Zuul
285a74350e Merge "Update regions tests to work w/ pre-prov" 2019-02-12 05:31:25 +00:00
Zuul
c1d3267610 Merge "Fix tempest cleanup for python3" 2019-02-11 02:23:03 +00:00
Zuul
30cfcf8478 Merge "Enable volume multiattach tests in tempest-full/slow jobs" 2019-02-09 04:52:08 +00:00
Trevor McCasland
5639a970c1 Update v3 project tests to work w/ pre-prov
I don't see any limitations by using pre-provisioned
credentials for these tests:

* test_project_create_with_domain
* test_project_create_with_parent
* test_create_is_domain_project
* test_project_get_equals_list
* test_project_create_with_description
* test_associate_user_to_project
* test_project_create_enabled
* test_project_create_not_enabled
* test_project_update_name
* test_project_update_desc
* test_project_update_enable

By setting force_tenant_isolation=False these tests now be
can executed with backends that don't allow user creation
(immutable user source) like LDAP.

Change-Id: Ifc9f23d150992cdcf415293439c2f51f3d75aeb3
2019-02-08 21:57:58 +00:00
Trevor McCasland
566237c0a1 Immutable user source: v3 test_groups
If the keystone user source is immutable, such as an LDAP
active directory implementation, tempest tests that try
to create or delete a user will fail. Instead of failing,
we would like them to skip. This change uses a testtools
decorator to avoid unnecessary modifications and allow those tests
to skip.

Partial-Bug: #1777047

Change-Id: I8a0d5935b695a1649b204bd3c3351f34a80e9059
2019-02-08 20:00:50 +00:00
Trevor McCasland
e4c8a6a4a7 Update regions tests to work w/ pre-prov
I don't see any limitations by using pre-provisioned
credentials for this test:

* test_list_regions_filter_by_parent_region_id
* test_create_region_with_specific_id
* test_create_update_get_delete_region
* test_list_regions

By setting force_tenant_isolation=False this test can now
be executed with backends that don't allow user creation
(immutable user source) like LDAP.

Change-Id: Ifad293dddb7c7fe76005761b43e1252e40ce7bdc
2019-02-08 19:48:35 +00:00
Martin Kopec
6caf3fabbb Fix tempest cleanup for python3
When using python3 the file which is read and
loaded by jsonutils needs to be opened in binary
mode, otherwise, it's causing problems.
It is a known bug [1] in jsonutils from
oslo.serialization module.
The patch also adds a unit test which tests
the loading of a json file.

[1] https://bugs.launchpad.net/oslo.serialization/+bug/1515231

Closes-Bug: #1806089
Change-Id: I3db71c6662d9137a4b75381de7d6dbddd3de4e09
2019-02-07 14:43:05 +00:00
Zuul
48ee0fec72 Merge "fix port_profile" 2019-02-06 05:51:45 +00:00
Zuul
2d9921478e Merge "Make interop check job as voting" 2019-02-06 05:51:43 +00:00
Matt Riedemann
7581e99a05 Enable volume multiattach tests in tempest-full/slow jobs
The volume multiattach tests originally required special
devstack configuration in Queens for the Ubuntu Cloud Archive,
but that is no longer necessary. This change enables the volume
multiattach tests in the tempest-full(-py3) and tempest-slow jobs
so we can drop the nova-multiattach job, which is mostly redundant
coverage of the tempest.api.compute.* tests, and reduce the total
number of jobs we run against nova/cinder/tempest changes.

Due to intermittent bug 1807723 when running the
test_volume_swap_with_multiattach test with two compute services,
that test is conditionally skipped if there is more than one compute.
This is probably no great loss in test coverage for now given
swapping multiattach volumes is likely rarely used (see bug 1775418).

Related ML thread:

http://lists.openstack.org/pipermail/openstack-dev/2018-October/135299.html

Depends-On: https://review.openstack.org/634977

Change-Id: I522a15ba3dbfee5d8ef417e43288a12319abf6ff
2019-02-05 11:50:20 -05:00
Zuul
38e397f64a Merge "Fix tempest cleanup AttributeError" 2019-02-05 09:17:56 +00:00
Zuul
858f9cd001 Merge "Immutable user source: v3 test_projects" 2019-02-05 06:53:17 +00:00
Zuul
311ef3d2eb Merge "Add whitelist based tests for tempest run command." 2019-02-05 06:30:13 +00:00
Zuul
452908d3ef Merge "Add black-list based tests for tempest run command" 2019-02-05 06:30:11 +00:00
Zuul
139b453d00 Merge "Fixing ignored value of --config parameter in tempest account-generator" 2019-02-05 04:49:53 +00:00
Zuul
225190e3a0 Merge "Adding missing test cases of tempest workspace" 2019-02-05 04:04:50 +00:00
Ghanshyam Mann
e0d85b2055 Make interop check job as voting
'interop-tempest-consistency' job
has been added to check the test renaming
compatibility with interop usage.

This job was added as n-v to check the stability
and it is running fine since it was added so
making this as voting job in check pipeline.

Change-Id: I088f64d87b04b5db2319ccd3b3d02821a06f35e9
2019-02-05 03:02:40 +00:00
Martin Kopec
b37903cddd Fix tempest cleanup AttributeError
It seems cleanup_service still uses deprecated
tenant_id variable, the patch fixes that.

Closes-Bug: #1812587
Change-Id: I294a2c04e70b980e0f42a29efa7f7448c31d1dc4
2019-02-03 14:27:33 +00:00
Zuul
d47a79c2b5 Merge "fix typos" 2019-02-02 00:16:01 +00:00
Zuul
60fd2c3019 Merge "Add tempest-multinode-full-py3 job definition" 2019-02-01 15:03:44 +00:00
Zuul
6892486150 Merge "Raise renew_delay in TestNetworkBasicOps:test_subnet_details" 2019-02-01 12:16:26 +00:00
Zuul
d36829cdf4 Merge "Update v3 identity domain configuration tests to work w/ pre-prov" 2019-02-01 09:37:53 +00:00
Zuul
ca87ec6989 Merge "Ensure volume is deleted after build error" 2019-02-01 09:28:53 +00:00
Zuul
b972204d8d Merge "Remove warnings.simplefilter to suppress ResourceWarning" 2019-02-01 09:28:51 +00:00
Zuul
bf97151ce1 Merge "Current naming convention is uninformative." 2019-02-01 08:32:14 +00:00
Zuul
989bef8e9c Merge "Add tempest-slow-py3 job definition" 2019-02-01 08:32:12 +00:00
Zuul
9c1b187db2 Merge "Adding missing tests for regex and black-regex in tempest run" 2019-02-01 06:13:07 +00:00
Zuul
a17fcda55a Merge "Fix invalid exception module usage" 2019-02-01 04:35:23 +00:00
nicolas
9e0ac6caca Current naming convention is uninformative.
A small change to naming so that resource can be tracked.

Change-Id: I94670628c179f7291162f2c25947673f03106fc2
Closes-Bug: #1811895
2019-01-31 19:58:34 +00:00
Zuul
7a588ded21 Merge "Convert result of hosts.values() to list always" 2019-01-31 19:35:03 +00:00
Zuul
86bf972686 Merge "Log the result of command in get_nic_name_by_ip" 2019-01-31 13:34:33 +00:00