11586 Commits

Author SHA1 Message Date
Zuul
c96a318620 Merge "Fix 'tempest cleanup' for volume service client" 2017-11-16 10:18:54 +00:00
Zuul
7c8dd48f75 Merge "Remove v2 identity from tempest cleanup command" 2017-11-16 03:21:59 +00:00
Zuul
8d0a5b6876 Merge "Initial skeleton for devstack-tempest base job" 2017-11-15 01:27:07 +00:00
Zuul
5b2a246a1d Merge "Add support of args and kwargs in call_until_true" 2017-11-14 22:16:47 +00:00
Zuul
3ee10e2e98 Merge "Add a .htaccess for redirecting old paths" 2017-11-14 11:58:46 +00:00
Zuul
364358ec93 Merge "Move and update test_resize_volume_backed_server_confirm" 2017-11-14 04:27:53 +00: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
Zuul
cec4950ffd Merge "Don't use server_id class variable in _test_resize_server_confirm" 2017-11-14 02:07:00 +00:00
Zuul
25fd618ba8 Merge "Updated from global requirements" 2017-11-14 00:44:14 +00:00
Zuul
0334f1b6df Merge "Fix fixed_ips tests to skip if ip not found" 2017-11-14 00:44:11 +00:00
Matt Riedemann
1df75ee502 Move and update test_resize_volume_backed_server_confirm
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
2017-11-13 23:03:31 +00:00
OpenStack Proposal Bot
27d36e6191 Updated from global requirements
Change-Id: I565bfe16c781098b7744797a4067b93cd8d741b8
2017-11-13 21:57:19 +00:00
Zuul
36bc52dd6c Merge "Fix doc issue in plugin.py" 2017-11-08 11:59:45 +00:00
Andrea Frittoli (andreaf)
7d5445dae2 Initial skeleton for devstack-tempest base job
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
2017-11-08 18:04:39 +11:00
Matt Riedemann
ced8d3cc1a Don't use server_id class variable in _test_resize_server_confirm
This allows passing in a server_id which may not be the same
as the self.server_id class variable.

Change-Id: I1594e19a728cf517a25559107863d5366aca0e1b
2017-11-08 01:37:23 -05:00
Matthew Treinish
cd2fef95ca Add a .htaccess for redirecting old paths
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
2017-11-08 01:23:17 +00:00
Andrea Frittoli (andreaf)
17e96e1bf5 Fix doc issue in plugin.py
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
2017-11-05 21:41:33 +11:00
Zuul
93a42fd79d Merge "Change description of annotation" 2017-11-03 18:52:43 +00:00
Zuul
5837f5c0f8 Merge "Add support for "per_volume_gigabytes" and "backup_gigabytes" quota" 2017-11-02 23:12:54 +00:00
Zuul
1a709458b8 Merge "Fix AssertionError in test_rand_password_with_len_2" 2017-11-02 23:12:40 +00:00
Zuul
92a1d60b27 Merge "Ensure project get and list have match" 2017-11-02 10:55:26 +00:00
Masayuki Igawa
fa57e7eb2d
Fix AssertionError in test_rand_password_with_len_2
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
2017-11-02 19:07:17 +09:00
lianghao
f7861c7c88 Change description of annotation
Change description of annotation in test_volumes_actions.py

Change-Id: Ib579e457bb3de24c6a4da45c72110e26496f6056
2017-11-02 18:01:54 +08:00
Zuul
292f492d35 Merge "Use addClassResourceCleanup in MeteringTestJSON" 2017-11-02 09:50:41 +00:00
Andrea Frittoli
e3700176c7 Ensure project get and list have match
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
2017-11-01 12:09:15 +00:00
Zuul
bf832eb8d0 Merge "Remove deprecated volume apis from v2 volumes client" 2017-11-01 10:31:08 +00: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
8f7915cc03 Merge "Remove specific project checking in test" 2017-10-31 06:08:40 +00:00
ghanshyam
f18ea3366c Fix fixed_ips tests to skip if ip not found
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
2017-10-31 04:11:13 +00:00
ghanshyam
5992895eb1 Fix 'tempest cleanup' for volume service client
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
2017-10-31 03:44:03 +00:00
Zuul
1235b81b9c Merge "Use addClassResourceCleanup in TagsExtTest" 2017-10-27 14:32:48 +00:00
Zuul
e77667e0c1 Merge "Convert cleanup with addClassResourceCleanup in endpoint test" 2017-10-27 14:32:47 +00:00
Zuul
d4632902b9 Merge "Add unit tests to check for CONF getattr during import" 2017-10-27 09:47:16 +00:00
zhufl
37f1e6b9b0 Use addClassResourceCleanup in MeteringTestJSON
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
2017-10-27 16:50:59 +08:00
Zuul
3186439371 Merge "List auth domains v3 identity endpoint" 2017-10-27 08:27:31 +00:00
Zuul
5bdb287bd5 Merge "Remove _create_router in scenario.manager" 2017-10-27 08:21:23 +00:00
Zuul
aba16376f7 Merge "Remove routers_client from manager._create_subnet" 2017-10-27 08:21:21 +00:00
Matthew Treinish
9cf0703f20
Add unit tests to check for CONF getattr during import
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
2017-10-26 18:08:51 -04:00
Arx Cruz
05fe4bcb35 Remove v2 identity from tempest cleanup command
This patch remove the calls for v2 identity in the tempest
cleanup command.

Change-Id: I74d171b65d036ed3f665b1a8dec17dc5ed73eb07
Closes-Bug: 1659065
Closes-Bug: 1724599
2017-10-26 18:51:52 +02:00
Zuul
bd9798d0ec Merge "Don't read config in cred_factory module" 2017-10-26 10:39:45 +00:00
lkuchlan
f31310fe70 Add support for "per_volume_gigabytes" and "backup_gigabytes" quota
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
2017-10-26 10:50:44 +03:00
zhufl
dd49b2fb7d Use addClassResourceCleanup in TagsExtTest
This is to use addClassResourceCleanup in TagsExtTest,
so resource_cleanup can be removed.

Change-Id: I7d651bc00fa6eb5f6277091563e69219be798b27
2017-10-26 04:06:22 +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." 17.1.0 2017-10-26 02:42:12 +00:00
Zuul
ac0c19d39c Merge "Refactor of _check_tenant_network_connectivity" 2017-10-26 02:41:12 +00:00
Saurabh Chordiya
cd5f58612b Convert cleanup with addClassResourceCleanup in endpoint test
This patch is to use addClassResourceCleanup in test_endpoints.py
in place of resource_cleanup.

Change-Id: I5cd4e471987f4dab3fb636ef307c0d4ba8fd8a4c
2017-10-25 19:20:35 +05:30
Zuul
1d8dfec13d Merge "Remove method get_ipv6_addr_by_EUI64" 2017-10-25 05:35:52 +00:00
Zuul
a273b0fe19 Merge "Fix test case for updating volume type extra specs" 2017-10-25 04:13:35 +00:00
ghanshyam
a22794d93f Add release notes for an queens intermediate release.
Change-Id: If1a9518e624d4d48a82daf8541d7db15d8040cb4
2017-10-25 00:46:02 +00:00
Zuul
0a2332cb36 Merge "Cap compute floating IPs tests" 2017-10-24 14:34:09 +00:00