cinder/cinder/tests/functional
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
..
api Modify default/delete volume type logic 2020-09-21 11:08:49 +00:00
api_sample_tests Untyped to Default Volume Type 2019-09-20 05:37:54 +00:00
__init__.py Fix cinder functional tests job 2017-03-21 11:45:26 +02:00
api_samples_test_base.py Re-enable new pycodestyle errors 2019-06-04 14:28:09 +00:00
functional_helpers.py Default volume_type set too early 2020-07-12 16:10:27 -04:00
test_extensions.py Remove API v1 2017-09-06 07:39:10 -05:00
test_group_replication.py Fix incorrect use of assertFalse causing CI failed 2017-10-26 11:01:02 +07:00
test_group_snapshots.py Fix incorrect use of assertFalse causing CI failed 2017-10-26 11:01:02 +07:00
test_groups.py Fix incorrect use of assertFalse causing CI failed 2017-10-26 11:01:02 +07:00
test_login.py Move integrated tests to 'functional' directory 2016-02-09 23:28:27 +02:00
test_quotas.py Bump hacking version to 1.1.x 2019-05-30 15:06:02 -04:00
test_volumes.py Modify default/delete volume type logic 2020-09-21 11:08:49 +00:00