This commit enables tempest run to natively run in a workspace.
It adds 2 new CLI options to specify the workspace you want to run
in. If set tempest run will automatically switch to using that
workspace and run the tests in there.
Change-Id: I703397cd11d95169c69b48107d0dd8ae762cfeab
This commit uses the regex_builder logic from os-testr to construct a
regex given a whitelist and/or a blacklist file. Where all matches from
the blacklist file will be excluded and all matches from the whitelist file
will be included.
Partially-Implements bp tempest-run-cmd
Change-Id: I642fac16c6da4a5b6c5eb2d6d3145d18ab1823ce
- roles_client
- services_client
- tenants_client
- users_client
of identity v2 services are stable and good interface to
migrate those in libraries interfaces.
neutron tempest tests and other CI use below service clients
from tempest path so keeping those temporarily in tempest also
otherwise it will break their gate.
These service clients will be removed from tempest path once
those interface are released n lib and fixed in neutron side etc.
- roles_client
- tenants_client
- users_client
Partially implements blueprint consistent-service-method-names
Change-Id: I3c09396f36a82d484de226cfe27848b6916cb636
Remove CONF dependencies from the client manager base class,
to make it useful to external consumers (such as plugins).
The ultimate target is to have a manager which can be used with
as little as possible setup, which only instantiates the clients
which are actually needed by the test, and which allows to register
new service clients defined in plugins.
Since plugins already import both manager.Manager and
clients.Manager, we maintain for now both classes with their names.
The plan is to migrate the 6 core service client groups to
manager.Manager, so that those clients are available to all tests
along with plugin clients. That requires a few steps. I'm doing
changes in clients.Manager for now so that it's easier to review.
The result of this first step is:
- manager.Manager is moved to manager_lib.Manager and does not
depend on CONF anymore, nor on any tempest unstable class.
It does not provide any client yet.
Add unit test coverage for this class.
- manager.Manager is still provided with backward compatible
interface for plugins benefit.
Change-Id: Ic9ccc7037d15cdd4c6f1749eaeda13d4e7ee0114
Partially-implements: bp client-manager-refactor
If we run two resize tests one by one with the same
instance for two resize operations than we have a bug.
First test case test_resize_server_from_manual_to_auto
resizes the instance from flavor_ref to flavor_ref_alt.
After that we reuse this instance for the next test case
test_resize_server_from_auto_to_manual. In this test case
we try to resize this instance from flavor_ref_alt to flavor_ref.
And it causes error "Can't resize disk down".
In this patch we use a new server for each test case.
Firstly we create a new instance, than we set necessary
disk_config and try to resize this instance. Also we added
server_id as parameter for _update_server_with_disk_config()
to set disk_config for specified instance.
Change-Id: I04c4379459c2fc1fd4801ec2aad53d0f6053b6d6
Closes-Bug: #1358221
The tests that first setup the v3 Member role may be getting into a race
condition where the Member role is attempted to be created by multiple
workers. This change ignores the conflict because the Member role is not
test specific so it can only be created once when no domain id is
provided. The create_user_role call already checks if the role exists,
but we have seen multiple threads attempt to create the role almost
simultaneously leading to a conflict on the second request.
Closes-Bug: #1596250
Co-Authored-By: Alex Schultz <aschultz@mirantis.com>
Co-Authored-By: Matthew Treinish <mtreinish@kortar.org>
Change-Id: Ic96f622a2fa00e2fd0cb3ebb22e3df000bac5345
We have release notes now so we don't need a placeholder file to keep
the dir in the git tree anymore. This commit does just that and
removes the placeholder file.
Change-Id: I58be304d6341cf8795f268274e5e03aaeff6a695
This commit removes the trove tests from tempest as part of plugin
decomposition of tempest. Trove isn't in scope for testing in tempest
anymore and tempest testing will be done via a plugin now.
Change-Id: I0407e96f628e96bd4d3f7f42cf433b756a5bbaa9
Image v1 API's images_client has good interfaces now,
then this patch makes the client as a library.
Partially implements blueprint consistent-service-method-names
Change-Id: I8a0346e5526bfb83e54e0184bbc34ad5195203c3
Glance v1 images_client contains image_meta_to_headers() which
converts a dict to headers. However, most service clients'
methods don't convert like that.
Then this moves image_meta_to_headers() to common place like
the compute module from the service client.
Partially implements blueprint consistent-service-method-names
Change-Id: Id8e47fd35f7667578854bc439238a4b0f36fbb8f
This is to remove some unnecessary __init__ and resource_setup
and resource_cleanup to keep code clean.
Change-Id: I56c00649c5611ef1f94993ae63cef129b04735d3
This fixes a regression in the recently merged change. [1]
[1] Ie7814bd50f1c57c5f8da8355f665f09c9ac8e2d9
Closes-Bug: #1595823
Change-Id: I135a52f052ed9acebff8e5c2f523a1b08a6fe01e
Some interfaces in base_volumes_client have **kwargs parameter, but no api
reference links are given. so this is to add "Available params" in their
comments.
Change-Id: Ie8ebed2099dde1c759a6d0c76d797557afde8a2f
assertItemsEqual is not present in python 3 so
we should use six.assertCountEqual for compatibilty
between python 2 and 3.
Change-Id: I0e6c35e0ae033c1669bb978050a7899491edcba8
This commit fixes the 'Available params' docs in service clients. I
checked the existence of the links with a simple script.
Change-Id: I21d8fa5b2898a7b5dde06f3d16d1409189ffbf18