Commit Graph

5312 Commits (0ea2c01d757375d54aa9a9de34c2c9995bb48d13)

Author SHA1 Message Date
Zuul 82f7b1ae6c Merge "Add APIMicroversionFixture to library interface" 4 years ago
Zuul 8c80d5fc67 Merge "Handle properly 404 responses from Neutron" 4 years ago
caoyuan 349ba75410 Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org and review.openstack.org URLs
with their opendev.org counterparts.

Change-Id: I88e894db7b854d32593c770f5aa9b8a91fad7866
4 years ago
Martin Kopec 5511ea0203 Fix mismatch error due to map in python3
When executed by python3 the test failed on a mismatch_error
caused by the fact that map function works differently in
python3.
The review fixes the issue by rewriting the line filtering
extensions to list comprehension.

Closes-Bug: #1829475

Change-Id: Ic2db882e505e7992192767acbe12a153b2d879e9
4 years ago
Zuul 6f07d49044 Merge "Use show_quota_class_set after update_quota_class_set" 4 years ago
Doug Schveninger 23325c0ee8 Fix resource leaks in EndPointGroupsTest
Test cases were creating services at the test case
scope and not add them to addCleanup method.

Change-Id: I390f9e013930477f32c537191adbef37e1b4dd1c
4 years ago
zhangyangyang c248f5962e Fix the bug of deleting security group after testing changing password.
When deleting security group before vm is deleted, we will get 'the
security group is in use' error, so this is to add addCleanup to ensure
the vm is deleted before deleting security group.

Closes-Bug:#1826301
Change-Id: I3d4a3816196f42af3ea3f891473d09208651ae68
4 years ago
Slawek Kaplonski 748dd8df73 Handle properly 404 responses from Neutron
In cleanUp methods there is no need to fail test if Neutron returns
404 for DELETE request.
This commit adds test_utils.call_and_ignore_notfound_exc helper function
to be used in cleanup of Neutron resources.

Change-Id: I2c394d3219e16f653343d7043d36f55048f211dd
Closes-Bug: #1824018
4 years ago
zhufl 2b1751e461 Use show_quota_class_set after update_quota_class_set
In test_update_default_quotas, we should use show_quota_class_set
after update_quota_class_set to check whether the quota values
are really changed.
Besides, some LOG messages look odd and maybe being used as comments
are more suitable.

Change-Id: I05e22c88e184df7d425411051c2a8bf846cb35ee
4 years ago
Zuul ded3516406 Merge "Fix invalid filter passed to list_volumes" 4 years ago
Zuul c1454fc66b Merge "Fix test_volume_swap_with_multiattach" 4 years ago
zhufl 9a740dd262 Fix invalid filter passed to list_volumes
display_name is not a valid filter for list_volumes, i.e., for non-admin
users no matter what value we set for display_name filter, all volumes
will be returned. We'd better to use name filter for it works all the
time.
https://github.com/openstack/cinder/blob/master/doc/source/admin/generalized_filters.rst

Change-Id: Ib25f4767b74d4494edfafa211d5884a01c1b6488
4 years ago
Ghanshyam Mann ad8737c7f2 Add APIMicroversionFixture to library interface
APIMicroversionFixture is used to set the microversion on
service clients which will take care of reseting the microversion.

This interface has been added to set the microversion on all supported
service clients which use microverison. User can set multiple
service microversion all together.

Using the new interface in compute tests to make sure it is all
working in serial and parallel testing.

Change-Id: I6ed41b02041d38c2c92c58b0d3dd6613d03da3f7
4 years ago
Zuul 69761f5a44 Merge "Skip test_volume_backup_create_get_detailed_list_restore_delete" 4 years ago
Ghanshyam Mann 762e98c237 Skip test_volume_backup_create_get_detailed_list_restore_delete
This test is very unstable and failing very frequently now a days
19 fails in 24 hrs / 137 fails in 10 days
- http://status.openstack.org/elastic-recheck/#1483434

Let's skip this until bug is fixed to avoid unstable gate.
Related-Bug: #1483434

Change-Id: Id107766126b31028920092ab098b084557d327cf
4 years ago
Trevor McCasland 7ea7e0a14e update identity role tests to work w/ pre-prov
I don't see any limitations by using pre-provisioned
credentials for these tests:

