cinder/cinder/tests/unit/db
Rajat Dhasmana e62ac18085 Modify default/delete volume type logic
This patch modifies the delete volume type logic such that a volume type
cannot be deleted if:
1) It is the default volume type
2) The default type configured is wrong/doesn't exist

This also implies that there will exist atleast 1 volume type in the
deployment and that will be the default volume type.

This also includes following 2 changes on the default_volume_type conf option:
1) It is a mandatory field
2) default value of this config option is '__DEFAULT__'

All these changes ensure that we don't allow creating untyped volumes.

Also it is now possible to delete the '__DEFAULT__' type as it acts
as a normal type.

Change-Id: Ifa3d22305060b5913332cad89ea696bf7fd84ce1
Closes-Bug: #1886632
(cherry picked from commit e5d842eb1b)
(cherry picked from commit b46f5becda)
2020-09-21 11:08:49 +00:00
..
__init__.py Files with no code must be left completely empty 2016-09-28 16:29:30 +07:00
test_cluster.py Move service and cluster creation in test to utils 2017-01-19 10:42:23 +01:00
test_migrations.py Untyped to Default Volume Type 2019-09-20 05:37:54 +00:00
test_name_id.py DB: Optimize volume_update method 2016-11-08 12:31:06 +01:00
test_orm_relationships.py Make volume soft delete more thorough 2020-01-14 12:29:00 +00:00
test_purge.py Untyped to Default Volume Type 2019-09-20 05:37:54 +00:00
test_qos_specs.py Add enough notification for QoS 2018-01-18 14:04:29 +08:00
test_reset_backend.py Add support for promoting a failed over backend 2018-05-09 12:19:33 -04:00
test_transfers.py Improve volume transfer records 2019-01-14 11:50:43 +08:00
test_volume_type.py Modify default/delete volume type logic 2020-09-21 11:08:49 +00:00