10757 Commits

Author SHA1 Message Date
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
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
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
Jenkins
887f14ba69 Merge "Rename 16.0.0 release notes" 2017-04-24 15:27:53 +00:00
Jenkins
15877ed204 Merge "Add api_v2_admin flag" 2017-04-24 15:27:45 +00:00
Jenkins
a0c60ce3d3 Merge "[Negative] Create volume from image with decreasing size" 2017-04-24 15:27:33 +00:00
Jenkins
2deeebe129 Merge "Identity v3 Domain Configuration Client" 2017-04-24 15:27:26 +00:00
Jenkins
8bb5abee35 Merge "Remove duplication of skip_tracker" 2017-04-24 15:27:17 +00:00
Jenkins
2e0d5e0ae0 Merge "Always provision accounts with auth_version" 2017-04-24 13:38:46 +00:00
Andrea Frittoli
1413ba9c06 Add api_v2_admin flag
Only run Identity V2 admin tests if the identity v2 admin API is
available. The new config flag is set to True by default.

Change-Id: I43459cb1a96e725dde41e23962e367dbdc345686
2017-04-24 10:09:56 +00:00
Andrea Frittoli
f1c6825210 Add docstring example for get_opt_lists
Add an example (typical) implementation of get_opt_lists.

Change-Id: If597838f828f81c0919c11a8436b1a0d322758a4
2017-04-24 10:07:39 +00:00
Jenkins
be0ba59743 Merge "Deprecate the forbid_global_implied_dsr cfg option" 2017-04-24 09:48:50 +00:00
zhufl
2b33c1a1c9 Use base.create_domain to create domain in testcases
This is to add **kwargs in base.create_domain, in order that
it can be more widely used in testcases, so to make code clean.

Change-Id: I0ed9102bd9d535b40467e9bf4600a291bfca0fc2
2017-04-24 17:37:08 +08:00
Jenkins
6f31ee569c Merge "test_l3_agent_scheduler: remove workaround code for Liberty" 2017-04-24 08:24:04 +00:00
Jenkins
547cb25042 Merge "Add support to list volume transfers with detail" 2017-04-24 08:19:12 +00:00
Jenkins
303e92b57c Merge "Move 'test_admin_deactivate_reactivate_image' test under non-admin directory" 2017-04-24 07:51:30 +00:00
root
343ca19816 Add test about associate floating_ip to VM
Only one floating IP address can be allocated to
an instance which have one port.

https://docs.openstack.org/user-guide/cli-manage-ip-addresses.html

Change-Id: Ia7b49cfb5324a6061ad9be791225eefed5c2d27f
2017-04-24 14:24:19 +08:00
Jenkins
595887ba5e Merge "Improvement in API Microversion testing doc" 2017-04-24 05:35:12 +00:00
Jenkins
c29ac6cf06 Merge "Fix the position of the dots in write_tests.rst" 2017-04-24 02:15:06 +00:00
Jenkins
7414f139ec Merge "Remove unused compute networks client in volume tests" 2017-04-24 02:13:48 +00:00
Jordan Pittier
6be33a4e7e test_l3_agent_scheduler: remove workaround code for Liberty
Now that an L3 Agent always returns its "agent_mode" no need to fallback
to default value if the agent_mode is not returned.

This fixes an old TODO by armax.

Also, optimize a bit the test to use server-side L3 Agent filtering.
And simplify multistring docstring to comply with H404.

Change-Id: Ib02d04082184bc7d5a520180d3d047d6b2024344
2017-04-23 13:21:12 +02:00
Jordan Pittier
bd391dc5d9 Deprecate the forbid_global_implied_dsr cfg option
The config option ``forbid_global_implied_dsr`` from the ``IdentityFeature``
group is now deprecated. This feature flag was introduced to support
testing of old OpenStack versions which are not supported anymore.

Change-Id: Ib5dbb2e4a5d3d05a18e30b890b316c0669bf4229
2017-04-23 12:44:37 +02:00
jeremy.zhang
0a42716409 [Negative] Create volume from image with decreasing size
This patch adds a negative test for creating volume from image, which
the volume size provided is smaller than the min_disk of image.

Change-Id: I2290564af15c821cd8c99c8fcac8ed1d8994cbd1
2017-04-21 21:53:38 +08:00
Andrea Frittoli
9e01dbbe40 Always provision accounts with auth_version
The config value identity.auth_version defines the identity API
version used for all common API tests, such as identity API calls
performed by non-identity tests, as well as provisioning of
dynamic accounts, with the exception of identity tests.

Since the v2 API is deprecated, we don't need to run v2 admin
tests in the gate anymore. However v2 user APIs are most likely
still widely used by OpenStack users, and we should keep those
test runnings.

