cinder/cinder/tests
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
..
compliance Use assertEqual/Less/Greater/In/IsNone 2016-07-04 17:58:16 +02:00
functional Add OS-SCH-HNT in extensions list 2019-06-08 13:30:09 +00:00
unit Rollback the quota_usages table when failed to create a incremental backup 2020-07-06 18:07:44 -03:00
README.rst Update the documentation link 2017-08-26 06:52:48 -07:00
__init__.py
fake_driver.py Add empty check before using zone driver 2019-02-14 09:47:08 +08:00
fixtures.py Implement privsep boilerplate in cinder. 2018-06-06 09:42:54 +08:00

README.rst

IMPORTANT DEFINITION OF TESTS IN CINDER

Cinder has a number of different test types, PLEASE be sure to refer to the Cinder Testing Docs to familiarize yourself with the various options before creating any new tests.

Please check Cinder-Testing.