447 Commits

Author SHA1 Message Date
Zuul
24a753dcfb Merge "Switch Tempest CLI commands from testrepository to stestr" 2018-02-21 23:01:59 +00:00
Mohammed Naser
b6c6d2a128 Refactor config drive mounting
There are a few places where we mount the config drive which
is not done in a consistent manner which results in failures
for the cases where the config drive is VFAT, which makes the
device label report as CONFIG-2 and not config-2 (uppercase).

This refactors the mounting and unmounting codebase to the
same block and reuses it to ensure a consistent behaviour across
tests, also letting the tags checks pass when using VFAT for
config drives.

Change-Id: I529cff87c848bc87d63d2ec407ed18cdd631ecef
2018-02-19 10:16:13 -05:00
Chandan Kumar
8a4396e3d3 Switch Tempest CLI commands from testrepository to stestr
This commit switches the Tempest CLI commands to internally use stestr
instead of testrepository. At this point in time the testrepository
project is effectively unmaintained and stestr was a fork started to
have an actively maintained test runner. It also focuses on being a
dedicated python test runner, instead of an abstract test runner
interface for any tests that emit subunit.

Besides the bug fixes and other improvements included with stestr, this
switch provides a number of advantages for tempest. Primarily stestr has
a real python API for invoking the test runner directly from python. This
means we can simplify the wrapper code to simply call a function instead
of building out a set of CLI arguments and passing that to the CLI
processor.

Co-Authored-By: Matthew Treinish <mtreinish@kortar.org>

Depends-On: Ic1fa3a98b6bcd151c489b078028687892655a19b
Depends-On: I3855aad5ce129ec8ccb87c05f7aa709b74070efe
Depends-On: https://review.openstack.org/529490/
Change-Id: I6f5fa7796c576b71c4a0dde66896974a8039a848
2018-02-13 08:16:33 +00:00
jeremy.zhang
1ac13b274a Add show quota details to network quotas_client library
This patch adds show quota details API to network quotas_client library
and also adds test cases for this new feature.

Change-Id: I1d229d7903db719369fd8ec0eb0bd2ce4d15978f
2018-02-09 17:32:45 +08:00
jeremy.zhang
d88a250924 Add test for showing encryption specs item
This patch adds test for the missing API (volume v2):
show specific encryption specs item for a volume type.

Including:

[1] Add show encryption specs item API to v2 encryption_types_client
[2] Add unit test for the API
[3] Modify test case: test_volume_type_encryption_create_get_update_delete
[4] Add release note

Change-Id: Idd91e39716f4acf6796412f3f67ef8b6771916f9
2018-02-08 04:30:39 +00:00
Zuul
09ff7ab781 Merge "Add a few tests for cinder multiattach" 2018-02-02 03:40:27 +00:00
Zuul
562773f7e4 Merge "Add show default quotas API to network quotas_client library" 2018-01-31 05:19:47 +00:00
Zuul
9139224f2c Merge "Add test case for group type specs APIs" 2018-01-28 09:25:58 +00:00
gaofei
6ec582f111 Replace curly quotes with straight quotes
Curly quotes usually input from Chinese input method.
When read from english context, it makes some confusion.

Change-Id: I6209f92de2a5b136c2c16decfe5752f5c44096ff
2018-01-26 05:56:28 +00:00
Matt Riedemann
81fa9b6aaa Add a few tests for cinder multiattach
This adds basic compute API tests for testing a multiattach volume in
Cinder being attached to multiple instances in Nova and then
detaching them.

This change depends on the nova series that adds the support to nova's
libvirt driver.

Devstack change I46b7eabf6a28f230666f6933a087f73cb4408348 is used to
enable this test when using the libvirt driver.

Depends-On: I02120ef8767c3f9c9497bff67101e57e204ed6f4
Depends-On: Iac67f112b0dc9353c6a66e6fbc81cc8324a2b37c

Part of nova blueprint multi-attach-volume

Change-Id: I80c20914c03d7371e798ca3567c37307a0d54aaa
2018-01-25 21:37:49 -05:00
ghanshyam
6283daa5ad Remove deprecated 'orchestration' config group options
'orchestration' config group options were deprecated in
Id0f69f3b60cbb4f4a1f1fa7e18c7700490d6656a

And heat tests also been removed from tempest
- Ifc2cac575919da4e361eaa3234d7e0f3e2f98d21

