cinder/cinder/tests/unit/backup
Eric Harney b83c446e52 Tests: Make tests less random
Remove a bunch of uuid.uuid4() calls from tests, and use static UUIDs
instead.

We generally use static UUIDs to make test runs reproducible and to make
it easier to track odd failures that repeat in the gate.

Readability of tests is also improved by using meaningful names like
VOLUME_ID or SNAPSHOT_ID rather than just uuid4().

So, do more of that.

Some care has to be taken in test classes that create lots of volumes,
such as BackupBaseDriverTestCase, because random UUIDs were previously
allowing volumes used by different tests to not collide with each other.
More static IDs have been added to account for this.

Change-Id: I372d27367b730f4606bc0ea84a9b322d45d1cbbe
2020-05-08 11:22:02 -04:00
..
drivers Tests: Make tests less random 2020-05-08 11:22:02 -04: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_swift_client.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
fake_swift_client2.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
test_backup.py Tests: Make tests less random 2020-05-08 11:22:02 -04:00
test_chunkeddriver.py Tests: Make tests less random 2020-05-08 11:22:02 -04:00
test_rpcapi.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00