summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/volume
Commit message (Collapse)AuthorAgeFilesLines
* Add "--remote-source" option to "volume snapshot create" commandHuanxuan Ao2016-12-121-0/+28
| | | | | | | | | | | Add "--remote-source" option to "volume snapshot create" command to support creating snapshot from an existing remote snapshot in volume v2 (v2 only), also add the doc, unit tests and release note. Change-Id: I9e5fad4f0db5b44d528eb6b930edbc816e392c3a Implements: bp cinder-command-support Closes-Bug: #1618676 Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
* Merge "Add '--force' option to 'volume snapshot delete' command"Jenkins2016-12-081-3/+20
|\
| * Add '--force' option to 'volume snapshot delete' commandHuanxuan Ao2016-12-081-3/+20
| | | | | | | | | | | | | | | | | | Add '--force' option to 'volume snapshot delete' command in volume v2 (v2 only) to allow delete in state other than error or available. Change-Id: Ie8991e9a630d7c7e9ac6c6870aed787bbcebacf2 Closes-Bug: #1597195
* | Merge "Add "consistency group set" command"Jenkins2016-12-081-0/+64
|\ \
| * | Add "consistency group set" commandzhiyong.dai2016-12-061-0/+64
| |/ | | | | | | | | | | | | | | Add "consistency group set" command in volume v2 (v2 only). Change-Id: I53116015388b7a4b0e15813f52c1246166bb0fc1 Implements: bp cinder-command-support Partial-Bug: #1613964
* | Merge "Fix description errors in volume fakes"Jenkins2016-12-081-3/+3
|\ \
| * | Fix description errors in volume fakesjiahui.qiang2016-11-271-3/+3
| |/ | | | | | | | | | | | | In volumev2 fakes.py. Description of some 'get_*' methods is incorrect. the error will mislead the user. this patch has already fixed it. Change-Id: I048e3c2b625c7b54ab19f2b923d4970427f277ff
* | Merge "Add options to "volume snapshot list" command"Jenkins2016-12-082-7/+192
|\ \
| * | Add options to "volume snapshot list" commandjiahui.qiang2016-11-262-7/+192
| |/ | | | | | | | | | | | | | | Add "--name", "--status" and "--volume" options to "volume snapshot list" command for filtering results. Change-Id: I72db1abce7701f31598deec34801a4d1f5713870 Closes-Bug:#1645252
* | Merge "Add "consistency-group-snapshot" option to consistency group create"Jenkins2016-12-081-0/+39
|\ \
| * | Add "consistency-group-snapshot" option to consistency group createHuanxuan Ao2016-12-071-0/+39
| |/ | | | | | | | | | | | | | | | | | | | | Add "consistency-group-snapshot" option to "consistency group create" command to support for creating consistency group from existing consistency group snapshot Implements: bp cinder-command-support Partial-Bug: #1613964 Change-Id: I54c265d38299f4973945ba99e30042bcf47859c0
* | Add "volume host set" commandjiahui.qiang2016-11-251-0/+86
|/ | | | | | | | Add "volume host set" command in volume v2 to support freeze(disable) and thaw(enable) the specified cinder-volume host Change-Id: Iee1604d72f9eccd9e327b0ef8d345909a733a647 Implements: bp cinder-command-support
* Merge "Refactor "snapshot" commands"Jenkins2016-12-032-24/+77
|\
| * Refactor "snapshot" commandsHuanxuan Ao2016-11-032-24/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.change the command name ``snapshot create/delete/list/ show/set/unset`` to ``volume snapshot create/delete/list/ show/set/unset``. 2.change the optional parameter "--name <name>" to a positional parameter "<snapshot-name>"; Change the positional parameter "<volume>" to a optional parameter "--volume <volume>" Change-Id: If03276ecdf6f0d96893d5ecf91c2aaa64929cff3 Implements: bp backup-snapshot-renamed-for-volume-resource Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
* | Add "consistency group show" commanddaizhiyong2016-12-021-0/+43
| | | | | | | | | | | | | | | | Add "consistency group show" command in volume v2 (v2 only). Change-Id: If496eba2955c0aacd52600bb6fba39690ddd90cb Implements: bp cinder-command-support Partial-Bug: #1613964
* | Add "consistency group delete" commandzhiyong.dai2016-12-022-0/+125
| | | | | | | | | | | | | | | | Add "consistency group delete" command in volume v2 (v2 only). Change-Id: Ieebc2417df0d45a578d5617bad245d7863f09190 Implements: bp cinder-command-support Partial-Bug: #1613964
* | Merge "Add "--type" and "--retype-policy" options to "volume set" command"Jenkins2016-12-021-0/+66
|\ \
| * | Add "--type" and "--retype-policy" options to "volume set" commandHuanxuan Ao2016-11-231-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add "--type" and "--retype-policy" options to "volume set" command in volume v2 (v2 only) to support changing the volume type for a volume Change-Id: I0153abdb967aee790586a57cef31930e32005c1b Implements: bp cinder-command-support
* | | Merge "Add "Is Public" column in volume type list"Jenkins2016-12-022-2/+9
|\ \ \
| * | | Add "Is Public" column in volume type listHuanxuan Ao2016-11-222-2/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | I think admin users will like to see the "Is Public" column in volume type list since they can know the volume type is public or private, so add "Is Public" column in volume type list Change-Id: I3f6e297a7adf82a275debbd87d2c4da415aa1360 Closes-Bug: #1643861
* | | Merge "Remove outdated comments in volume unit test"Jenkins2016-12-022-8/+1
|\ \ \
| * | | Remove outdated comments in volume unit testHuanxuan Ao2016-11-222-8/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Checked the volume create unit test has beed completed, so remove the TODO. Checked the FakeVolume class has been added in volume v1, so remove the note. Change-Id: I82b5f775d013e5e301bc1c18481ef516ca5baa7e
* | | Merge "Add commands for "consistency group snapshot""Jenkins2016-12-022-0/+429
|\ \ \
| * | | Add commands for "consistency group snapshot"Huanxuan Ao2016-11-192-0/+429
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add commands: consistency group snapshot create consistency group snapshot delete consistency group snapshot list consistency group snapshot show in volume v2 (v2 only) Change-Id: Ib4115f8ff00fb5aa8194588223032657eb1346b5 Closes-Bug: #1642238 Implements: bp cinder-command-support
* | | Merge "Add "consistency group create" command"Jenkins2016-12-021-0/+132
|\ \ \
| * | | Add "consistency group create" commandHuanxuan Ao2016-11-171-0/+132
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Add "consistency group create" command in volume v2 (v2 only). Change-Id: I2e9affe390b1012aa18459e64d04afcdfc15e27d Implements: bp cinder-command-support Partial-Bug: #1613964
* | | Outdated test data clean up in volumeHuanxuan Ao2016-11-161-96/+0
|/ / | | | | | | | | | | | | | | Now all the volume unit tests (both v1 and v2) are using fake classes. All the old fake data and code can be removed. Change-Id: Ib35ad4b6c94c42a21215e012f80f8978a74a3d18
* | Merge "Use FakeImage class to replace duplicated image info in volume test"Jenkins2016-11-102-31/+11
|\ \
| * | Use FakeImage class to replace duplicated image info in volume testHuanxuan Ao2016-10-212-31/+11
| |/ | | | | | | | | | | | | | | FakeImage class has been added in image v1 so that we can reuse it in volume v1 unit test to replace the duplicated image info in volume v1 fake. Change-Id: I0f96e568bd65e59241b57704fc2a379319a386d8
* | Merge "Add "--read-only" and "--read-write" options in "volume set""Jenkins2016-11-102-16/+90
|\ \
| * | Add "--read-only" and "--read-write" options in "volume set"Huanxuan Ao2016-10-182-16/+90
| |/ | | | | | | | | | | | | | | Add "--read-only" and "--read-write" options in "volume set" command to set volume access mode. Implements: bp cinder-command-support Change-Id: I76ba85c7d3ff0eb026a9cbd794368d8b2b0d17fe
* | Merge "Add "volume migrate" command"Jenkins2016-11-102-0/+152
|\ \
| * | Add "volume migrate" commandHuanxuan Ao2016-10-182-0/+152
| |/ | | | | | | | | | | | | | | Add "volume migrate" command in volume v1 and v2 to support migrating volume to a new host Change-Id: Ie4e6037171a31a872006a13f9fd1e15eaa627c26 Implements: bp cinder-command-support
* | Add 'all-projects' option to 'volume backup list'Jordan Pittier2016-11-082-3/+13
| | | | | | | | | | | | | | Similar to what 'volume list --all-projects' does, 'volume backup list --all-projects' list volume backups accross all projects. Change-Id: Id5dda9b5adc822c4ddfb2dda339946d3322858e2
* | Add options to "volume backup list" commandHuanxuan Ao2016-11-082-6/+87
|/ | | | | | | | | Add "--name", "--status", "--volume", "--marker" (v2 only) and "--limit" (v2 only) options to "volume backup list" command Change-Id: If20cb7650f2359d393ee314d9e055a8659c73009 Closes-Bug: #1612484 Closes-Bug: #1639712
* Refactor qos spec unit test in volume v1Huanxuan Ao2016-10-042-159/+124
| | | | | | | Refactor qos spec unit test with FakeQos class in volume v1. Change-Id: Ia76bf41a911457282b293dfaf0af311b1a9194ce
* Add and modify options for "volume create" commandHuanxuan Ao2016-09-282-10/+183
| | | | | | | | | | | | | | 1.Add mutually exclusive options into a mutually exclusive group. 2.Add "--source-replicated", "--consistency-group", "--hint" and "multi-attach" options 3.Make --size option to be optional under some cases Closes-Bug: #1568005 Closes-Bug: #1627913 Implements: bp implement-cinder-features Co-Authored-By: Roman Vasilets <rvasilets@mirantis.com> Change-Id: I2c4c3073195d33774e477f4d7f22e383b14b41dd
* Implement "consistency group list" commandHuanxuan Ao2016-09-282-0/+177
| | | | | | | | | | Add "consistency group" object in volume v2 (v2 only) and implement "consistency group list" command Change-Id: Ifa90d97f4b223f9a5b00708cff07fa2c5e2635f0 Implements: bp cinder-command-support Partial-Bug: #1613964 Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
* Add unit tests for backup commands in volume v1Huanxuan Ao2016-09-232-0/+435
| | | | | | | | There was not any unit tests for backup commands in volume v1 so that sometimes some small bugs maybe ignored, this patch add unit tests for them. Change-Id: Ic67c1b80243f7b3d15dabd25e4e4a1b1517a8b59
* Fix unset commands to pass normally when nothing specifiedHuanxuan Ao2016-09-234-0/+571
| | | | | | | | | | | | | | | | After I found this problem appear in "volume unset", I checked all the volume command and also found some same problems. This patch fix them all. The main reason of we ignored this problem before is there was not any tests for it. So I add tests for "nothing unset" for them all to test and aviod this problem. Also, I add unit tests for all snapshot commands in volume v1 by the way in this patch. We will need more tests to avoid some ignored problem. Change-Id: I46775f24643d715e168b30785b8b531c0431a55b Partial-bug: #1588588
* Merge "Add "volume backup set" command in volume v2"Jenkins2016-09-221-0/+69
|\
| * Add "volume backup set" command in volume v2Huanxuan Ao2016-09-221-0/+69
| | | | | | | | | | | | | | | | Add "volume backup set" command in volume v2 (v2 only) to set backup name, description and state Change-Id: If17e8457db9a4704fb5bb9c75921ed82fd0069cf Closes-Bug: #1613261
* | Implement "volume transfer request show/accept" commandHuanxuan Ao2016-09-224-6/+194
|/ | | | | | | | | | | | Add "volume transfer request show" and "volume transfer accept" commands in volume v1 and v2. Also add the unit tests, docs, release note and functional tests Implements: bp cinder-command-support Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com> Change-Id: I5787fc486b3401307125caa316f517b9c96a95a5
* Fix "volume unset" command pass normally when nothing specifiedHuanxuan Ao2016-09-211-0/+99
| | | | | | | | | | | | When nothing specified in "volume unset" command, there will be an error message says that the "--properties" option is required, it is unusual behaviour, this patch fix it and also add unit test for it. Also, this patch add unit test for "volume show" command by the way. Change-Id: I5b5d587670acf0af4262b8521292455bf9f60fe5 Partial-bug: #1588588
* Refactor volume unit test with FakeVolume class in volume v1Huanxuan Ao2016-09-212-136/+131
| | | | | | | | FakeVolume class has been added in the fake.py in volume v1, this patch refactors the volume command unit tests with the FakeVolume class. Change-Id: Ic3c1a46d5bff9048d0095f5739ae9e5a34ca6b5b
* Merge "Support mark volume as bootable in volume set"Jenkins2016-09-142-0/+54
|\
| * Support mark volume as bootable in volume setqtang2016-09-142-0/+54
| | | | | | | | | | | | | | | | Add --bootable | --non-bootable option in volume set to mark or unmark volume as bootable. Change-Id: Ifa6c2dd1642202f55b6d50e3b8614d3513d488f6 Closes-Bug:#1535704
* | Merge "Multi REST API calls error handling of "volume unset" command"Jenkins2016-09-141-0/+27
|\ \
| * | Multi REST API calls error handling of "volume unset" commandHuanxuan Ao2016-09-111-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | Support multi REST API calls error handling for "volume unset" command follow the rule in doc/source/command-errors.rst. Also add a unit test for testing the error handling Change-Id: I2de7a7bd5a7a5e39817ed5cf6952abf4afba75e4
* | | Replace 'MagicMock' with 'Mock'qtang2016-09-142-10/+10
| | | | | | | | | | | | | | | Change-Id: I7aeceede6bd3cb88cf04f398454f9758dbee20f1 Closes-Bug: #1475722