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
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
This patch adds show quota details API to network quotas_client library
and also adds test cases for this new feature.
Change-Id: I1d229d7903db719369fd8ec0eb0bd2ce4d15978f
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
Curly quotes usually input from Chinese input method.
When read from english context, it makes some confusion.
Change-Id: I6209f92de2a5b136c2c16decfe5752f5c44096ff
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
'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
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
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
This patch adds show default quotas API to network quotas_client
library and also adds test cases for this feature.
Change-Id: Icadc4a522681ab042ca6e07908bdc16f08330add
'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
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
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
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
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
'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
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