summaryrefslogtreecommitdiff
path: root/openstackclient/tests/volume/v2/test_backup.py
Commit message (Collapse)AuthorAgeFilesLines
* move unit tests to new "unit" test moduleSteve Martinelli2016-09-081-388/+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
* Rename backup commands in volume v1 and v2Huanxuan Ao2016-08-111-5/+5
| | | | | | | | | | | | | | | | | | | | | Backup commands are used only in volume service now, but "backup" is too generic, users may not know the commands are used for volume from the commands name. By seeing the command name, users can only see the "backup" but do not know which object the backup commands work for. It may confuse users. I think rename "backup" to "volume backup" can depict resource relation and will be helpful for users to know the commands clearly. So add new commands ``volume backup create/delete/ list/show/restore`` to replace the old commands ``backup create/delete/list/show/restore``. And also deprecate old commands. Change-Id: I4f844d9bc48573eb4d17288ce6b8a90cea00d16a Implements: bp backup-snapshot-renamed-for-volume-resource Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
* Support error handling for delete commands in volumev2Huanxuan Ao2016-07-141-8/+62
| | | | | | | | 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 "--incremental" option to "backup create" command in volume v2Paul Bourke2016-07-111-0/+4
| | | | | | | | | | Cinder V2 API supports creating volume backup with "--incremental" option. However, OSC doesn't support this argument. So this patch adds the "--incremental" option to allow users to create incremental style backups. Change-Id: Iefac5f1a6c9ef006ad9c22d4250ae6df50504781 Closes-Bug: 1600196
* Add '--force' option to 'backup delete' command in volumev2Huanxuan Ao2016-07-061-1/+17
| | | | | | | | | Add '--force' option to 'backup delete' command in volumev2 (v2 only) to allow delete in state other than error or available. Change-Id: I661ea0d465db227e374cbacdde0206fa1a6dd3d5 Closes-Bug: #1597188
* Add "--snapshot" option to "backup create" command in volumev2Huanxuan Ao2016-07-011-1/+13
| | | | | | | | Add "--snapshot" option to "backup create" command to support backing up a snapshot. Change-Id: Ibecbf1902599875f422d372d529835f73211d3ec Closes-Bug: #1597184
* Add "--force" option to "backup create" command in volumev2Huanxuan Ao2016-06-271-2/+6
| | | | | | | | | | Cinder V2 API supports creating volume backup with "--force" option. However, OSC doesn't support this argument. So this patch add the "--force" option to allow users to back up a in-use volume. Change-Id: I326f8d6172b2830da4cf1317348af50142cc5490 Closes-Bug: #1596443
* Add FakeBackup class and updata backup unittest in volumeV2Huanxuan Ao2016-05-171-113/+139
| | | | Change-Id: I39762bedaeaaf1894f48912ca1b7d59ab50f9f78
* 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-3/+5
| | | | | | | | | 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-63/+63
| | | | Change-Id: I622123f68e2bb53f8767069e4a717fcc34e37b5c
* Fixed a bunch of spacingBrandon Palm2016-02-231-0/+4
| | | | | | | 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-14/+27
| | | | | | | | 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
* Add support for volume backup v2 commandAmey Bhide2015-06-041-0/+147
| | | | | | | | | openstack backup create openstack backup list openstack backup restore Implements: blueprint volume-v2 Change-Id: I77965730065dd44f256c46bcc43c1e6a03b63145
* 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