Right now identity tests control which version of the identity
API is used to allocate / provision test accounts by setting
an identity_version class attribute.

This behaviour forces us to run an identity v2 admin endpoint
only to be able to provision accounts for identity v2 tests.

This commit changes the current behaviour to always provision
accounts with the identity API version specified in
CONF.identity.auth_version. When v3 is configured (which is
the case in all gate jobs), v3 credentials will be provisioned
and then used for v2 non-admin tests.

Depends-on: I801e6740258ddea2a1b628a209970e0307d39d12
Change-Id: I2601433585740030ab61433f0e8ca1a919275d9f
2017-04-21 13:20:41 +00:00
zhufl
2e644e6519 Fix the position of the dots in write_tests.rst
This is to move the dots to the end of the sentences.

Change-Id: I2f6906efc8f63f39737c73301e7239b1c7e18ea8
2017-04-21 14:14:54 +08:00
Jenkins
4f97537a51 Merge "Use base.setup_test_tenant to create test tenant" 2017-04-21 05:48:07 +00:00
lkuchlan
32b53c318d Move 'test_admin_deactivate_reactivate_image' test under non-admin directory
Image deactivate and reactivate actions are NOT need admin privileges.

Change-Id: I9ccf070a12d24e63db5fb0f960c8be764b1b02dd
2017-04-21 08:27:31 +03:00
jeremy.zhang
4a3d587edd Remove unused compute networks client in volume tests
Compute networks client is never been used in volume api tests,
and it's reasonable to remove the client to make code clean.

Change-Id: I616327b8b52cdecb731426c1b9e3d6e3819a6e4a
2017-04-21 13:11:41 +08:00
Masayuki Igawa
3bc7395cbc
Remove duplication of skip_tracker
This commit removes of the duplication of skip_tracker in
tempest/lib/cmd and tools. And we already have 'skip-tracker' command.
It comes from tempest/lib/cmd/skip_tracker.py, so I think we don't need
to have duplicated code. So we should deprecate it in tools directory.

This commit also add a default test_path value for convenience and
compatibility.

Change-Id: I43a0a9d115e59c860714a47aea11017e8b58b5e7
2017-04-21 12:12:42 +09:00
ghanshyam
9604aa0247 Fix create, update or delete account metadata method
Swift provides a single API to Create, Update or Delete
account metadata.
With different headers or values those operation can be
achieved. For example:
- delete metadata by passing metadata without value
- update metadata by passing updated value with same key

Details- http://developer.openstack.org/api-ref/object-storage/?expanded=create-update-or-delete-account-metadata-detail

But current service client for account has 3 different
method for these operation. create_, delete_ and create_and_delete_

To make it consistent with other service client and to have
single service client method per API, this patch merge those
methods.

Partially implements blueprint consistent-service-method-names

Change-Id: I098e4ccc0d7b443d77ee055f39958e983acf7113
2017-04-21 02:47:30 +00:00
Jenkins
549cac3ed9 Merge "Use base.setup_test_project to create project" 2017-04-20 18:50:27 +00:00
Jenkins
79a45702e9 Merge "Add write tests docs for using client managers and credentials" 2017-04-20 18:47:55 +00:00
Jordan Pittier
cb5f650fd4 Make delete_volume in volumes_client.py use **params
I99f9910f75aef095f2bbb37680ee584e52bf82da introduced a new
kwarg to the delete_volume() method. But the correct way to
do this is to introduce a generic **params argument, so avoid
changing the signature of the method too often.

Change-Id: Ifb6731fd893a32bea6c7832236bb26a2eacaf56c
2017-04-20 15:40:30 +02:00
Jenkins
8bf816a7fb Merge "Add judgie condition after live-migration with volume" 2017-04-20 10:09:22 +00:00
zhufl
f2f47055b3 Use base.setup_test_project to create project
This is to add **kwargs in base.setup_test_project, in order
that it can be more widely used in testcases to create test
project, so to make code clean.

Change-Id: Ife6e6645a6ddb5d5f291641620333d12afae7d86
2017-04-20 17:28:22 +08:00
Jenkins
c5d59c08d9 Merge "Remove usage of deprecated get_ipv6_addr_by_EUI64 function" 2017-04-20 08:10:38 +00:00
zhufl
963d2c3364 Use base.setup_test_tenant to create test tenant
This is to add **kwargs in base.setup_test_tenant in order
that it can be more widely used in testcases to create
test tenant, so to make code clean.

Change-Id: I7841dd88e240a730da26384ac9ee2801ef1757f1
2017-04-20 15:44:58 +08:00
Jenkins
f2da61cb0b Merge "Remove some debug print statements" 2017-04-20 05:53:32 +00:00