Now we can remove these deprecated config options.

Cleaning up heat related things in account_generator,
cleanup_service etc.

Change-Id: I1c02fd88c3d93b511ff4a6b54b668ebd306481a9
2018-01-21 17:15:42 +03:00
ghanshyam
b20f7e62c6 Remove deprecated config options 'resources_prefix'
Config option 'resources_prefix' was deprecated. It is
used by only manila plugin which fix has been commited.

This commit removes this config option and hardcode the
resource prefix as 'tempest'

Change-Id: Idce7af97fe6647e3095b2b626fbacb3446694fbc
Depends-On: I9c140b3a9efabeced7fc26cb1f169ebe6789d88b
2018-01-21 07:29:55 +00:00
jeremy.zhang
98dc45ca3c Add test case for group type specs APIs
Group type specs APIs (min_microversion is 3.11) are implemented in v3
volume group types. These APIs has not been tested in Tempest yet, and
this patch adds test case for the new features.

Including:

[1] Add group type specs APIs to v3 group_types_client
[2] Add unit tests for group type specs APIs
[3] Add test case: test_group_type_specs_create_show_update_list_delete
[4] Add release note

Change-Id: Ie7c8dd06238e111cdf691f083500018d066dd689
2018-01-19 02:42:20 +00:00
Zuul
178807293c Merge "Remove 'deactivate_image' config options" 2018-01-18 09:11:16 +00:00
jeremy.zhang
6e695c9626 Add show default quotas API to network quotas_client library
This patch adds show default quotas API to network quotas_client
library and also adds test cases for this feature.

Change-Id: Icadc4a522681ab042ca6e07908bdc16f08330add
2018-01-16 15:05:18 +00:00
ghanshyam
7ac02f364d Remove 'deactivate_image' config options
'deactivate_image' config option was added long
back in kilo cycle and has been deprecated for
removal.
- I584cd40a9b5f297537333336b1b9a46ccf1ddc67

This commit removes it from tempest.

Change-Id: I843d4c64f24407d9d217005d5ea59d50d7ad62e7
2018-01-12 00:13:07 +00:00
Luigi Toscano
d3db306af8 CLI tests: Identity v3 (project name, api version)
Switch to --os-project-name instead of --os-tenant-name, and pass
also --os-identity-api-version.
All the clients which are wrapped by some method of the CLIClient class
and which use cmd_with_auth support the newly introduced flags at least
since Liberty.
Only exception: the keystone client, which was removed in Newton, so
it is not supported anyway (and it has not been fixed).

Closes-Bug: #1721553
Change-Id: I6d34e76b4089be024093a75f9e467d273d80f1c2
2018-01-11 10:26:54 +01:00
Matthew Treinish
be11739269
Add release note about the ostestr tox job
The ostestr tox job was recently removed from the tempest tox.ini,
mostly because we're moving towards standardizing on just using stestr
for everything and dropping the dependency on os-testr. During the
review that removed the job, some concerns were raised that it might
break people. To address that this commit adds a release note explaining
the potential upgrade implications and how to work around the removal.

Change-Id: Ibc59e01af9f5a9c4d8c67fbde1f029decf602226
2017-12-18 11:31:29 -05:00
melanie witt
334f313220 Add CONF.compute_feature_enabled.volume_backed_live_migration
The test_volume_backed_live_migration test has been skipped for some
time because of a bug [1] which could possibly be resolved with newer
libvirt and qemu package versions available in the pike UCA.

This changes the unconditional skip to a config option controlled skip
so that we can try re-enabling this test on the master branch for nova
changes.

[1] https://bugs.launchpad.net/nova/+bug/1524898

Change-Id: I78ceb1aaa3e96f6b76fa94aba50527022c3e2d45
2017-12-15 16:53:56 +00:00
Zuul
9a257398fa Merge "Add update groups types API endpoint to volumes v3 library" 2017-12-14 03:24:07 +00:00
Felipe Monteiro
a2f69f11a7 Add update groups types API endpoint to volumes v3 library
This PS adds update group types API to v3 ``group_types_client``
library; min_microversion of this API is 3.11 [0].

Included in this PS:

* Update group types API to group_types_client
* Unit tests for update API
* API test for update API

[0] https://docs.openstack.org/cinder/latest/contributor/api_microversion_history.html#id11

