425 Commits

Author SHA1 Message Date
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
jeremy.zhang
23df2c0ac5 Add test case for reset group snapshot status
Reset group snapshot status is a new api implemented in v3 group snapshots,
min_microversion is 3.19. This patch adds test case for this new feature.

Including:

[1] Add reset group snapshot status api to v3 group_snapshots_client
[2] Add unit test for reset group snapshot status api
[3] Add test case: test_reset_group_snapshot_status
[4] Add release note

Change-Id: I14f5b8fd0f386ea5f84cc3a2decede430a7e7893
2017-09-26 22:33:17 +08:00
Jenkins
78fd3d30e2 Merge "Add test case for reset group status" 2017-09-25 09:21:17 +00:00
jeremy.zhang
0befe81e68 Remove deprecated APIs from volume v2 volumes_client
In volume v2 volumes_client, the deprecated APIs (transfer related) has
been re-realized in volume v2 transfers_client. Now in Queens it will be
a good time to remove these deprecated APIs.

Change-Id: I147cf2175d51b5db97395df27ddee41bc1417b49
2017-09-21 22:10:50 +08:00
jeremy.zhang
f92e6d42f0 Remove deprecated skip decorators
This patch aims to remove 'skip_unless_config' and 'skip_if_config'
decorators, which marked as deprecated and would be removed in Queens.

Change-Id: I45a0216b7ab34e962b0f4802df77019b0c613d49
2017-09-21 17:17:07 +08:00
jeremy.zhang
cca9974d33 Add test case for reset group status
Reset group status is a new api implemented in v3 generic volume groups,
min_microversion is 3.20. This patch adds test case for this new feature.

Including:

[1] Add reset group status api to v3 groups_client
[2] Add unit test for reset group status api
[3] Add test case: test_reset_group_status
[4] Add release note

Change-Id: I41d0c3f459c139a0e5e415c030cddbb1fe8beb46
2017-09-18 02:47:35 +00:00
jeremy.zhang
3b2a215df4 Fix list_group_snapshots API in v3 group_snapshots_client
The API (list group snapshots with details) is wrongly implemented now.
It uses the '?detail=True' to get group snapshots list with details,
which only returns 'id' and 'name' elements of group snapshots.

This patch fixes on group snapshots api and according api/unit tests to
solve this problem.

Closes-bug: #1715786
Change-Id: Ia869a7dc9654a6253c2209724afd2fe2f8519558
2017-09-18 02:46:48 +00:00
Jenkins
bc876de52f Merge "Move object storage account_client to lib interface" 2017-09-15 15:59:24 +00:00
ghanshyam
b72cf49c87 Move object storage account_client to lib interface
object storage account_client is stable now and good to be moved
as stable library interface.

Partially implements blueprint consistent-service-method-names

Change-Id: I03863fbb23e914b4115f2c0aaec0ecf266ccc060
2017-09-14 17:23:58 +00:00
Andrea Frittoli
0477accd32 Make validation_resources a stable interface
Move the module to tempest.lib, add unit tests, release notes and
update imports.

Change-Id: I76b3b8e9a83bd83a6b5742b6d2ceb84642f653ad
2017-09-12 15:02:15 -06:00
Jenkins
5415c8ee83 Merge "[Doc] Remove html_use_smartypants config in doc" 2017-09-03 12:26:56 +00:00
Jenkins
a07642783d Merge "Add compare header version function to tempest.lib" 2017-09-01 07:37:27 +00:00
Felipe Monteiro
9ff5c280ab Add compare header version function to tempest.lib
The motivation for this commit is that some API responses like
backing up a server image return the location of the image_id
in either the response body or the response header depending
on the microversion, e.g. [0]. In the case of server backup
action, image_id is added to response body in microversion 2.45.

Add `compare_version_header_to_request` to
`api_version_utils` to accept a new kwarg called
`operation`. At run time, 'eq' is translated
to the __eq__ attribute of `APIVersionRequest`.
The other operations include le, lt, gt, ge, and ne.

This makes it possible to do for example:

    if api_version_utils.compare_version_header_to_response(
            "X-OpenStack-Nova-API-Version", "2.45", resp, "lt"):
        image1_id = resp['image_id']
    else:
        image1_id = data_utils.parse_image_id(resp['location'])

Which means that if "2.45" < "microversion in resp" then
we can grab the image_id from the response body -- else we have
to grab it from resp.response['location'].

This commit:
  - adds compare_version_header_to_response to api_version_utils
    allowing to compare the request's header microversion
    to an expected microversion
  - modifies test_server_actions to use the new function in tests that
    always assume that the image_id attribute is in the resp header
    (not true across all microversions) -- this can be done to other
    tests in follow-up patch
  - adds related unit tests for all scenarios

[0] https://developer.openstack.org/api-ref/compute/#create-server-back-up-createbackup-action

Change-Id: Ib97e65cca468a09bbeaf68fcfe0e8192674a481e
2017-09-01 02:37:35 +01:00
Jenkins
f1fbb3fd8a Merge "Fix identity tests when domain specific drivers are enabled" 2017-08-31 19:38:44 +00:00
Andrea Frittoli
d2eb092a1c Add release notes page for v17
Add a new page for v17 release notes.

Depends-on: Id0f729faa56dd17c3f98c3703683256a3e493b47
Change-Id: Icaedd8aa925f54803d22af6dfb2938bfdef43e1e
2017-08-30 17:58:01 +01:00
Matthew Treinish
35976ed206
Add release not to mark the start of Pike support
This commit adds the release note necessary for version 17.0.0.

Change-Id: I9193c5529298085b344cd7758ac42435474ac9ee
2017-08-30 09:20:58 -04:00
Felipe Monteiro
15429d8c0f [TrivialFix] Add bug reference to releasenote
As per request in [0] adding bug reference to releasenote.

[0] I1a308f486fd7b14a9111a3433284e3c4abf65bd3

Change-Id: I13d04e3c4121b172d22730d19cc8a64dde151225
2017-08-25 03:23:15 +01:00
Jenkins
45e600c375 Merge "Fix RemoteClient having bad default ssh_shell_prologue" 2017-08-23 07:24:20 +00:00
Jenkins
0a107b1b30 Merge "Remove unnecessary schema check of ip address" 2017-08-23 03:24:31 +00:00
Kris Stercxk
d8152de0da Fix RemoteClient having bad default ssh_shell_prologue
Change-Id: I0e73b8deedf4bf78481cdf09b863dc149a70e9be
Closes-Bug: #1707478
2017-08-22 11:43:37 +02:00
zhufl
816358471f Remove unnecessary schema check of ip address
This is to add more accurate ip version check in address
schema which will limit ip version value in [4, 6], and
to remove unnecessary schema check in testcases.

Change-Id: Ice426db172b8d697c8a5be0426fb3f7b25e548c2
2017-08-22 06:08:16 +00:00
Leticia Wanderley
9cafd3d045 Fix identity tests when domain specific drivers are enabled
This updates users and groups identity tests to check the existence
of domain specific drivers and, therefore, the existence of users
and groups on different domain drivers.

This adds a new feature flag to be used when domain specific drivers
are enabled.

Change-Id: Iedb470c51fa2174ab7651e6b7e22eff1f25f7aac
2017-08-21 08:00:05 -03:00
Jenkins
3ea343ecc4 Merge "Fix client usage in validation resources" 2017-08-17 17:21:03 +00:00