summaryrefslogtreecommitdiff
path: root/openstackclient/tests/volume/v2/fakes.py
Commit message (Collapse)AuthorAgeFilesLines
* move unit tests to new "unit" test moduleSteve Martinelli2016-09-081-696/+0
| | | | | | | | this will better isolate the unit tests from the functional tests. unfortunately, the "integration" tests had to be lumped into the "unit" tests since we need the separation in testr.conf Change-Id: Ifd12198c1f90e4e3c951c73bfa1884ab300d8ded
* Clean up FakeClient classes in volume fakesHuanxuan Ao2016-08-231-37/+4
| | | | | | | | | | | Put FakeTransferClient and FakeServiceClient classes into FakeVolumeClient class, I think we need not to create FakeClient classes for every objects, we can use only FakeVolumeClient for all volume objects. This can reduce repetition, unified codes and make codes look cleaner and easier. Change-Id: I2729ef0e80166f4d49ccd9a48b653e2f215e3bfe
* Show project access for volume typeSheel Rana2016-07-201-0/+33
| | | | | | | | | | | | OSC does not support to show project access details for private volume types. This patch will provide support for showing project access details for private volume types. Closes-Bug:#1554891 Implements: bp cinder-command-support Change-Id: I218fb07a6e69033e9f8570748eee1df8df9d6fdc
* Support error handling for delete commands in volumev2Huanxuan Ao2016-07-141-0/+60
| | | | | | | | Some delete conmmands in volumev2 did not support error handling, this patch add them and also add the unit tests for bulk deletion Change-Id: I56ade6f9c7396c78fb989547476c4d94ccd76eae
* Remove FakeService.get_serviceszheng yin2016-07-091-20/+0
| | | | | | FakeService.get_services is useless in other test files, so remove it Change-Id: If90b8742be97697f285750a05896b574c45f3504
* fix a few spelling mistakesgecong19732016-07-041-3/+3
| | | | | | | - overwriten should be overwritten - retrun should be return Change-Id: I1567402f4d5c7253e6a54d8753e3f201af7e6a54
* Add "--snapshot" option to "backup create" command in volumev2Huanxuan Ao2016-07-011-0/+1
| | | | | | | | Add "--snapshot" option to "backup create" command to support backing up a snapshot. Change-Id: Ibecbf1902599875f422d372d529835f73211d3ec Closes-Bug: #1597184
* osc-lib: utilsDean Troyer2016-06-131-1/+2
| | | | | | | | Use osc-lib directly for utils. Leave openstackclient.common.utils for deprecation period. Change-Id: I5bd9579abc4e07f45219ccd0565626e6667472f7
* Clean up fakes.py in volumev2Huanxuan Ao2016-06-081-188/+0
| | | | | | | | | All of volumev2 fake classes are completed. Now the unit tests of volumev2 are using fake classes so that the old codes are useless and can be removed. Change-Id: I502a8a0b0404975744d3b208af3e95c8692e6c47
* Update unit test test_extension with fake classHuanxuan Ao2016-06-071-20/+38
| | | | | | | Add FakeExtension class in networkv2, computev2, volumev2, identityv2_0 and update unit test test/common/test_extension.py Change-Id: I94815de7801860edb7fa91a7d146455cab946652
* Merge "Add support for volume transfer request list"Jenkins2016-06-041-2/+53
|\
| * Add support for volume transfer request listSheel Rana2016-06-041-2/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | OSC does not support to list volume transfer from one user to other user. This patch will provide support for listning volume transfer requests. Closes-Bug:#1554886 Implements: bp cinder-command-support Change-Id: Ie659bc39cb1d1e931cca7a40b2f126a067ee484c
* | Add FakeQos class and update unit test for qos_specs in VolumeV2Huanxuan Ao2016-05-311-0/+75
| | | | | | | | Change-Id: I108c8d343678f3d19d1ca1f93d998c46c7c32eff
* | Merge "Refactor TestVolumeShow with FakeVolume"Jenkins2016-05-241-0/+38
|\ \
| * | Refactor TestVolumeShow with FakeVolumeting.wang2016-05-171-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the meantime, add some static methods in FakeVolume for ease of use and add info() method with "property" decorator in FakeResource to allow those static methods to get fake information. Change-Id: I98ad520f32afd529fda77a4592f645130282537f Co-Authored-By: xiexs <xiexs@cn.fujitsu.com> Implements: blueprint improve-volume-unittest-framework
* | | Add FakeType class and update volumetype test in VolumeV2Huanxuan Ao2016-05-231-0/+53
| | | | | | | | | | | | | | | | | | | | | This patch adds FakeType class and update unit tests for volume type with FakeType class Change-Id: I86ecc68dd1a1e919f3325cd9456974a0cfadbe61
* | | Add FakeSnapshot class and update snapshot test in VolumeV2Huanxuan Ao2016-05-211-0/+53
| | | | | | | | | | | | | | | | | | | | | Add FakeSnapshot class and update unit tests for snapshot commands with the FakeSnapshot class. Change-Id: If039a48b9d5f8430cc3d041b8c7ec30af8ff0e03
* | | Add FakeBackup class and updata backup unittest in volumeV2Huanxuan Ao2016-05-171-0/+54
|/ / | | | | | | Change-Id: I39762bedaeaaf1894f48912ca1b7d59ab50f9f78
* | Refactor TestVolumeList with FakeVolumeting.wang2016-05-111-0/+2
|/ | | | | | Change-Id: Idbe7ee1d9688ea5937852cce1a746016bf98fa74 Co-Authored-By: xiexs <xiexs@cn.fujitsu.com> Implements: blueprint improve-volume-unittest-framework
* Support for volume service listSheel Rana2016-04-251-11/+102
| | | | | | | | | | | | OSC does not support to list volume services. This patch will provide support for adding volume service related support. Closes-bug:#1550999 Implements: bp cinder-command-support Change-Id: I50ac14aeb96c4b8ddbf7b33e519feea0d126f752
* Enhance list extension unit testFang Zhen2016-03-111-0/+20
| | | | | | | | Extension list involves identity, compute, volume and network. Current test covers only identity and network. This patch added test against compute and volum. Also refactored current implentation. Change-Id: If9b36cba24c50a817a17f685801e418fb898596a
* Fixed a bunch of spacingBrandon Palm2016-02-231-0/+2
| | | | | | | Nothing too complicated here. I fixed a bunch of spacing issues that I saw in OSC. Change-Id: I935ab48e7c5bac5f88ecdb3a05f73fb44fc9f41d
* Add functional tests for "volume" commands v2Tang Chen2016-02-211-2/+26
| | | | | | | | | | The tests for v2 "volume" commands are quite similar to v1. This patch also map 'metadata' to 'properties', 'volume_type' to 'type' to align to the v1 output. Change-Id: Icf2c5463b186fc78c890ccd96453090c4a2c2eb6 Partial-bug: #1519503
* Fix wrong type of volume attachments in FakeVolumeTang Chen2016-02-021-2/+3
| | | | | | The volume attachments should be a list of dict, not a single dict. Change-Id: I3cec62bcb3953e4f38f9d3dd23f3eb6ef984464c
* Support listing volume availability zonesRichard Theis2016-01-141-0/+54
| | | | | | | | | | | | | | Update the "os availability zone list" command to support listing volume availability zones along with the currently listed compute availability zones. This adds a --compute and --volume option to the command in order to select the availability zones to list. By default, all availability zones are listed. If the Block Storage API does not support listing availability zones then an warning message will be issued. Change-Id: I8159509a41bd1fb1b4e77fdbb512cf64a5ac11a9 Closes-Bug: #1532945
* Introduce FakeVolume classxiexs2015-11-301-0/+84
| | | | | | | | | | Introduce FakeVolume to improve the current volume unittest framework with following two advantages: 1. generate more than one faking volumes 2. all faking volumes generated by random Change-Id: I9d56efa4fd4f03c82cd4e29622b6312566dbc453 Implements: blueprint improve-volume-unittest-framework
* Follow-on for volume list - add tests, clean helpDean Troyer2015-10-161-2/+2
| | | | | | | | | | * Add volume list tests for v1 (a copy of the v2 tests) * Converts volume v2 tests to use Identity v3 so domains can be tested * Add volume list (v2) tests for new options * Re-orders volume list options (both v1 and v2) to match * MArks the new volume list (v2) options as v2-only in doc Change-Id: I2181b2c48cfde2147d7d0ef135322df8a81e7ce8
* Volume v2 list does not show server nameTerryHowe2015-08-281-3/+4
| | | | | | | | The volume v2 list was using the volume id rather than the server id. Change-Id: Ibe03d34b5b503af2d00202dabd640f796449cf9a Closes-Bug: #1489954
* Add list feature to volume v2heha2015-08-061-1/+5
| | | | | | | | | | "volume list" is not in the v2. Co-Authored-By: Lin Hua Cheng <os.lcheng@gmail.com> implements bp: volume-v2 Change-Id: I9f4585202f5f9ec5f4c091278fc6c4036efb1290
* Add support for volume v2 commandsAmey Bhide2015-07-241-1/+16
| | | | | | | | | | Adds the following commands: openstack volume create openstack volume set openstack volume unset Implements: blueprint volume-v2 Change-Id: Icb7404815763aa88550112fb42f5200ce05c2486
* Format volume type properties when showingSteve Martinelli2015-07-191-0/+11
| | | | | | | | Currently, the properties of a volume type are unformatted. Use the formatter to keep things consistent with the way properties are represented in OSC. Change-Id: I81c6bd3fdbc30568c269e501c740473b2a1ffb4e
* Add support for volume API v2 QoS commandsDavid Moreau Simard2015-06-291-0/+43
| | | | | | | | | | | | | | | This commit adds the following commands: volume qos associate volume qos create volume qos delete volume qos disassociate volume qos list volume qos set volume qos show volume qos unset Change-Id: If3c679557ac9abb0dfc75d290b96fb9c8d46c7b7 Partial-Bug: #1467967
* Merge "Add support for volume backup v2 command"Jenkins2015-06-181-1/+6
|\
| * Add support for volume backup v2 commandAmey Bhide2015-06-041-1/+6
| | | | | | | | | | | | | | | | | | openstack backup create openstack backup list openstack backup restore Implements: blueprint volume-v2 Change-Id: I77965730065dd44f256c46bcc43c1e6a03b63145
* | Add support for volume snapshot v2 commandAmey Bhide2015-06-041-4/+11
|/ | | | | | | | | | openstack snapshot create openstack snapshot set openstack snapshot unset openstack snapshot list Implements: blueprint volume-v2 Change-Id: Ia1d9f4426baa0099281a9931f4eec99ebe1969b1
* Add support for volume v2 APIAmey Bhide2015-05-301-0/+136
Added following commands for volume V2 API: volume show volume delete volume type show volume type delete snapshot show snapshot delete backup show backup delete Implements: blueprint volume-v2 Change-Id: I68bd303c194f304ad15f899d335b72a8bf3ebe10