11096 Commits

Author SHA1 Message Date
Jenkins
334b1c1099 Merge "Use cls instead of self in classmethod" 2017-07-13 09:03:22 +00:00
Jenkins
e4d71dcddc Merge "Remove unused LOG from clients.py" 2017-07-13 06:57:47 +00:00
Jenkins
a1481c5f0b Merge "Extra compute services_client API endpoints" 2017-07-13 06:57:35 +00:00
Jenkins
64055edffb Merge "Dynamic creds does not support create subnet with ipv6" 2017-07-13 02:38:51 +00:00
Jenkins
18ca366ebe Merge "Using fixtures instead of deprecated mockpatch module" 2017-07-12 17:05:23 +00:00
Luong Anh Tuan
e3d1065280 Using fixtures instead of deprecated mockpatch module
This module mockpatch of oslotest[1] is deprecated since version 1.13
and may be removed in version 2.0. Use fixtures.Mock* classes instead[2]

[1]OpenStack Testing Framework and Utilities
[2]https://docs.openstack.org/developer/oslotest/api/oslotest.mockpatch.html#module-oslotest.mockpatch

Change-Id: Ia8c1d24e925cb13647158fe42358b0c4c155af1a
2017-07-12 18:16:36 +07:00
zhufl
72a6a39489 Use cls instead of self in classmethod
_create_service in test_endpoint_groups.py is a class
method, so cls should be used instead of self.

Change-Id: I80e1c4ac1091d8ce98967e9e184ef63466b51990
2017-07-12 16:00:25 +08:00
zhufl
ac2bb526af Remove unused LOG from clients.py
LOG is not used in clients.py, so this is to remove
it for code clean.

Change-Id: I517bb46e0d47c59678266a8912c535ec68edf5e9
2017-07-12 15:46:19 +08:00
Jenkins
7f10bfbcb0 Merge "Add 'params' argument to v2 list_backups API" 2017-07-12 05:50:32 +00:00
Jenkins
7a857b04f8 Merge "Add a page for release 16.1 to release notes" 2017-07-12 00:24:00 +00:00
Jenkins
3f00c5e34b Merge "Enhance tempest client for keystone v3 token APIs." 2017-07-11 21:44:18 +00:00
Andrea Frittoli
ef40daa159 Add a page for release 16.1 to release notes
Change-Id: Id148a6cc78c99218a6bca31fa6739cb84d1b49e2
2017-07-11 15:30:04 +01:00
Jenkins
4b26596f47 Merge "Added script for doing tempest plugin sanity" 2017-07-11 13:24:49 +00:00
Jenkins
da11e52416 Merge "Add negative test for live migration" 2017-07-11 06:17:39 +00:00
Chandan Kumar
b7affe4c03 Added script for doing tempest plugin sanity
It will help to catch tempest plugin config and dependency issues
with tempest.
sh ./tools/tools/tempest-plugin-sanity.sh or
tox -e plugin-sanity-check will invoke the same.

Change-Id: If42561bfc1d6dcffbb6537634d7769ef90fab21d
2017-07-11 08:17:04 +05:30
jeremy.zhang
a2df0f57a7 Add 'params' argument to v2 list_backups API
This patch adds 'params' argument to list_backups API in v2 BackupsClient,
to enable passing additional information in the query string of the HTTP
request.

Change-Id: I8e31a55741f9bebf7b3d70491e2353b466dce06e
2017-07-10 11:03:56 +08:00
Jenkins
de46ed8580 Merge "Supplement unit tests for volume transfers client" 2017-07-10 02:19:22 +00:00
Jenkins
19e20abb93 Merge "Add release notes for an intermediate release." 16.1.0 2017-07-10 02:02:29 +00:00
Jenkins
138c0fb79f Merge "Add notes for network and identity in get_service_list" 2017-07-09 13:44:02 +00:00
Andrea Frittoli
87226e30a4 Add release notes for an intermediate release.
Change-Id: Ica33ff70677fe50ad03972cbac16630b02760fa8
2017-07-07 15:49:20 +01:00
jeremy.zhang
08344ffe6f Supplement unit tests for volume transfers client
This patch supplements unit tests for volume v2 transfers client,
and also makes some modifications to the original unit tests.