Change-Id: Ie3834c1a4b3ebd1463cdaacc86cd21b7be9fa3ce
2017-12-13 17:26:48 +00:00
ghanshyam
efb12befbf Remove deprecated 'forbid_global_implied_dsr' feature flag
'forbid_global_implied_dsr' feature flag was added for Mitaka
and older branches which are not supported now.

Devstack already removed this feature flag setting
- Ia1eb87d68a6265d8541cb87a88523246885e5a8a

This commit removes this from tempest.

Change-Id: I5422e33867a6038e8a4782dbdc639434a3c2b4b6
2017-12-11 00:11:41 +00:00
jeremy.zhang
0648215f58 Remove deprecated skip_unless_attr decorator
This patch aims to remove 'skip_unless_attr' decorator, which marked as
deprecated and would be removed in Queens.

Change-Id: I33fb4466df2747fdbbf023373e53079a99a4d2c2
2017-11-29 14:37:04 +00:00
Andreas Jaeger
a12e8daff8 Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: I87a073ba9d61a4817aff0c57cd31c143a2c16259
2017-11-16 22:30:56 +01:00
zhufl
cf52e342e8 Add support of args and kwargs in call_until_true
Now call_until_true doesn't accept args and kwargs,
so if want to call a callable with parameters, we have to
do like this(test_network_v6.py):
    srv1_v6_addr_assigned = functools.partial(
        guest_has_address, sshv4_1, ips_from_api_1['6'][i])
    self.assertTrue(test_utils.call_until_true(srv1_v6_addr_assigned,
                    CONF.validation.ping_timeout, 1))
So this is to add support of args and kwargs in call_until_true,
and to log the cost time when call_until_true returns True or
False for debugging.

Change-Id: Ib7a392f1a3999c2f2bd3cccaf2fd356cd7879950
2017-11-14 10:27:07 +08:00
jeremy.zhang
710c8422fe Remove deprecated volume apis from v2 volumes client
The APIs 'show_pools' and 'show_backend_capabilities' in v2
volumes_client are deprecated, and they are re-realized in volume
v2 scheduler_stats_client and capabilities_client. Now these two
deprecated APIs are not being used by any other projects, and it is
time to remove them from the v2 volumes_client.

Change-Id: Iaed636bffe912e424dbccb20c38946525af052db
2017-10-31 15:48:02 +08:00
Zuul
3186439371 Merge "List auth domains v3 identity endpoint" 2017-10-27 08:27:31 +00:00
Zuul
bd9798d0ec Merge "Don't read config in cred_factory module" 2017-10-26 10:39:45 +00:00
Felipe Monteiro
60ebc5d0e3 List auth domains v3 identity endpoint
This commit adds ``list_auth_domains`` to the v3 identity
client.

Note that the related test doesn't require admin credentials [0]
yet has been created in the admin sub-folder for identity
because ``test_list_auth_projects`` was already present therein.

[0] 82f60fe22c/keystone/auth/controllers.py (L410)

Change-Id: Ie50c30bfff1900a9056aaedca7ba15b0d9573eab
2017-10-26 03:40:58 +00:00
Zuul
fbd26cf124 Merge "Add release notes for an queens intermediate release." 2017-10-26 02:42:12 +00:00
Zuul
1d8dfec13d Merge "Remove method get_ipv6_addr_by_EUI64" 2017-10-25 05:35:52 +00:00
ghanshyam
a22794d93f Add release notes for an queens intermediate release.
Change-Id: If1a9518e624d4d48a82daf8541d7db15d8040cb4
2017-10-25 00:46:02 +00:00
Zuul
363adc5975 Merge "Make test.py and clients.py as stable for plugins" 2017-10-24 13:01:52 +00:00
Andrea Frittoli
cad70e20cf Don't read config in cred_factory module
The credentials_factory module loads a few bit configuration
at module import time when the DEFAULT_PARAMS variable is defined.
This is not a good idea as it forces configuration to be loaded
even during test discovery. Besides DEFAULT_PARAMS was out of
date as it did not include http_timeout.

Replacing the DEFAULT_PARAMS variable with calls to
config.service_client_config().

Not loading CONF at test discovery time uncovered the fact that
the account generator unit tests were depending on oslo log
configuration parameters to be there. Mocking the log setup
step fixed the issue.

