11124 Commits

Author SHA1 Message Date
ghanshyam
609298cce7 Fix object storage bulk middleware client return value
All service clients methods return their response wrapped in
ResponseBody, ResponseBodyData or ResponseBodyList.

But object storage service clients were left out of this
because response from object storage APIs are not same way other
service return. Some APIs return is as string etc.

This commit makes bulk_middleware_client to return ResponseBodyData
object with consistency to other service clients.

This is step to move these clients to lib.

Partially implements blueprint consistent-service-method-names

Change-Id: Iade0a1afd0e28ea42f12df175f55eadb1bea7071
2017-07-21 01:43:58 +00:00
Jenkins
7cfb98fa60 Merge "Generic method for creating a volume snapshot" 2017-07-19 09:37:11 +00:00
Jenkins
2a0e141d95 Merge "Move multi-nic tests to dedicated module" 2017-07-19 05:44:26 +00:00
Jenkins
baa6e9ad87 Merge "Unix style line ending" 2017-07-19 05:39:53 +00:00
Attila Fazekas
7628cb2f5d Unix style line ending
My freshly created tox pep8 py3 venv was started
to complaining about the line endings:
'H903  Windows style line endings not allowed in code'

I decided to make him happy and remove the '\r'.

Change-Id: Ifbee4a88f2f91e51cb710469316c8fcf00b00eb3
2017-07-18 20:41:59 +02:00
Attila Fazekas
1c39a2f937 test_boot_server_from_encrypted_volume_luks skip condition
test_boot_server_from_encrypted_volume_luks is expected to use
the same feature flag as the other volume encryption tests.

The encryption can be disabled also when the system does not
have suitable keymgr.

Change-Id: I4216a002e22a2392417d9f7d3055c8cdad4a9600
2017-07-18 20:16:54 +02:00
Jenkins
55e301689c Merge "Cleanup the orchestration client init and attr" 2017-07-18 15:53:28 +00:00
Jenkins
e9433f787c Merge "Updated from global requirements" 2017-07-18 15:53:20 +00:00
Jenkins
bf87d00326 Merge "Remove unused clients from testcases" 2017-07-18 15:48:42 +00:00
OpenStack Proposal Bot
7814b04d90 Updated from global requirements
Change-Id: Icf0e822fcb1dc958d11dd818153a53b63a66cbc9
2017-07-18 01:58:33 +00:00
Andrea Frittoli
f3e247d25c Cleanup the orchestration client init and attr
Clients.py inits the orchestration client and defines and attribute
in the client manager for it. The only known consumers of attribute
are Tempest itself in the cleanup service and Murano.

I proposed a patch to Murano: Ic6fef4b4f260d13efd7b035bc012369f0da55602

The aim is to make clients stable for plugins, and I don't want the
Heat client to be in the stable interface since it's not something
that we will be supporting on Tempest side: all the Heat config
values are deprecated and will be removed during Queens.

Depends-on: Ic6fef4b4f260d13efd7b035bc012369f0da55602
Change-Id: I9f4703296a44e741cab8db6b52ba410b7dd3bed6
2017-07-17 15:11:25 +00:00
Jenkins
df3bf96c0e Merge "Add flag to generate tempest plugin list" 2017-07-17 13:56:27 +00:00
Jenkins
35316c5bc3 Merge "create test to verify catalog standardization" 2017-07-17 13:21:57 +00:00
Jenkins
324dbd2673 Merge "Tidy up releasenotes" 2017-07-16 13:18:23 +00:00
Jenkins
2604849dbf Merge "Fix instance_action_events response schema for finish_time and result" 2017-07-15 05:16:10 +00:00
Jenkins
5a2a5f0127 Merge "Refactor volume clone tests" 2017-07-14 21:01:28 +00:00
zhufl
708821c508 Remove unused clients from testcases
This is to remove unused clients from testcases to
keep code clean.

