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
There is a bug in nova where the libvirt driver incorrectly removes
the local guest files for the hypervisor from shared storage because
it does not realize the instance is volume-backed. Nova runs an NFS
CI job in the experimental queue but it's not failing on resize
tests because they aren't volume-backed, so to recreate the failure
and make sure we don't regress the fix, this test is added. Nova
also runs a Ceph job which applies here too.
This moves the existing scenario test to be a compute API test. The
test ID is maintained in case people are blacklisting it, but the
slow tag is dropped because it's not a particularly slow test and
if the slow tag is applied, it won't actually be run in the jobs
that we care about testing this, e.g. NFS and Ceph jobs.
The additional wrinkle of getting the console log after the resize
is what shows the failure when the bug is not fixed, so that's added
here.
Depends-On: I29fac80d08baf64bf69e54cf673e55123174de2a
Change-Id: Id7de5186b2ea0ff7af86d9950c69203914498d88
Related-Bug: #1728603
Setup the initial folder and play to run tempest.
This simply runs tempest full for now, with not support for config
options.
Change-Id: I5a76dd23900a1b5fb1764fafd837d69baf9ed8b1
Depends-on: Iffe54fbccbccd68db08f79a1b51dd7f76dbff408
This allows passing in a server_id which may not be the same
as the self.server_id class variable.
Change-Id: I1594e19a728cf517a25559107863d5366aca0e1b
This commit adds an .htaccess file to the tempest docs to handle
redirecting old paths to the new location. Before the docs migration in
the past we had docs located at docs.openstack.org/developer/tempest and
now things are located in docs.openstack.org/tempest/latest. With this
file we should be properly redirecting old links to the new location.
Change-Id: Idec7b2f299ade9b7dcc678ea1daf8daa25f08c44
The documentation for `register_opts` in plugin.py includes two
examples, and 2nd one is ok but the 1st one is not.
Change-Id: Iecc9a2442b430ef31885f9455b8e43a4470f0e2d
This commit fixes the AssertionError in test_rand_password_with_len_2.
We were thinking an error could be happened but it's really rare.
However, it was actually happened[1]. To make the test more stable,
we shouldn't check its value but only length. It should be enough
because we already checked values in the other test cases.
[1] http://paste.openstack.org/show/625330/
Change-Id: I9a11a56e5eee9d1b01b61c04ea4bc75037c4458e
Patch I00f094a5584be40ab477cbf680a5f6d1afb4d21b reduced a bit
coverage in checking a project get against a project list. The
check was done before "by accident" in an unrelated test.
Add a new test that verifies that all fields returned by get and
list are identical and that no unexpected field is returned.
Tags are matched as sets, duplicated tags are not allowed anyways
and order is not guaranteed by the API.
Change-Id: If28bc1cbd5616008a5f444f4a68ab67b673674f5
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
Current fixed ips tests fetch the ip from server['addresses']
and call API with that ip. but it does not check if there is no
ip. That can occur when no addresses information in 'addresses'
field.
Let's skip those test if no ip is found on server side.
Change-Id: Ide965998b2d49886823e62643057c05698613169
In below patch, volume service clients alias in cleint.py
has been changed and out under version checks condition.
- I1400a870de483f5cdf125eae2a9be68b46b54343
But tempest cleanup cmd used the alias not present for all
version and get no attribute error if volume v2 or v3 version
is configured.
Change-Id: I1d0d86417ce6d92bfa0ef450ceb70dd480978fe1
Closes-Bug: #1727569
This is to use addClassResourceCleanup to cleanup
metering_labels and metering_label_rules, so the relative
cleanup can be removed from base.resource_cleanup.
Change-Id: Idb1fcaa34aa1508bbbd630ede662fa91a391e1ce
Since the early days in tempest we've been fighting getattrs on CONF
during imports. We're able to get around this during test runs by lazy
loading the conf file. However, in things like the tempest commands this
doesn't work because we rely on the config file not being parsed to set
the config file path. This commit adds unit tests to check the import
of the command files for getattrs on CONF. This should prevent future
regressions.
While not strictly necessary because of the lazy loading this also gives
a framework to potentially address the CONF getatrr on discovery. The
first revision of this patch includes the discovery test, for reference.
But we have 212 cases of getattr during import (which includes lots of
skip decorators) so it's unlikely to change any time soon.
Change-Id: Ib2c15dbd06ca810cc899258758cc8a297055fdf8
Closes-Bug: #1726357
This patch remove the calls for v2 identity in the tempest
cleanup command.
Change-Id: I74d171b65d036ed3f665b1a8dec17dc5ed73eb07
Closes-Bug: 1659065
Closes-Bug: 1724599
Update a testcase "test_update_all_quota_resources_for_tenant" to verify
"per_volume_gigabytes" and "backup_gigabytes" quota updating.
Note: There is a bug in api v2 documentation[1], since "backup_gigabytes"
and "per_volume_gigabytes" parameters aren't mentioned in api v2
document, although they are supported.
[1] https://bugs.launchpad.net/openstack-api-site/+bug/1727631
Change-Id: I9b6aa355f7a5b7fb6836e377c0f374707402c977
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