Change-Id: Ib60665c1819ed19fdd13454bec3642ec1451b3e9
Partially Implements: blueprint tempest-lib-missing-test-coverage
2017-07-07 15:58:40 +08:00
Felipe Monteiro
fe399fdfeb Extra compute services_client API endpoints
This patch:
  - adds ``disable_log_reason`` and ``update_forced_down`` API
    endpoints to the compute ``services_client``
  - adds corresponding unit tests and schemas
    (for 2.11 microversion)
  - changes ``host_name`` parameter in the unit tests for
    ``services_client`` to ``host`` because ``host_name``
    is wrong; see [0] for example

However, this patch does not add API tests for these endpoints
because they result in compute services being forced down
or disabled, which are dangerous to test in the gates.

Valid use cases for these APIs include:
  - negative testing
  - RBAC testing (forcing a BadRequest but ensuring policy enforcement
    happens beforehand)

[0] https://developer.openstack.org/api-ref/compute/#update-forced-down

Change-Id: I641218e104bba55e3679a7111e7f3d042ad7665b
2017-07-07 00:51:15 +00:00
Jenkins
21dd8a5ee2 Merge "Add test for showing volume metadata item" 2017-07-06 15:40:55 +00:00
Jenkins
53b53c83d6 Merge "Add test for showing snapshot metadata item" 2017-07-06 15:37:45 +00:00
Jenkins
1f6c8d4da6 Merge "Updated from global requirements" 2017-07-06 12:39:58 +00:00
Jenkins
8390829df2 Merge "Update volume-status waiter for new cinder attach" 2017-07-06 06:42:28 +00:00
Jenkins
4b992aca5f Merge "Volume snapshot backup" 2017-07-06 06:31:52 +00:00
OpenStack Proposal Bot
088fb83bf8 Updated from global requirements
Change-Id: I91499d0e2201a42f1dbd9316322fa8b1e00069a5
2017-07-06 05:04:51 +00:00
Jenkins
6f4adce660 Merge "Boot server from encrypted volume" 2017-07-06 04:48:54 +00:00
Jenkins
86c8c9ecec Merge "Add test case for update volume backup" 2017-07-06 04:35:17 +00:00
Jenkins
b43df43290 Merge "Save state of cloud before running tempest" 2017-07-06 04:20:50 +00:00
zhongjun
5b68f50c4b Dynamic creds does not support create subnet with ipv6
Change the default value for ip_version from '4' to the real ip version
of subnet_cidr.

Change-Id: Iaca1bb541a34af862b938e17e4a56d53de7a9cc6
Closes-Bug: 1702222
2017-07-06 03:15:08 +00:00
Jenkins
215e82b894 Merge "Pause resource cleanup" 2017-07-05 07:40:05 +00:00
Jenkins
20c0ade60f Merge "Fix auto allocate network cleanup" 2017-07-05 07:37:29 +00:00
jeremy.zhang
f4ce417b8b Add test case for update volume backup
Update volume backup is a new api implemented in volume v3 (since 3.9).
This patch is to add test case for this new feature.

Including:

[1] Add v3 backups_client as a library
[2] Add update backup api to v3 backups_client
[3] Add unit tests for update backup api
[4] Add test case: test_update_backup
[5] Add release note

Change-Id: Id50fcdbc41e9e170f3d467789f80c28bac01d434
2017-07-05 14:46:55 +08:00
Jenkins
5db2ee8e37 Merge "Fix check_service_client_function doc typo" 2017-07-05 06:16:30 +00:00
Jenkins
c7c7916bc1 Merge "Switch from oslosphinx to openstackdocstheme" 2017-07-05 05:00:09 +00:00
Jenkins
90567869c8 Merge "Move base_client from volume.v3 to volume" 2017-07-05 03:59:31 +00:00
jeremy.zhang
6971907655 Add test for showing snapshot metadata item
This patch adds test for the missing API (volume v2):
show specific metadata item for a snapshot.

Including:

[1] Add show snapshot metadata item API to v2 snapshots_client
[2] Add unit test for the API
[3] Modify test case: test_update_snapshot_metadata_item
[4] Add release note

According defcore(interop) patch is:
I672bbcb9983e7a3ace7769722d6ff97f7bc0ccc8

Change-Id: I3697406e5541bbdb191e4d6e63831be31b471e78
2017-07-05 11:29:16 +08:00
Masayuki Igawa
25dc03c3db
Fix check_service_client_function doc typo
This commit fixes a doc typo of check_service_client_function to_utf
parameter in lib.tests.services.base.BaseServiceTest class. This
parameter is used for a response body not for a request body.

