cinder/cinder/tests
whoami-rajat 0ba501e021 Make volume soft delete more thorough
When a volume record is soft-deleted in the database,
dependent records in other tables (for example,
Transfers, VolumeGlanceMetadata, etc.) must be soft
deleted as well.  Otherwise, we will get FK dependency
errors when the database is purged.

This patch adds that support for VolumeAttachment table.
(other tables were already covered, just refactored)

Also adds tests.

Conflicts:
    test-requirements.txt

    Note: conflict is due to gate fixing patch in Stein
    I9f0fec25444ed865d56d0d250fb6d840ab5b4095, which is
    not applicable in Rocky.

Co-authored-by: Rajat Dhasmana <rajatdhasmana@gmail.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>

Change-Id: Ibfa6c4ba2f162681756ec3203991351345b65346
Related-Bug: #1542169
Depends-On: https://review.opendev.org/#/c/704688/
(cherry picked from commit a5bb17bdfc)
(cherry picked from commit dd2ba49004)
2020-02-03 17:58:54 +00:00
..
compliance
functional Allow using forward slashes in metadata 2018-10-19 17:39:44 +02:00
unit Make volume soft delete more thorough 2020-02-03 17:58:54 +00:00
README.rst Update the documentation link 2017-08-26 06:52:48 -07:00
__init__.py
fake_driver.py FC: refactor fczm utils decorators to functions 2018-04-16 16:23:59 -07: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.