summaryrefslogtreecommitdiff
path: root/openstackclient/tests/volume/v2/test_snapshot.py
Commit message (Collapse)AuthorAgeFilesLines
* move unit tests to new "unit" test moduleSteve Martinelli2016-09-081-458/+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
* Add "--marker" and "--limit" options to "snapshot list"Huanxuan Ao2016-07-231-2/+32
| | | | | | | | Add "--marker" and "--limit" options to "snapshot list" command in volume v2 (v2 only). Change-Id: Ib60840b9b83dfe5e599e4037e8ec308844a9448b Closes-Bug: #1605475
* Support error handling for delete commands in volumev2Huanxuan Ao2016-07-141-5/+58
| | | | | | | | 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
* Add "--property" option to "snapshot create" command in volumev2Huanxuan Ao2016-07-061-2/+7
| | | | | | | | | Add "--property" option to "snapshot create" command in volumev2 (v2 only) to support adding properties to a new snapshot. Change-Id: Ie0e90c9ccc2ac89b3b7b0ac89751fd864aada9a4 Closes-Bug: #1597192
* osc-lib: utilsDean Troyer2016-06-131-1/+2
| | | | | | | | Use osc-lib directly for utils. Leave openstackclient.common.utils for deprecation period. Change-Id: I5bd9579abc4e07f45219ccd0565626e6667472f7
* Add FakeSnapshot class and update snapshot test in VolumeV2Huanxuan Ao2016-05-211-122/+143
| | | | | | | Add FakeSnapshot class and update unit tests for snapshot commands with the FakeSnapshot class. Change-Id: If039a48b9d5f8430cc3d041b8c7ec30af8ff0e03
* Merge "Add support of setting snapshot state"Jenkins2016-05-181-2/+18
|\
| * Add support of setting snapshot stateXi Yang2016-03-091-2/+18
| | | | | | | | | | | | | | | | This patch is going to add the functionality of setting snapshot state which OSC currently lacks. Closes-Bug:#1535239 Change-Id: I2afd6567416e75ba0c70b73351cf1eb5394b3373
* | Make snapshot and backup name optionalIvan Kolodyazhny2016-04-061-0/+24
|/ | | | | | | Cinder does not require snapshot and backup name. These arguments are optional. Change-Id: I05d59efc9642205a25684bf0b77758328296d959
* [Volume] Check return value is None in volume unit testsTang Chen2016-03-031-7/+10
| | | | | | | | | take_action() in commands inheriting from Command returns nothing. So we should assert the return is None in the unit tests of these commands. Change-Id: Idd961a5fa3db825353700837a559621d17f782c5 Partial-Bug: #1550636
* Trivial: Reorder unit tests in alphabetical order in volume testsTang Chen2016-03-021-102/+102
| | | | Change-Id: I622123f68e2bb53f8767069e4a717fcc34e37b5c
* Fixed a bunch of spacingBrandon Palm2016-02-231-1/+6
| | | | | | | Nothing too complicated here. I fixed a bunch of spacing issues that I saw in OSC. Change-Id: I935ab48e7c5bac5f88ecdb3a05f73fb44fc9f41d
* Refactor: Abstract columns and datalist out in volume test casesSaiKiran2016-01-201-13/+17
| | | | | | | | columns and datalist has been set in each test case in volume, which is not necessary. This patch abstract it out and remove all redundant code. Change-Id: I3a09d5d2db86da986bdcfbf2310978ced181017d
* Consistency of the --all argument for snapshotsJean-Philippe Evrard2015-11-301-1/+32
| | | | | | | | | This change is inspired by the volume.py. It allow the user to use openstack snapshot list --all. Closes-Bug: #1517386 Change-Id: I72a53fcd0c5c5af539cd88b37e71b4331fa67473
* Add support for volume snapshot v2 commandAmey Bhide2015-06-041-0/+183
| | | | | | | | | | 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/+82
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