cinder/cinder/tests/unit/backup
LeopardMa a62fabfa65 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
2019-08-14 08:53:15 +08:00
..
drivers Merge "NFS: Retry on intermittent mount failure" 2019-06-27 07:43:39 +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 Do not use 'self' in classmethod 2019-05-05 11:14:04 +08:00
fake_google_client2.py Do not use 'self' in classmethod 2019-05-05 11:14:04 +08:00
fake_service.py Remove obsolete get_backup_driver functions 2019-04-26 08:20:02 -04:00
fake_service_with_verify.py Remove obsolete get_backup_driver functions 2019-04-26 08:20:02 -04:00
fake_swift_client.py Do not use 'self' in classmethod 2019-05-05 11:14:04 +08:00
fake_swift_client2.py Do not use 'self' in classmethod 2019-05-05 11:14:04 +08:00
test_backup.py Rollback the quota_usages table when failed to create a incremental backup 2019-08-14 08:53:15 +08: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