cinder/cinder/tests/unit/api
Yadiel Xuan(轩艳东) 9c1aa92b95 Prohibit volume manage to an encrypted volume type
Managing a volume to an encrypted volume type should not be allowed.
One reason is that there is no way for an operator to specify an
encryption key ID for the volume. Another is that we already don't
allow a volume of an encrypted type to be un-managed, so this change
will be symmetric.

Also update and correct the api-ref for this call.

Co-authored-by: xuan <xuanyd@outlook.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>

Change-Id: Ic2da41f3962c1108f974aca952bce3da6d6ac277
Closes-bug: #1944577
(cherry picked from commit 8088dc9580)
change:
  cinder/tests/unit/api/contrib/test_volume_manage.py - used a
  feature of unittest.mock that was introduced in py38; rewritten to
  be compatible with py36
2022-03-23 01:57:28 +00:00
..
contrib Prohibit volume manage to an encrypted volume type 2022-03-23 01:57:28 +00:00
middleware Remove six of dir cinder/tests/unit/api/* 2020-10-10 14:53:47 +08:00
openstack Fix best_match() deprecation warning 2021-05-13 13:59:17 +02:00
v2 Remove the need for project_id from API endpoints 2022-02-08 08:32:23 -08:00
v3 Prohibit volume manage to an encrypted volume type 2022-03-23 01:57:28 +00:00
views Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fakes.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_api_validation.py Remove references to 'sys.version_info' 2021-04-25 14:19:19 +08:00
test_common.py Remove the need for project_id from API endpoints 2022-02-08 08:32:23 -08:00
test_versions.py Remove 'enable_v3_api' option 2021-08-05 06:30:16 -04:00