11151 Commits

Author SHA1 Message Date
ghanshyam
97f6a843fc Move object storage capabilities_client to lib interface
object storage capabilities_client is stable now and good to be moved
as stable library interface.

Partially implements blueprint consistent-service-method-names

Change-Id: I06e874300a7b042ed09dc666aaeed578e814acf1
2017-07-25 01:01:15 +00:00
ghanshyam
5b7f6b9205 Move object storage bulk_middleware_client to lib interface
object storage bulk_middleware_client is stable now and good to be moved
as stable library interface.

Partially implements blueprint consistent-service-method-names

Change-Id: I6b44fb9a692b947baadbe049b2f7d31e4ab51035
2017-07-25 00:54:59 +00:00
Jenkins
ae90da5796 Merge "Add better docs on credential providers" 2017-07-24 19:53:19 +00:00
Jenkins
40bf695c91 Merge "Updated from global requirements" 2017-07-24 19:53:12 +00:00
Jenkins
afc9f2d0bd Merge "Fix object storage capabilities client return value" 2017-07-24 19:53:04 +00:00
Jenkins
2a1271b924 Merge "Fix object storage bulk middleware client return value" 2017-07-24 10:41:33 +00:00
Jenkins
e70e0feb63 Merge "Migrate the preprov creds module to tempest lib" 2017-07-24 10:30:29 +00:00
Jenkins
30bbd2deeb Merge "Migrate the dynamic creds module to tempest lib" 2017-07-24 10:08:02 +00:00
ghanshyam
17d8a483ea Fix object storage capabilities 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 capabilities_client to return ResponseBody
object with consistency to other service clients.

Also add unit tests for that.

This is step to move these clients to lib.

Partially implements blueprint consistent-service-method-names

Change-Id: Ida85033c06a50011b2cd9a86941089fb1ea7bedd
2017-07-23 04:19:41 +00:00
OpenStack Proposal Bot
e2fd3d5bba Updated from global requirements
Change-Id: I969b2b5d1d0d243962ebba6356f0842b5aeccee2
2017-07-22 14:54:42 +00:00
Jenkins
c7a403debd Merge "Doc: fix markups, capitalization and add 2 REVIEWING advices" 2017-07-22 01:47:46 +00:00
Jenkins
878845412e Merge "Add volume backed instance coverage to API tests" 2017-07-21 23:23:19 +00:00
Matthew Treinish
841b75e6b6
Add better docs on credential providers
This commit adds some better documentation with an example explaining
how to use the credential providers now in tempest/lib.

Change-Id: I9f6856645094d483f7a3f0f76a40568c28c4e9b1
2017-07-21 16:16:48 -04:00
Matthew Treinish
b19c55df4b
Migrate the preprov creds module to tempest lib
This commit migrates the preprovisioned credentials provider from
tempest/common into tempest/lib. As part of this 2 dependencies are
also migrated to lib: the InvalidTestResource exception class and the
tempest.common.fixed_network module.

Change-Id: Ib9e909aaaf81f7cb57e2382cec44598e918747b8
2017-07-21 16:14:41 -04:00
Matthew Treinish
c51b712dec
Migrate the dynamic creds module to tempest lib
This commit migrates the dynamic credentials provider from
tempest/common into tempest/lib.

Change-Id: Id8d60e4d7c22bc72c3e48bc768509ff0cc0c89d5
2017-07-21 16:14:40 -04:00
Jenkins
e1e6e7825d Merge "Remove creds providers dependency from clients" 2017-07-21 20:02:04 +00:00
Jenkins
1bf804bb2d Merge "Fix account generator unit tests" 2017-07-21 20:01:47 +00:00
Jenkins
741aa5e2a8 Merge "Make credentials_factory a bit nicer" 2017-07-21 14:52:18 +00:00
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
Andrea Frittoli
dcd9100d03 Remove creds providers dependency from clients
We want to make cred providers a stable interface and move it to
lib but to do so it must not depend on modules outside of lib or
not generally stable otherwise. The last dependency left is
tempest.clients, which can be replaced by its tempest.lib
counterpart, tempest.lib.services.clients.

While clients does not depend on configuration directly, it uses
the client registry singleton. When this class is used as part of
tempest, it's populated with configuration values the first time
the CONF object is instantiated, so that Tempest configuration
values are still honoured.

When DynamicCredentialProvider is used by a consumer that does
not have a Tempest config file, all the settings defined in
__init__ will be honoured. To control more settings, the
client registry must be populated before the Credentials
Provider is used with the appropriate settings.

Change-Id: I7b262607a1fa9f67e6b1d3ec2c4cf1ccffb952a6
2017-07-20 20:42:36 +00:00
Jenkins
d3fa46495a Merge "Add unit tests for volume and snapshot manage clients" 2017-07-20 11:19:48 +00:00
Jenkins
724c86b02d Merge "Update the documention for doc migration" 2017-07-20 11:17:47 +00:00
Andrea Frittoli
9958b17d2d Add volume backed instance coverage to API tests
The only coverage we have for volume backed instances is the
test_volume_boot_pattern scenario test.
Run the test_create_server module using a volume backed instance
to add better coverage for this case.

Change-Id: Icfb68ad2a5561e9d27026443a6258bfdb7d419f0
2017-07-20 09:43:20 +00:00
Andrea Frittoli
12972ae580 Fix account generator unit tests
The account generator unit tests patch the set_auth method,
however they do so in a broken way, by setting the return value:
- set_auth does not return anything
- the return value is set to a function

The only reason the unit tests work is because set_auth is actually
not invoked during the tests. So cleaning all this up.

Change-Id: Ied02c38b6a54aad2666abdaed16e454f5c7e65d1
2017-07-19 13:41:47 +01:00
Andrea Frittoli
d199caf7f4 Make credentials_factory a bit nicer
The helpers to get parameters for the credential providers were set
up some time ago but not updated anymore, so we have now parameters
passed in get_credentials_provider directly, and some obtained
through the helpers.

Fixing this and adding some docstring. This work is in preparation
to make the module stable for plugins, so that it can be used
by test.py.

Change-Id: Ifee212277e8c1282a54b5443a51531ff731be879
2017-07-19 13:41:47 +01: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
chenxing
e98720a22f Update the documention for doc migration
Change-Id: Ie6d322d1b9c93118af7c74986993010b9f4b76b2
2017-07-19 03:42:23 +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
jeremy.zhang
bf549a4432 Add unit tests for volume and snapshot manage clients
This patch supplements unit tests for v2 volume and snapshot manage
clients.

Partially Implements: blueprint tempest-lib-missing-test-coverage

Change-Id: I090fb17c41332840bbd7d5efaabe503fffe49bdf
2017-07-18 21:29:16 +08: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