8799 Commits

Author SHA1 Message Date
Matthew Treinish
c89a951ba7
Add support for workspaces to tempest run
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
2016-06-29 15:44:55 -04:00
Matthew Treinish
a6b4da9f5f
Add whitelist and blacklist file options to tempest run
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
2016-06-29 15:43:51 -04:00
Jenkins
330f11dd91 Merge "Define 4 identity v2 clients as libraries" 2016-06-29 04:09:41 +00:00
Jenkins
8c8fd0d7fe Merge "Fix Available params docs in service clients" 2016-06-29 02:48:44 +00:00
Jenkins
e7848155ce Merge "Fix resize tests" 2016-06-29 02:19:25 +00:00
Jenkins
3c0220b355 Merge "Updated from global requirements" 2016-06-29 01:29:06 +00:00
ghanshyam
1719306170 Define 4 identity v2 clients as libraries
- 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
2016-06-29 09:20:21 +09:00
Jenkins
65abcb0ebb Merge "Prepare the Manager class for tempest.lib" 2016-06-28 22:58:48 +00:00
Jenkins
8141152e3b Merge "Cinder volume type access tests" 2016-06-28 20:32:19 +00:00
OpenStack Proposal Bot
00abfde60a Updated from global requirements
Change-Id: I675a6d1b4275b120c9f8dcbaf2ddc1f79b0d5f6b
2016-06-28 18:57:02 +00:00
Jenkins
9a62d0cc5e Merge "Test-requirements: Bump hacking to >=0.11" 2016-06-28 16:32:06 +00:00
Andrea Frittoli (andreaf)
2395014351 Prepare the Manager class for tempest.lib
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
2016-06-28 15:24:41 +01:00
Jenkins
f11e225b0c Merge "Remove unused service tags and client" 2016-06-28 10:05:08 +00:00
Jenkins
e6394dbeda Merge "Member role may already exist" 2016-06-28 10:00:36 +00:00
Mikhail Feoktistov
7a71ff535a Fix resize tests
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
2016-06-28 05:18:03 -04:00
Masayuki Igawa
22b3008661 Remove unused service tags and client
This commit removes unused service tags and a client. We should keep our
code clean as possible.

Change-Id: I428ac6740feaaabdd17a02a03ea5230d202d89d2
2016-06-28 15:09:31 +09:00
Jenkins
5e2ebd5ccf Merge "Remove placeholder file from releasenotes/notes dir" 2016-06-28 02:46:23 +00:00
Jenkins
3e169424f8 Merge "Remove trove tests from tempest" 2016-06-28 01:31:02 +00:00
Jenkins
3c5b06f259 Merge "Define v1 images_client as library" 2016-06-28 01:29:22 +00:00
Jenkins
7209dc877a Merge "Move image_meta_to_headers from images_client" 2016-06-28 01:28:05 +00:00
Adam Young
b226f8e887
Member role may already exist
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
2016-06-27 15:19:15 -04:00
Jenkins
396593432c Merge "Add subunit-describe-calls" 2016-06-27 18:26:45 +00:00
Jenkins
c4d3a05ab4 Merge "Py3: Don't use dict.keys()[0], dict.values()[0] or dict.items()[0]" 2016-06-27 18:14:05 +00:00
Matthew Treinish
bac2abec4f
Remove placeholder file from releasenotes/notes dir
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
2016-06-27 12:42:52 -04:00
Matthew Treinish
c9cbb0f0ec
Remove trove tests from tempest
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
2016-06-27 10:22:11 -04:00
Jenkins
0a70535150 Merge "Py3: don't access the unicode type directly." 2016-06-24 17:30:27 +00:00
Ken'ichi Ohmichi
4172101201 Define v1 images_client as library
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
2016-06-25 00:10:52 +09:00
Ken'ichi Ohmichi
02bcdf36db Move image_meta_to_headers from images_client
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
2016-06-25 00:10:52 +09:00
Jenkins
f9b4068fb1 Merge "Fix AttributeError with run_validation=true" 2016-06-24 14:34:29 +00:00
Jenkins
1363561cfc Merge "Remove unnecessary __init__ and resource_setup/cleanup" 2016-06-24 14:23:10 +00:00
Jenkins
508b96669d Merge "Fix assertItemsEqual usage for py3" 2016-06-24 11:01:46 +00:00
Jordan Pittier
e879120c35 Py3: don't access the unicode type directly.
The `unicode` type doesn't exist in Py3. Use six.text_type instead.