Change-Id: I6e0eb85b3749baedb6035f59ed1c66850f6c95fb
2017-10-24 08:42:29 +02:00
Andrea Frittoli
bf142fc3d8 Make test.py and clients.py as stable for plugins
test.py and clients.py now only depend on stable
interfaces and can be marked stable for plugins.

Previous patches added unit tests and docstrings
for most methods.

Change-Id: I22cb1a7744d2310f9b70769e136803a607217ceb
2017-10-23 17:51:32 +02:00
Andrea Frittoli
cb94b5e506 Add proxy_url to get_credentials in auth
When proxy_url was added, it was added to the AuthProvider
but not to the get_credentials helper, so fixing that.

Change-Id: I2bcb8446295178cc7a24437478a6a1d293e5a197
2017-10-23 16:53:34 +02:00
Lance Bragstad
1fbad23824 Disable testing of the v2.0 identity API
The v2.0 identity API is being removed in the Queens release, but in
order to do so we need to exclude/remove some v2.0 tempests tests
from being run. Since tempest is branchless we should keep the tests
around until Queens is EOL and then we can go through and clean up
all the v2.0 cruft from tempest.

Change-Id: I5d6bd5e1bfe2d5c999ced9ff92de846e50cc2c12
2017-10-18 13:59:00 +00:00
Zuul
c91d445614 Merge "Move the object client to tempest.lib" 2017-10-18 12:32:08 +00:00
Zuul
faa2e5dff0 Merge "Allow to specify user and project domains in CLIclient" 2017-10-18 06:57:29 +00:00
Andrea Frittoli
986407ddd3 Move the object client to tempest.lib
Move the object client to tempest.lib and cleanup the last bits
of code that were required to manage internal-only tempest service
clients.

Change-Id: Ia9aeab78e530c798dfa7b7d6f71e4b3ea3a84b7f
2017-10-17 00:14:20 +00:00
Matthew Treinish
74514400a2 Add config options to set proxy_url
As part of the migration from httblib2 -> urllib3 we lost support for
handling the env vars for setting an http proxy. This wasn't ever an
explicit feature in tempest, but instead was an artifact of our
library choice for doing http. However as people relied on this
functionality and it is a useful feature having tempest support this
explicitly will make sure we don't accidentally drop support for it in
the future. This commit adds a new config options to specify and
proxy_url to replace the lost functionality.

Change-Id: Id8f6422a323f8bfdb10527f55c0cb046622b88bf
Closes-Bug: #1556864
2017-10-16 16:36:48 +00:00
Mike Fedosin
b441134c58 Allow to specify user and project domains in CLIclient
Currently it's impossible to provide related parameters
to the class, which leads to clients functional tests
failures.

Change-Id: I50490428f85e264e6b5e3b7c83ff768a986cb8c8
Closes-bug: #1719687
2017-10-12 14:46:45 +03:00
Jenkins
41e2c31129 Merge "Add release note for --load-list" 2017-10-11 10:39:46 +00:00
zhangxuanyuan
712dafab0d Remove method get_ipv6_addr_by_EUI64
oslo_utils.netutils provides same method get_ipv6_addr_by_EUI64

Change-Id: Ibc615d652be4594748188170764adb5d9fd0473b
2017-10-11 17:42:04 +08:00
Jenkins
cf4880e7dc Merge "Move object storage container_client to lib interface" 2017-10-10 13:24:53 +00:00
Jenkins
b39e6b25c9 Merge "Remove deprecated APIs from volume v2 volumes_client" 2017-10-09 02:53:19 +00:00
ghanshyam
cddfdced59 Move object storage container_client to lib interface
object storage container_client is stable now and good to be moved
as stable library interface.

Unit tests will be next step for those clients which should
be ok after miving to lib.

Partially implements blueprint consistent-service-method-names

Change-Id: I74c6d62058e0dcf9284f313c6f45d83c20597fc4
2017-10-06 00:12:31 +00:00
Trevor McCasland
ae0e27b542 Add release note for --load-list
This is a follow up patch to:
    I75488871ac797d6bec4e2834c9d1b0c7885c891b

Change-Id: Ic181159530a86532a7d5529f42e216a09fa98b72
2017-10-05 20:08:16 +00:00
Jenkins
e2412107e4 Merge "Add test case for reset group snapshot status" 2017-09-27 14:28:53 +00:00
Jenkins
afd0e998b5 Merge "Fix list_group_snapshots API in v3 group_snapshots_client" 2017-09-27 14:28:17 +00:00