* test_role_create_update_show_list
* test_list_roles
* test_implied_roles_create_check_show_delete
* test_roles_hierarchy
* test_assignments_for_implied_roles_create_delete
* test_domain_roles_create_delete
* test_implied_domain_roles
* test_assignments_for_domain_roles
* test_list_all_implied_roles
* test_grant_list_revoke_role_to_user_on_project
* test_grant_list_revoke_role_to_user_on_domain
* test_grant_list_revoke_role_to_group_on_project
* test_grant_list_revoke_role_to_group_on_domain

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.

Partial-Bug: #1714277

Change-Id: Id82f3b6187e878abe04a0aea9e7dbb9e8fb6360e
4 years ago
Matt Riedemann 1bbfa121b3 Fix test_volume_swap_with_multiattach
Nova change https://review.openstack.org/572790/ is fixing
a bug such that the compute API would allow people to
swap from a multiattach volume with multiple read/write
attachments, which could lead to data loss if the
secondary attachment is writing to the source volume while
it's being copied to the target volume.

As a result, test_volume_swap_with_multiattach needs to be
changed such that the volume we're swapping from has only
read-only attachments.

Change-Id: Ida387c600016b451e01118bc2c76662b46670288
Related-Bug: #1775418
4 years ago
Zuul 3639f91c36 Merge "Add missing validation for the compute/positive" 4 years ago
Zuul 35ed1a80bc Merge "Use base.delete_server in test_servers.py" 4 years ago
Zuul 25f5d28f3c Merge "Fix potential issue with adding a fixed ip" 4 years ago
afazekas 5d06623dae Add missing validation for the compute/positive
Similarly to the interfaces, the volume detach can
fail if the vm is not ready for processing the acpi
signals. The ssh daemon allow to login around the same
time so it will helps to avoid detach failures.

Change-Id: Ic43ae3b76467a5cbeb6c2fe128435d64ab7743b5
4 years ago
Zuul 3ad7f19e1a Merge "immutable user source: v3 test_roles" 4 years ago
Zuul 2fc8547672 Merge "Update v3 identity inherits tests to work w/ pre-prov" 4 years ago
Zuul 7bb845524d Merge "Use credentials domain instead of creating new one" 4 years ago
Zuul a2a2b56894 Merge "Immutable user source: v3 test_inherits" 4 years ago
Zuul 67e0778618 Merge "Add autopep8 to tox.ini" 4 years ago
Matthew Treinish c68546f06d Fix potential issue with adding a fixed ip
In test_add_remove_fixed_ip there is a potential issue where the user
running the test does not have the ability to create a server with a
fixed ip. As pointed out by zhufl (in review of change
I10a34fb12b595400fc15d935070f130c8e3d3963) This commit fixes the issue
so that we properly skip if tempest is not configured in a way where it
can create a server with the fixed ip.

Change-Id: Idcd66ac87cf156bc5c2b38178262c4686238bcd4
4 years ago
Trevor McCasland bd89841dc6 Update v3 identity inherits tests to work w/ pre-prov
I don't see any limitations by using pre-provisioned credentials
for the tests:

* test_inherit_assign_list_check_revoke_roles_on_domains_group
* test_inherit_assign_check_revoke_roles_on_projects_group
* test_inherit_assign_list_check_revoke_roles_on_domains_user
* test_inherit_assign_list_check_revoke_roles_on_domains_group
* test_inherit_assign_check_revoke_roles_on_projects_user
* test_inherit_assign_list_revoke_user_roles_on_domain
* test_inherit_assign_list_revoke_user_roles_on_project_tree

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.

Partial-Bug: #1714277

Change-Id: I6b7bfbaef3355afede2adba56f342d5bfcbe3975
4 years ago
Trevor McCasland c44eadc7b7 immutable user source: v3 test_roles
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.

Change-Id: Iba39c971468759d9b7b3f0382dfcb881cbb1801d
4 years ago
Trevor McCasland c3f07b441f Immutable user source: v3 test_inherits
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.

Parital-Bug: #1777047

