summaryrefslogtreecommitdiff
path: root/cinderclient/tests/unit/fixture_data
Commit message (Collapse)AuthorAgeFilesLines
* Enable H306Eric Harney2017-08-011-0/+1
| | | | | | | | | Enforce ordering of imports with H306. For tests, this is mostly done by grouping test imports after other cinderclient imports. Change-Id: Ie40fda014d1aedb057e5b4ea1f27f999c84e6373
* Replace uuid.uuid4().hex with uuidutils.generate_uuid()jeremy.zhang2017-03-251-23/+32
| | | | | | | | Openstack common has a wrapper for generating uuids. We should use that function to generate uuids for consistency. Change-Id: Ia64cceb8c17e8ee6cba83fceadf8510679c388d2 Closes-Bug: #1082248
* Fix test_version_discovery testIvan Kolodyazhny2016-11-221-1/+1
| | | | | | | | | | | | Something changed in requests/urllib3 library and now it sends requests with url in a lower-case. It affects test_version_discovery test because we use url in camel-case. This patch changes test url to lower-case to be compatible with old and new behaviours. Change-Id: I4ae9715b124adb0a2e0115c9b00ab16576665f72 Closes-Bug: #1643874
* Merge "Fix "ref[project_name]""Jenkins2016-11-021-1/+1
|\
| * Fix "ref[project_name]"liyuanzhen2016-06-031-1/+1
| | | | | | | | | | | | | | In def _get_normalized_token_data, "project_name" arg should be set by project_name or tenant_name in ref. Change-Id: I481136a99b94a0b7b437da4649324091072e84f4
* | Switch to keystoneauthSteve Martinelli2016-07-231-1/+1
|/ | | | | | | | | | | move cinderclient to keystoneauth as keystoneclient's auth session, plugins and adapter code has been deprecated. Co-Authored-By: Paulo Ewerton <pauloewerton@lsd.ufcg.edu.br> Co-Authored-By: Sean McGinnis <sean.mcginnis@gmail.com> Co-Authored-By: Jamie Lennox <jamielennox@gmail.com> Change-Id: Id4bf0e2088e8ad99e83cd4f9b8549c2aca1f65a2
* Removed Extra coderoot2016-03-141-12/+0
| | | | | | | | Some extra code is present like unused variables, unreachable code after return statement etc. Same is removed. Change-Id: Ifca88a19625c56ed520321ecbdd91739a304be8e
* Merge "Add request_ids attribute to resource objects"Jenkins2016-02-231-2/+9
|\
| * Add request_ids attribute to resource objectsAnkit Agrawal2016-02-161-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added request_ids attribute to resource object for all the cgsnapshots, consistencygroups, qos_specs, quota_classes, quotas and services APIs by updating following APIs: cgsnapshots: delete, update consistencygroups: delete, update, create qos_specs: delete, associate, disassociate, disassociate_all quota_classes: update quotas: update services: enable, disable, disable_log_reason These changes are required to return 'request_id' from client to log request_id mappings of cross projects. For more details on how request_id will be returned to the caller, please refer to the approved blueprint [1] discussed with the cross-project team. [1] http://specs.openstack.org/openstack/openstack-specs/specs/return-request-id.html DocImpact 'request-ids' will be returned as an attribute with response object. User can access it using 'res.request_ids' where 'res' is a response object. Change-Id: I7b399512fcec9ecd31938656deb60e325bb76ad4 Partial-Implements: blueprint return-request-id-to-caller
* | Add request_ids attribute to resource objectsAnkit Agrawal2016-02-171-10/+23
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added request_ids attribute to resource object for all the volume, volume_types, volume_type_access and volume_snapshots APIs by updating following APIs: volumes: delete, update, force_delete, reset_state, extend, migrate_volume, retype, update_readonly_flag, manage, unmanage, promote, reenable, get_pools, initialize_connection, terminate_connection, get_encryption_metadata volume_types: delete volume_type_access: add_project_access remove_project_access volume_snapshots: delete and update Returning list with request_ids as attribute in case of 'delete_metadata' and 'delete_image_metadata' APIs. These changes are required to return 'request_id' from client to log request_id mappings of cross projects. For more details on how request_id will be returned to the caller, please refer to the approved blueprint [1] discussed with the cross-project team. [1] http://specs.openstack.org/openstack/openstack-specs/specs/return-request-id.html DocImpact 'request-ids' will be returned as an attribute with response object. User can access it using 'res.request_ids' where 'res' is a response object. Change-Id: Icc4565291220278a65e6910a840fba623b750cc4 Partial-Implements: blueprint return-request-id-to-caller
* Adding pagination to snapshots and backups listsSergey Gotliv2015-10-051-0/+9
| | | | | | | | | | Snapshot and backups pagination was recently implemented in the Cinder backend. This patch is implementing a pagination for the snapshots and backups on the client side in the same way that volume pagination works using limit, marker and sort parameters. Partial-Implements: blueprint extend-limit-implementations Change-Id: Ie3660854407a947f7470b4dc0911704c0a31c1b4
* No longer ignores CINDER_SERVICE_NAMEDerrick J. Wippler2015-09-141-21/+45
| | | | | | | | | | Cinderclient now utilizes the CINDER_SERVICE_NAME when deciding what endpoint to choose. Closes-Bug: #1486256 Change-Id: I494a34afe5799e7832b1359b9c24c31ead68b6d1 UpgradeImpact: Existing configurations may select a different endpoint after this patch.
* Revert "Enable version discovery"Mike Perez2015-07-021-36/+0
| | | | | | | | | | | | | | | This reverts commit ae03d2a721bd9acb61805ce792a27fb7cf88e5cd. Cases where a deployment is using a proxy, Cinder servers won't return the expected publicURL, and instead gives an internal URL that the client can't use. Commit 2eb25ab8803214cb3beb5d8fe3efbf70a462c414 in Cinder introduces the public_endpoint config option, but not everyone is expected to be running that later of a version to take advantage of this. Closes-Bug: #1464160 Change-Id: I61228c1e8630b958c792be077674b48fbdb83135
* Enable version discoveryMike Perez2015-04-201-0/+36
| | | | | | | | | | | | | The service catalog can now have the cinder endpoint x.x.x.x:8776 with service_type volume, without needing to specify a version in the endpoint. Keystone will do discovery of the root / GET of the Cinder API to discover the versions that can be talked to. This also provides backwards compatibility for the previous solution of having v1 enabled on service_type volume and v2 on service_type volumev2. Change-Id: Id0347f8370dbc8fd7fa8096cd5859e10b0c5d67c
* Move unit tests into test directoryJohn Griffith2015-03-236-0/+468
This is the first step of moving functional testing into the project tree. This change just moves all of the unit tests to be under a dedicated tests/unit directory. Follow up patches will add the functional directory and start moving tempest CLI tests there. Change-Id: I9dc0b8f761676c1b3bbdeb03e2f44b35f75c693e