Commit Graph

11166 Commits

Author SHA1 Message Date
Tony Breeds b0aca38a60 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I3cb50c6ca8f660389ba2af2d8e78702d806509e9
2017-09-12 16:20:49 -06:00
Jenkins 72312d9911 Merge "Added return statement to retype_volume in v2 volumes_client" 2017-07-25 17:05:05 +00:00
Jenkins be131644d2 Merge "Add Tests for Create/Delete/Show/List Group Types" 2017-07-25 17:04:56 +00:00
Jenkins 390b732dbb Merge "Revert "Remove tempest.common data_utils"" 2017-07-25 13:35:22 +00:00
Jenkins eb21b9cef7 Merge "[DOC BLD FIX] Correct reST field lists in docstrings" 2017-07-25 04:33:16 +00:00
Jenkins fccb4286da Merge "Add unit test for volume extensions client" 2017-07-25 04:33:06 +00:00
Jenkins cbf81cec93 Merge "Add unit test for volume limits client" 2017-07-25 04:32:58 +00:00
Jenkins edb28dd983 Merge "Complete credentials_factory docstrings" 2017-07-25 04:32:50 +00:00
Rabi Mishra 8e87ccb4df Revert "Remove tempest.common data_utils"
This reverts commit bd65bbb78b.

Change-Id: I901d7e78f97ad6eed0f0aec254a36c287b66d9b1
2017-07-25 04:30:21 +00:00
Jenkins 6919e79959 Merge "Remove tempest.common data_utils" 2017-07-25 01:24:23 +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
Andrea Frittoli 00c3588ba2 Complete credentials_factory docstrings
Add docstring where missing.

Change-Id: Idd258f00999248a5422876d2d943f1e0595f4a69
2017-07-24 18:09:56 +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
jeremy.zhang ace26ab5e7 Add unit test for volume limits client
This patch adds unit test for volume v2 limits client.

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

Change-Id: I08a982758fcdd364e1790e1049d0022f04e4bcc7
2017-07-24 10:46:00 +08:00
jeremy.zhang 1ec2cac94d Add unit test for volume extensions client
This patch adds unit test for volume v2 extensions client.

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

Change-Id: I5a614fb92f44f5960610dc39299c6effb979be9a
2017-07-24 10:31:23 +08: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
xing-yang 6891411395 Add Tests for Create/Delete/Show/List Group Types
Generic volume groups support was added to Cinder in the
Newton release. Group types APIs were added as part of that.
https://blueprints.launchpad.net/cinder/+spec/generic-volume-group

This patch adds the tempest tests for group types APIs
in Cinder. It tests the following APIs:

  * create group type
  * delete group type
  * show group type
  * list group types

Change-Id: Ic409db6f1258befc6f1772ea19e7e634170269f8
2017-07-21 15:48:50 -07: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
junboli 872ca87550 [DOC BLD FIX] Correct reST field lists in docstrings
Most common format for documenting arguments is reST field, the incorrect
docstring will cause a Sphinx warning to be generated and caused the documentation
to be improperly rendered.

[1] http://sphinx-doc.org/domains.html#info-field-lists

Change-Id: I031cc3ca202b140b6ff6d9fadc46e0765ee2f36c
2017-07-21 13:26:29 +08: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
raigax9 d850882db2 Added return statement to retype_volume in v2 volumes_client
This commit adds a missing return statement to the retype_volume API
endpoint in the v2 volumes_client. Otherwise, None, instead of an
empty dict, is returned for the response body.

Closes-Bug: #1703997
Partially Implements: blueprint tempest-lib-missing-test-coverage
Change-Id: I1a308f486fd7b14a9111a3433284e3c4abf65bd3
2017-07-20 17:25:25 +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