10799 Commits

Author SHA1 Message Date
Ken'ichi Ohmichi
321fbbcd52 Move network admin test classes under admin path
The moved test classes inherit from an admin test class, and it
would be nice to exist under admin path like the other test classes.

NOTE: These test classes are not used from the other projects which
      include Defcore. It is not necessary to take care of this move.

Change-Id: Ie1ba523dbe1ea88ce27a16d9975192d5ce752075
2017-05-01 17:09:07 -07:00
Jenkins
192e64e66b Merge "Support testing nova-novncproxy on SSL" 2017-04-27 18:58:25 +00:00
Jenkins
e73d974df9 Merge "Add test for cinder volume extend when volume has snapshot" 2017-04-27 10:53:51 +00:00
OpenStack Proposal Bot
bd36c536fe Updated from global requirements
Change-Id: I99840204b12ec86a3abafcd64c9fd8ef98e7d7fe
2017-04-26 19:40:01 +00:00
Jenkins
3f0163a931 Merge "Create a snapshot from a in-use volume with force=False" 2017-04-26 19:05:23 +00:00
jeremy.zhang
dcf6b564bc Remove redundant api client in volume tests
In class method 'setup_clients' of volume tests, it defined api client
'admin_volume_types_client' for twice. This patch is to remove the
redundant one.

Change-Id: Ia91bc8829f2692ab57bc5e2b4d069eff0c94da64
2017-04-26 22:45:56 +08:00
Jenkins
5fc2548eae Merge "test.py: stop using aliases for creds manager" 2017-04-26 14:37:11 +00:00
Jenkins
93f2f81e58 Merge "[Negative] Create a volume from deactivated image" 2017-04-26 12:25:26 +00:00
Jenkins
47351cb5ef Merge "Identity V3: create_domain() must return a description field" 2017-04-26 11:45:12 +00:00
Jenkins
db4a97af41 Merge "Fix bugs about 'default' domain." 2017-04-26 10:27:30 +00:00
lianghao
6c0119947e Create a snapshot from a in-use volume with force=False
In order to test the interface of "force=False",
and distinguish with "force=True".
If the interface is "force=True",
we can create a snapshot from a in-use volume successfully.

Change-Id: I7a2002b274c8ccefc4e398c1ef362ebd7cdb1395
2017-04-26 18:01:10 +08:00
Jenkins
753966f254 Merge "Skip when force_tenant_isolation=true and no admin credentials" 2017-04-26 09:43:58 +00:00
Jordan Pittier
8160d31e58 test.py: stop using aliases for creds manager
It could be confusing to new comers that the variables
cls.os and cls.os_primary or cls.alt_manager and cls.os_alt
actually are aliases. Besides we are not consistent in their usage.

This patch normalizes the usage around os_admin, os_primary and
os_alt. We keep the old aliases for compatibility but we should not
use them anymore.

This fix a long standing TODO item.

Change-Id: I5f7164f7a7ec5d4380ca22885000caa0183a0bf7
2017-04-26 10:34:56 +02:00
Jenkins
5ee0941501 Merge "Update .mailmap" 2017-04-26 07:13:02 +00:00
Jenkins
a55be93c28 Merge "Remove skip condition when resize is enable" 2017-04-26 07:12:39 +00:00
Jenkins
5e6e5dd8e6 Merge "Move compute admin test classes under admin path" 2017-04-26 07:11:09 +00:00
Jenkins
2e5fbf5ec4 Merge "Update 'test_volume_upload' test docstring" 2017-04-25 19:39:44 +00:00
Jenkins
cc8acb711c Merge "Log output of lsblk cmd if test_device_tagging failed" 2017-04-25 19:14:04 +00:00
Jenkins
de5790513d Merge "Enhancement of tempest cleanup documentation" 2017-04-25 19:13:56 +00:00
Ken'ichi Ohmichi
3cf1627b66 Move compute admin test classes under admin path
The moved test classes inherit from an admin test class, and it
would be nice to exist under admin path like the other test classes.

NOTE: These test classes are not used from the other projects which
      include Defcore. It is not necessary to take care of this move.

