cinder/cinder/tests/unit/backup
LeopardMa ef07bc9547 Rollback the quota_usages table when failed to create a incremental backup
If we firstly create a incremental backup without parent backup
or using unavailable backup file, like execute the command:
``cinder backup-create --name test_backup --incremental
2e3d9d0b-6b33-4cfe-a7c2-656415ee6f61``.

To satisfy one of the above reasons, we will be received an error
info: "Invalid backup: No backups available to do an incremental
backup. (HTTP 400)". But the reserved value of the ``quota_usages``
table has been updated, so we need to roll back the ``quota_usages``
table. Otherwise, after repetitive operation for many times,
create backup will be failed.

Co-Authored-By: Brin Zhang <zhangbailin@inspur.com>

Closes-Bug: #1809323
Change-Id: I1870633a5505bdb60d529fbda3147378b75e2b07
(cherry picked from commit a62fabfa65)
2020-07-06 18:07:44 -03:00
..
drivers Support Incremental Backup Completion In RBD 2020-02-07 18:22:44 +00:00
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake_backup.py Add user_id in backup list and show API 2018-12-12 00:52:05 -05:00
fake_google_client.py Use googleapiclient import instead of apiclient 2016-03-11 12:19:01 +01:00
fake_google_client2.py Add cinder backup driver for Google Cloud Storage 2016-01-18 23:28:23 +05:30
fake_service.py Fix earlier backup records can't be restored 2017-11-14 23:13:45 +00:00
fake_service_with_verify.py Remove oslo logging from backup unit tests 2015-06-27 21:23:34 +00:00
fake_swift_client.py Remove oslo logging from backup unit tests 2015-06-27 21:23:34 +00:00
fake_swift_client2.py Switch to the oslo_utils.fileutils 2015-08-20 07:47:48 +00:00
test_backup.py Rollback the quota_usages table when failed to create a incremental backup 2020-07-06 18:07:44 -03:00
test_chunkeddriver.py Tests : notifier problem with backup 2018-12-04 04:34:10 +00:00
test_rpcapi.py Add service dynamic log change/query 2017-05-16 13:37:35 +02:00