Change-Id: Ife265758916c4272558b9d7b6652111053bca9bb
2017-07-05 12:26:09 +09:00
jeremy.zhang
b40cb198ce Add test for showing volume metadata item
This patch adds test for the missing API (volume v2):
show specific metadata item for a volume.

Including:

[1] Add show volume metadata item API to v2 volumes_client
[2] Add unit test for the API
[3] Modify test case: test_update_volume_metadata_item
[4] Add release note

According defcore(interop) patch is:
Ica8b57f5f5392e2bf47e368e9b10ef9fa5695c30

Change-Id: Idb9d198383ce93453707f1204806e4ae82c1e46a
2017-07-05 11:22:47 +08:00
Jenkins
5080de2777 Merge "Verify config support cinder on subpath" 2017-07-05 02:26:44 +00:00
zhufl
0273652206 Move base_client from volume.v3 to volume
Now exists multiple inheritance when adding new interfaces in
volume v3 clients, e.g., if we want to add show_volume_summary
in volume v3 VolumesClient, we have to make volume.v3.VolumesClient
inherit from both volume.v3.base_client.BaseClient and volume.v2.
volumes_client.VolumesClient, and this situation will repeat
everytime we add new interfaces in volume v3 clients based on v2
clients.
This is to move volume.v3.base_client to volume, and if we want to
add new interfaces based on a v2 client, we can make that v2 client
inherit from volume.base_client.BaseClient to get microversion support,
and then to make the new v3 client inherit from the v2 client, thus
to avoid the multiple inheritance.

Change-Id: I645ae35daebd924c4c4523163e5419cc050bb0ed
2017-07-05 00:56:05 +00:00
bhavani.cr
29b2230828 Switch from oslosphinx to openstackdocstheme
To use openstackdocstheme 1.11.0 properly, this patch fixes
some settings according to follow.
https://docs.openstack.org/openstackdocstheme/latest/

Change-Id: I07652e3a086a650ab9f08f6da7ddf0e8145b2969
2017-07-04 11:01:33 +00:00
lkuchlan
3023e75f8f Boot server from encrypted volume
This patch adds support for booting a server from an
encrypted volume while using luks encryption method.

Note: manager.create_server method passes wait_until='ACTIVE',
so 'create_test_server' function in common/compute.py waits
until the server status is 'ACTIVE'.

Change-Id: Ibd05252976499daaaafc658e3f3a920398b53420
2017-07-04 07:31:13 +03:00
Masayuki Igawa
3e1f330236
Fix import error "No module named six.moves" for plugin sanity job
This commit fixes the import error "No module named six.moves" without
using the module for the plugin sanity job. Because the job call the
script directly.

Change-Id: Id0fa1b15fe443d65a1b6ca008e490d0fa54d6b32
2017-07-04 13:19:06 +09:00
Jenkins
479863dd47 Merge "Add response assertions and remove unused variables in volume tests" 2017-07-04 03:49:24 +00:00
John Griffith
030dd17f5e Update volume-status waiter for new cinder attach
The new Cinder attach API treats attaching to a shelved instance
differently than the old code.  In the old case we fake things a
bit and mark the volume as attached, even though it's really not,
it's actually just reserved and there's no valid connector
or connection associated with it.

In the new (Cinder V3.27) Attach API's we instead give a more
accurate response, create an attachment record and mark the
volume as 'reserved' until the Instance is unhselved at which
time we complete the connection and move the volume to 'in-use'.

This patch modifes the volume_status waiter slightly so that it
can accept multiple statuses to consider "ok".  We also modify the
test_attach_volume_shelved_or_offload_server and
test_detach_volume_shelved_or_offload_server tests to specify that
either 'in-use' or 'reserved' are acceptable responses.  This way
we're still compatable with older combinatons of nova/cinder and
we also work with the new combination as well.

Change-Id: Ia84f4325ddb0080521241ace26f89d1161db9dca
2017-07-03 10:52:05 +02:00
jeremy.zhang
e280f66dc5 Add response assertions and remove unused variables in volume tests
This patch adds response assertions where the response body is declared
but never used in some volume api tests. And also some unused variables
are removed to make code clean.

Change-Id: I29e6e8f1dac42b33d2ac020f682f57db9218115a
2017-07-03 16:11:59 +08:00
Jenkins
1a3b3dc50b Merge "Fix image deletion checks after unshelve server" 2017-07-03 03:14:33 +00:00