Change-Id: I28b1acbb5b139614bd4f6a272410a4e4f1f989f7
2017-04-25 12:10:04 -07:00
Jenkins
f84537bfc8 Merge "Add test cases for volume quota class" 2017-04-25 15:57:15 +00:00
Jenkins
924db3a73c Merge "Remove deprecated TYPE in rest_client" 2017-04-25 15:49:52 +00:00
Jenkins
1e94b918aa Merge "Add python3-dev(el) to bindep.txt" 2017-04-25 15:31:33 +00:00
Jordan Pittier
d5262400d9 Log output of lsblk cmd if test_device_tagging failed
test_device_tagging has been failing twice in the last 48h with
the following error: "mount: mounting /dev/sr0 on /mnt failed: Device or
resource busy".

Add the result of the lsblk command to see whether /dev/sr0 exists
and /mnt is not already mounted.

Change-Id: I7067b87cad79f98cdf6eff83809d96dd0ac3ed2f
2017-04-25 17:28:31 +02:00
Jenkins
5b1d1f82a1 Merge "Nova: test live migration with serial console" 2017-04-25 15:14:14 +00:00
Jenkins
dc10b934c0 Merge "Keystone v3 extension os-ep-filter api testcases" 2017-04-25 14:50:48 +00:00
Jenkins
61218715a6 Merge "Add test case for force detach volume" 2017-04-25 14:45:40 +00:00
Jordan Pittier
1189dd15c6 Add test for cinder volume extend when volume has snapshot
It should be possible to extend a Cinder volume even if it has one
or several snapshots. There was once a regression here (see #1470558)

Change-Id: I1b50795e9bb2c66554cade8f623ff2059029ab88
Related-Bug: #1470558
2017-04-25 14:14:14 +00:00
lkuchlan
153df1561e Update 'test_volume_upload' test docstring
'image_client' was renamed to 'images_client'

Change-Id: Ia190702c1b8144e936cd528827193b3516f72623
2017-04-25 16:43:47 +03:00
Jenkins
06d81fde85 Merge "Use cliff.lister for tempest workspace command" 2017-04-25 13:02:46 +00:00
Jenkins
7bc5aa516a Merge "Use base.create_domain to create domain in testcases" 2017-04-25 10:19:55 +00:00
gongxiao
5092b81a5e Fix bugs about 'default' domain.
When default_domain_id configured is not 'default', it will
throw erros.
So use CONF.identity.default_domain_id instead of 'default'.

Change-Id: Idca1a4c70242ed8f72b01b9e5de7a3de47627a76
Closes-Bug: 1682984
2017-04-25 18:17:53 +08:00
Jenkins
5410b3a4de Merge "Use image native api in volume tests" 2017-04-25 10:12:35 +00:00
Jenkins
2473da8714 Merge "Replace oslo_utils.timeutils.isotime" 2017-04-25 09:40:43 +00:00
Markus Zoeller
69d58b8f34 Nova: test live migration with serial console
Nova offers a "serial console" as an alternative to graphical consoles
like VNC/SPICE/RDP. This is useful for platforms which don't have
graphical consoles, for example the "IBM system z" platform.

This change introduces a test which ensures that the interaction with
the serial console is possible before and after a live-migration.
As the unified remote console API is available since microversion 2.6,
I use this as a base for the tests. This made id necessary to update
the schemas.

This change introduces a config option to enable new test cases for
the serial console.
A Nova change (see I7af395a867e0657c26fa064d2b0134345cd96814),
which uses the hook for live-migration testing, will use the config
option of this change to alter the testing system on the fly to
enable the testing of the serial console.

Closes-Bug: #1560358
Needed-By: I7af395a867e0657c26fa064d2b0134345cd96814
Change-Id: I020fd94d970ad0cdf7ab65d7656da6ca5766094b
2017-04-25 11:31:23 +02:00
Pradeep Kumar KS
5d52d3af8a Keystone v3 extension os-ep-filter api testcases
Implementing client for the following APIs
 DELETE,HEAD,GET,PUT apis for
/v3/OS-EP-FILTER/projects/{project_id}/endpoints/ and
/v3/OS-EP-FILTER/endpoints/{project_id}/projects

Change-Id: I42fc49dea52ac4612cb018f3964675444c96ffdd
Co-Authored-By: Uday T Kumar <uk310y@att.com>
Co-Authored-By: Kaustav Royburman <kr336r@att.com>
Partial-bug: #1673749
2017-04-25 14:52:07 +05:30
Masayuki Igawa
8e5b324906
Add python3-dev(el) to bindep.txt
This commit adds python3-dev and python3-devel to bindep.txt. This is
necessary for python3 environment.

Change-Id: I843984b6e26aa3eb9926fd7f72ad8d246ffd96a8
2017-04-25 18:03:11 +09:00
zhufl
ebd5e419d7 Skip when force_tenant_isolation=true and no admin credentials
AbsoluteLimitsTests requires force_tenant_isolation=True,
and if admin credentials are not present, the testcase will
fail instead of being skipped.

This is to let AbsoluteLimitsTests inherit from BaseVolumeAdminTest
so it can skip if admin credentials are not present.

Change-Id: Id71a705cf9b1dd0c0d41a2fb45ab77c95430a123
Closes-Bug: #1671256
2017-04-25 16:13:12 +08:00
lkuchlan
13736ae792 [Negative] Create a volume from deactivated image
This test validates that creating a volume from a deactivated image
is not possible.

Change-Id: Id243918cd895af9b8548c928cad32914dc84942d
2017-04-25 10:19:05 +03:00
jeremy.zhang
7b0eaf8f54 Add test case for force detach volume
V2 volumes_client in Tempest doesn't contain volume action: force
detach volume. This patch adds the support.

Including:

[1] Add force detach volume api to v2 volumes client
[2] Add release notes
[3] Add unit test for force detach volume api
[3] Add test case: test_force_detach_volume

Change-Id: I172913b7d372225328a3c30299926c599c7d245a
2017-04-25 15:11:15 +08:00
Jenkins
3f06f4b9d7 Merge "Replace deprecated function" 2017-04-25 05:25:30 +00:00
Jenkins
242c687ef4 Merge "Update help text for block_migrate_cinder_iscsi option" 2017-04-25 05:07:53 +00:00
Matt Riedemann
8cf5f90963 Update help text for block_migrate_cinder_iscsi option
As shown in change I7d7a708b231070468616ae852d81d2f8b01ba568
this test will pass if you're using new enough libvirt. According
to the change that closed the related bug:

I8fcc3ef3cb5d9fd3a95067929c496fdb5976fd41

Libvirt needs to be >= 1.2.17. We're using libvirt 2.5.0 on
xenial nodes now so that's why we can enable this test again
for master (pike).

Change-Id: I2f84b2996e8f062930add348668f50c9c66dda9d
Related-Bug: #1398999
2017-04-25 01:06:21 +00:00
Jenkins
e1d9fd3a69 Merge "Make delete_volume in volumes_client.py use **params" 2017-04-25 01:05:39 +00:00
Jenkins
be647d7752 Merge "Add test about associate floating_ip to VM" 2017-04-25 01:04:55 +00:00
jeremy.zhang
cb0dd583a0 Use image native api in volume tests
Image APIs in compute has been deprecated, just like volume extension
(os-volumes, os-snapshots), networks(os-networks), etc. Image native APIs
are recommended. And Glance V1 APIs are deprecated and v2 are current.
This patch substitue the old compute_image_client and remove Glance v1
APIs in volume tests, just use Glance v2 APIs.

Change-Id: I2cbae9775d54da40cc6af8a247a8113dde2a5579
2017-04-25 08:48:38 +08:00
Jenkins
523dfd7f8c Merge "cinder backup force-delete when backup is error" 2017-04-25 00:47:31 +00:00
Jenkins
ec671964ae Merge "Add docstring example for get_opt_lists" 2017-04-24 23:37:04 +00:00
Emily Hugenbruch
fb89271d84 Replace oslo_utils.timeutils.isotime
The function 'oslo_utils.timeutils.isotime()' is deprecated in
version '1.6' and will be removed in a future version.
We are using datetime.datetime.isoformat() instead.
For more information: http://docs.openstack.org/developer/oslo.utils/api/timeutils.html#oslo_utils.timeutils.isotime

Change-Id: I7d41e33bc42f8eb354c8a659123bf34e077a9626
Closes-Bug: #1514331
2017-04-24 16:49:24 -04:00
Martin Kopec
225d9efaba Replace deprecated function
assertRaisesRegexp is deprecated because in unittest version 3.2 was renamed
to assertRaisesRegex.

Change-Id: I0454200dc730fd4d3f0e1b234d48d8875c843fb6
Closes-Bug: #1683818
2017-04-24 15:47:12 +00:00