Change-Id: I1d8105c24eb9b20e563de962f9e4d5776937126a
4 years ago
Ghanshyam Mann ea5efd5c35 Use credentials domain instead of creating new one
test_list_projects tests create a new domain and try to test the
list projects operation based on new domain-id. Keystone is
implementing the domain roles functionality for projects resource
- https://review.openstack.org/#/c/624218/

Which means listing the projects with authorized domain only.

This commit modify the tests to use the same domain as requester and
create project with that domain only not new one.

Also add the debug log.

Change-Id: I401815b4a0d3f7ad90801d5580897be870d33013
4 years ago
Zuul 31db1f6f39 Merge "Update json module to jsonutils" 4 years ago
Zuul e7924e4c7c Merge "Remove admin test_l3_agent_scheduler API test module" 4 years ago
afazekas 40fcb9ba28 Add autopep8 to tox.ini
autopep8 is an automated code formatting tool for python,
it does not know everything, also not super fast,
but it is faster than I can manually reformat the code.

tools/format.sh will call the formatting,
the tox will check did you called it.

Also adding a tox -eautopep8 way to use it.

autopep8 formats the lines in one way,
where tempest used a another way it was changed.

Change-Id: I6d51b14a5a5b87761071d0927fca23ba1651aa41
4 years ago
Slawek Kaplonski edcc172db3 Remove admin test_l3_agent_scheduler API test module
Tests from this module are duplicated by same tests in
neutron-tempest-plugin repo.
Tests are in [1] module in this repo.

Both removed tests got 0% failure rate according to status.openstack.org
page.

It was discussed with QA PTL and he confirmed that those tests can
be removed from tempest. See [2] for details. Also ML thread about
this test removal notification[3].

[1] http://git.openstack.org/cgit/openstack/neutron-tempest-plugin/tree/neutron_tempest_plugin/api/admin/test_l3_agent_scheduler.py
[2] http://eavesdrop.openstack.org/irclogs/%23openstack-qa/%23openstack-qa.2019-03-01.log.html#t2019-03-01T16:18:32
[3] http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003574.html

Change-Id: I28f3bab54c25463d584db5398920d467a04bccf0
4 years ago
zhulingjie 92b87a5a43 Update json module to jsonutils
oslo project provide jsonutils, and we use it in many place[1],
this PS to update the remained json moudule to oslo jsonutils for
consistency.

[1]: 9594233ffd/tempest/lib/services/volume/v1/quotas_client.py (L15)

Change-Id: Ib8d9f49a1fdfa0f5e0cfb05a193dffb83e4cfe69
4 years ago
Zuul 57491eaa7e Merge "no force_tenant_isolation in DefaultDomainTestJSON" 4 years ago
Trevor McCasland 8d94885df0 no force_tenant_isolation in DefaultDomainTestJSON
No need for dynamic credentials to test showing the default domain.

By setting this value to False, consumers with an immutable user source
can execute this test.

Depends-On: I83a9b8af775580d36a1141be55e9c1cc283a75b6
Partial-Bug: #1714277
Change-Id: Ib85691ae3f7b5a4d4a9da620b6ec46c44380ef03
4 years ago
Brian Haley c2a0eb986f Update neutron quota_driver path
It is now at neutron.db.quota.driver.DbQuotaDriver

Change-Id: Ie57e27ffa89508381c86083a8c6a9d36ee95a674
4 years ago
Zuul 2cc8de817d Merge "Use rand_password() for password when creating user" 4 years ago
zhufl 00e4777295 Use rand_password() for password when creating user
Some systems require strong passwords, so we'd better
use data_utils.rand_password() to create password when
creating user, to avoid password strength validation error.

Change-Id: I503ba6e068b6f7c8487b7077637ee21a9c104595
4 years ago
Zuul 1a4b619110 Merge "Conditionally mark test_attach_detach_volume as slow" 4 years ago
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
4 years ago
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
4 years ago
Zuul 00b8a6c204 Merge "Update v3 project tests to work w/ pre-prov" 4 years ago
Zuul 4008e4afef Merge "Immutable user source: v3 test_groups" 4 years ago
Zuul 285a74350e Merge "Update regions tests to work w/ pre-prov" 4 years ago
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
4 years ago
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
4 years ago
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
4 years ago