I99f9910f75aef095f2bbb37680ee584e52bf82da introduced a new
kwarg to the delete_volume() method. But the correct way to
do this is to introduce a generic **params argument, so avoid
changing the signature of the method too often.
Change-Id: Ifb6731fd893a32bea6c7832236bb26a2eacaf56c
This is to add **kwargs in base.setup_test_project, in order
that it can be more widely used in testcases to create test
project, so to make code clean.
Change-Id: Ife6e6645a6ddb5d5f291641620333d12afae7d86
This is to add **kwargs in base.setup_test_tenant in order
that it can be more widely used in testcases to create
test tenant, so to make code clean.
Change-Id: I7841dd88e240a730da26384ac9ee2801ef1757f1
Volume v2 transfers_client library lacks API: list volume transfers
with detail. This patch adds the support.
Including:
[1] Add list volume transfers with detail API to v2 transfers_client
[2] Add release note
[3] Add unit test for the added API
[4] Small fix on test_create_list_delete_volume_transfer
Change-Id: Ide9ac50cfb8dc834dc5f264a72f0b857f77b5f15
This is clearly a leftover added while coding. Those print
statements just add some noise in our unit test runs.
Change-Id: Ib0daea56cb8b1eef73528ba16b88dd3e8fbd86da
As properly decorated with oslo-debtcollector, the get_ipv6_addr_by_EUI64
function from the data_utils module is deprecated. We should use the
equivalent function from oslo-utils instead.
Change-Id: Ida84f13fff2b660af67676ed3432ffefe0b8f2bb
We are going to make test.py stable for plugins, so it should
only depend on tempest.lib and config.
InvalidServiceTag is in the exceptions module.
It cannot be moved in tempest.lib.exceptions since it has no meaning
in there, so moving it to test.py directly.
Change-Id: I969fb45a44ce08c176d64dfe1c58d75215eacdf5
During ATL PTG, we discussed about the testing
of API microversions in Tempest and what all
tests can be implemented on Tempest side.
This patch adds those consensus in doc to clarify
about microversion testing scope.
Change-Id: Ifbaa66dba932a7472010bddf11545d66b95ba42e
This commit adds a services decorator to properly tag the servers
negative test test_create_server_invalid_bdm_in_2nd_dict() as requiring
cinder. Otherwise if you run tempest with cinder disabled it will fail
because the cinder endpoint can't be found. (although it's hard to tell
because the related_bug decorator drops all the useful debug info)
Change-Id: I25063583cae204bc8035e2d33aeaf8f4b667efbc
Some editorial changes around the "tempest cleanup" command
such as specifying the name of the command in the documentation
as well as suggested usage.
Change-Id: I30ddd660f7ecce5a10457671c48033be3eacf71d
This commit adds documentation on how to interact with clients, client
managers, and credentials objects. These are critical pieces of
information for anyone writing tempest tests, so making sure the guide
includes this information is equally important.
Change-Id: I89e2c137068eea8aeaff0561fe078eccd3a23f0e
This commit makes to use sequence directly instead of using
len(SEQUENCE). The original code works correctly, and it's really
straight forward. However, PEP8 recommends like below[1]. And it
makes code more simple, too.
```
For sequences, (strings, lists, tuples), use the fact that empty
sequences are false.
Yes: if not seq:
if seq:
No: if len(seq):
if not len(seq):
```
[1] https://www.python.org/dev/peps/pep-0008/#programming-recommendations
Change-Id: I8d41e16d82b1b3860a98e5217cb7a541fc83b907
I think it's a good idea to move all utility decorators into
tempest/lib/decorators.py. This patch does that for the `attr`
decorator.
Change-Id: Iaafbb112b6eee458089cc49918359a8a8d0485e2
Heat service client, configuration and test will move out of
Tempest. Since configuration is a stable interface for Tempest
we start deprecation on the configuration options, so that
we can remove them in a cycle time.
Change-Id: Id0f69f3b60cbb4f4a1f1fa7e18c7700490d6656a
This commit improves docstring examples. The original examples are
written in interactive mode style. However, I feel it's weird when it is
multiple lines, especially. So, this commit just removes '>>> ' and
updates some code block attributes.
Change-Id: I2f46042607c0f57d93634fbdffbb4400256a8489
I think it's a good idea to move all utility decorators into
tempest/lib/decorators.py. This patch does that for the `related_bug`
decorator.
Change-Id: I846d575e41f4dddfd5642b7750e988f75a717e7d
This is to remove leading underscore in _create_test_user,
and to generate some random values for the fields that
are not given, so create_test_user can be more widely
used to make code clean.
Change-Id: Iacb6c1390de3718694dc3a1bb5ec2012e4164b13
Rather than repeating the list of services twice, use the
one defined in get_service_list. Note that this removes
baremetal from the list of accepted services.
Change-Id: Ib5a9b33a54ef1064f5dc8f6206ddd1c7d218fc8e
This was a leftover from when paremetrs was replaced with
configuration from the registry. Anything that is not standard
configuration must be passed from CONF.
Change-Id: I78fc364d10a1e56285766c57d5ec4c90be28fb18
Now tempest has provided tests for tenant's quota in volume, but
lacks tests for volume quota class. This patch adds this support.
Including:
[1] Add volume v2 quota class client as library
[2] Add release note
[3] Add test cases: show & update volume 'default' quota class
[4] Add unit tests for volume v2 quota class client
[5] Fix for test_volume_quotas.py
Change-Id: I30bac79b986e6e90d43dcc6f9d247e74a314bf3c
Config options v3_endpoint_type, v2_public_endpoint_type and
v2_admin_endpoint_type only allow dedicated values[1],
oslo.config 4.0 will check overridden value type by default[2],
so need remove invalid overridden values.
[1] 0d93900ba6/tempest/config.py (L145-L164)
[2] https://review.openstack.org/#/c/328692/
Closes-Bug: #1517839
Change-Id: I86cc9e53b86a69357254b68ba564df716a2284a5
The test_volume_list_with_detail_param_marker has been skipped
since Ic1c62311b32ed0c26b9aa085c64d4d44a1271840 The problem
is that the test assumed that the created volumes (in the test
setup) were ordered by ID.
This patch fixes the test by testing explicitely that all the
volumes ID we got in response to our list request have an ID
greater than a given/choosen marker.
Change-Id: Ie480a00abcb4c6be494aaa6afb2c061c2e0d4816
Closes-Bug: #1572765