cinder/cinder/tests
Rajat Dhasmana e5d842eb1b 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
2020-08-19 02:07:15 +00:00
..
compliance Fix compliance tests 2020-05-11 14:46:19 -05:00
functional Modify default/delete volume type logic 2020-08-19 02:07:15 +00:00
hacking Add hacking check for 3rd party mock 2020-04-09 15:21:12 -05:00
unit Modify default/delete volume type logic 2020-08-19 02:07:15 +00:00
README.rst Update the documentation link 2017-08-26 06:52:48 -07:00
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake_driver.py Rename volume/utils.py to volume/volume_utils.py 2019-09-09 15:00:07 -04:00
fixtures.py Stop to use the __future__ module. 2020-06-11 15:30:09 +02: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.