This patch aims to remove 'skip_unless_attr' decorator, which marked as
deprecated and would be removed in Queens.
Change-Id: I33fb4466df2747fdbbf023373e53079a99a4d2c2
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
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
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
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
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
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
When proxy_url was added, it was added to the AuthProvider
but not to the get_credentials helper, so fixing that.
Change-Id: I2bcb8446295178cc7a24437478a6a1d293e5a197
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
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
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
Currently it's impossible to provide related parameters
to the class, which leads to clients functional tests
failures.
Change-Id: I50490428f85e264e6b5e3b7c83ff768a986cb8c8
Closes-bug: #1719687
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
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
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
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
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
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
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
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
As per request in [0] adding bug reference to releasenote.
[0] I1a308f486fd7b14a9111a3433284e3c4abf65bd3
Change-Id: I13d04e3c4121b172d22730d19cc8a64dde151225
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
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