cinder/cinder/tests/unit
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
..
api Tests: Make tests less random 2020-05-08 11:22:02 -04:00
attachments Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
backup Tests: Make tests less random 2020-05-08 11:22:02 -04:00
brick Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
cmd Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
compute Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
consistencygroup
db Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
glance
group Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
image Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
keymgr Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
message Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
monkey_patch_example
objects Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
policies Tests: Make tests less random 2020-05-08 11:22:02 -04:00
scheduler Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
targets Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
volume Tests: Make tests less random 2020-05-08 11:22:02 -04:00
windows Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
zonemanager Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
__init__.py
cast_as_call.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
conf_fixture.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
fake_cluster.py
fake_constants.py Tests: Make tests less random 2020-05-08 11:22:02 -04:00
fake_group.py
fake_group_snapshot.py
fake_notifier.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
fake_objects.py
fake_service.py Fix migration 112 to use live_data_migration API 2017-10-20 18:24:33 -06:00
fake_snapshot.py Add context to cloning snapshots in remotefs driver 2019-07-10 10:41:15 +02:00
fake_utils.py
fake_volume.py Fix VolumeAttachment is not bound to a Session 2019-03-15 11:29:25 +01:00
policy.json Add policy test for volume extend/retype/update_ro policy 2019-01-15 01:22:24 +00:00
test.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_api.py
test_api_urlmap.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_cleanable_manager.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_cmd.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_context.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_coordination.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_db_api.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_db_worker_api.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_evaluator.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_exception.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_fixtures.py Explicitly set expected log level for tests 2017-11-17 16:58:40 -06:00
test_hacking.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_image_utils.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_interface.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_macrosan_drivers.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_manager.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_paginate_query.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_policy.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_qos_specs.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_quota.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_quota_utils.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_rpc.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_service.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_service_auth.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_setup_profiler.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_ssh_utils.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_test.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_test_utils.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_utils.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_cleanup.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
test_volume_configuration.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_glance_metadata.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_throttling.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_transfer.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_types.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_types_extra_specs.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_utils.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
utils.py Tests: Remove Python 2 compat file_spec code 2020-03-12 10:00:50 -04:00