Change-Id: I7dd4f9194357de23ece44d25f70f86f498df8a07
2017-07-14 14:54:03 +08:00
Jenkins
b43a16db0a Merge "Remove unused tenant_cidr from test_routers.py" 2017-07-14 04:55:24 +00:00
Jenkins
78894bc6ce Merge "Handle volume API version enablement" 2017-07-14 03:33:05 +00:00
Andrea Frittoli
d69d1b552b Move multi-nic tests to dedicated module
The test_create_server module creates a server and then it runs
multiple checks in different tests. This is done for DiskConfig
AUTO and MANUAL.

The two multinic tests however create their own server, so they
should not belong to the same class. With the current setup we
run them twice, once per DiskConfig value, which uses gate time
and resources for no clear purpose.

To fix this I'm moving these two multi nic tests to a dedicated
module.

Change-Id: I97dd4b5c703d41d9084e6e049144e4df4e3fb75d
2017-07-13 21:54:46 +00:00
Megan Guiney
d02951667d create test to verify catalog standardization
this test will verify whether or not the catalog that it is run
against uses approved names for the services it contains. This
patch will include a few additions:
- a minimal client which will "GET" and return the service catalog,
- unit testing for the new client
- and a test that will make sure that the service catalog uses a
  naming scheme that is compatible with the established governance-
  approved naming scheme.

Change-Id: Ia745dff050f35cc5a3fc3744d58c6fe1e875e56f
2017-07-13 13:50:47 -07:00
lkuchlan
73ed1f3520 Generic method for creating a volume snapshot
Since there are several tests that create volume snapshot and there is
a potential to use it in other future tests, I think it's better to create
a generic method that create a volume snapshot and responsible to delete
it at the end of the test.

Change-Id: Ia78a067d6b4b729bfcc0c40d51206db6f9c4c331
2017-07-13 12:20:48 +03:00
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
Sean McGinnis
ff5f0c14f7 Handle volume API version enablement
This is a start to have tempest handle Cinder API versions
based on what is actually enabled. There are currently a
lot of places in the code the assume v1 and v2 are available,
but those versions may be disabled, especially as we try to
get everyone moved onto the latest (final?) v3 API version.

There are more areas that should be fixed up before we can
actually just work with v3 only, but this is a start to get
there.

Closes-bug: #1703044
Change-Id: Icc2e12f06c3b4899f934f000e191552f4a5cd2a9
2017-07-12 13:38:30 -05:00
Jenkins
18ca366ebe Merge "Using fixtures instead of deprecated mockpatch module" 2017-07-12 17:05:23 +00:00
Matt Riedemann
a27f15fec1 Fix instance_action_events response schema for finish_time and result
An instance action event's finish_time and result can be None when
the event is not yet completed. This is common in Nova. The nova-api
service creates the instance action record and the nova-compute service
has a method which performs the actual operation on the server
instance. The method in the compute is wrapped with an EventReporter
decorator which records the event start and finish times. So until
the event (operation) is complete, the event finish_time and result
are  going to be None.

Change-Id: I964d9170ca7f038e9ab968e119f03fbe9efae588
Closes-Bug: #1702758
2017-07-12 12:04:48 -04: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
lkuchlan
5dcb541d8c Refactor volume clone tests
Creating a common method 'volume_clone_verification' in order to
reduce a duplicated code.

Change-Id: If73ab72d0ce3218a6a3ba8b5a5c812507d800a21
2017-07-12 12:38:06 +03:00
zhufl
ba135d9dda Remove unused tenant_cidr from test_routers.py
tenant_cidr is not used in test_routers.py, this is to
remove it for code clean.

Change-Id: I2e7630a5a5a9ec718919b8cfd2ebe0b576c9a279
2017-07-12 16:13:37 +08: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
Masayuki Igawa
aa516f871f
Add flag to generate tempest plugin list
This commit adds a flag to generate a tempest plugin list. In a local
environment, we don't need to generate a tempest plugin list, always
when we just need to see the other documents. Besides, generating the
tempest plugin list takes a long time. When GENERATE_TEMPEST_PLUGIN_LIST
environment variable is 'true'(default), the plugin list is created.
When the other value such as 'false' is specified, it isn't.

Change-Id: I6fd3cb3045ba8bbfb39c597413e13faa3cd24ae3
2017-07-12 13:56:04 +09: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