Change-Id: I54313aeec99300c339065c68c18a7885a55af5d7
2016-06-24 11:51:31 +02:00
Jenkins
5536e1dd2d Merge "Add available params in base_volumes_client's comment" 2016-06-24 09:17:08 +00:00
Jenkins
2c074c17ba Merge "Fixed typo in in data_utils.py" 2016-06-24 09:02:21 +00:00
zhufl
d7429315f4 Remove unnecessary __init__ and resource_setup/cleanup
This is to remove some unnecessary __init__ and resource_setup
and resource_cleanup to keep code clean.

Change-Id: I56c00649c5611ef1f94993ae63cef129b04735d3
2016-06-24 16:02:07 +08:00
YAMAMOTO Takashi
42189bf8dc Fix AttributeError with run_validation=true
This fixes a regression in the recently merged change. [1]

[1] Ie7814bd50f1c57c5f8da8355f665f09c9ac8e2d9

Closes-Bug: #1595823
Change-Id: I135a52f052ed9acebff8e5c2f523a1b08a6fe01e
2016-06-24 16:04:08 +09:00
Jenkins
6dbc403f3d Merge "Add test removal procedure doc" 2016-06-24 07:02:36 +00:00
guo xian
d8bc1cdae7 Add available params in base_volumes_client's comment
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
2016-06-24 14:10:04 +08:00
ghanshyam
2dee5e3fdd Fix assertItemsEqual usage for py3
assertItemsEqual is not present in python 3 so
we should use six.assertCountEqual for compatibilty
between python 2 and 3.

Change-Id: I0e6c35e0ae033c1669bb978050a7899491edcba8
2016-06-24 14:42:56 +09:00
Jenkins
b355a7c509 Merge "Add Available params in volume backup and snapshot clients" 2016-06-24 04:27:04 +00:00
Masayuki Igawa
67a446eea0 Fix Available params docs in service clients
This commit fixes the 'Available params' docs in service clients. I
checked the existence of the links with a simple script.

Change-Id: I21d8fa5b2898a7b5dde06f3d16d1409189ffbf18
2016-06-24 13:25:19 +09:00
Jenkins
9c6bb2d7e0 Merge "Api specs for update_volume_image_metadata" 2016-06-24 04:21:31 +00:00
Jenkins
45b2b318ea Merge "Correct "Available params" link in create_flavor" 2016-06-24 04:04:26 +00:00
Jenkins
1fd1a9d363 Merge "Remove the _try_wrapper function from identity tests" 2016-06-24 03:15:22 +00:00
Jenkins
27b0417974 Merge "Move properties handling to the test side" 2016-06-24 03:08:27 +00:00
Jenkins
d54f2b1c8b Merge "Add guidance on negative tests in HACKING.rst" 2016-06-24 02:44:43 +00:00
zhufl
b9255a51fa Add Available params in volume backup and snapshot clients
This is to add Available params in volume backup and snapshot
clients.

Change-Id: I0dfa0e4d846b9a746f27e4a2c6d408df00517887
2016-06-24 10:29:43 +08:00
zhufl
9f3afc0827 Correct "Available params" link in create_flavor
Available params link in create_flavor is invalid, and this is to
correct this.

Change-Id: Ib1eb62723ae44436f2ff5db1fb4218d7a77ff463
2016-06-24 09:02:58 +08:00
Jenkins
9fa35f013f Merge "Volume pagination with specific tenant" 2016-06-24 00:28:14 +00:00
Jenkins
b6daa85514 Merge "Cleanup projects in reverse order" 2016-06-24 00:28:00 +00:00