cinder/cinder/tests/unit/api/contrib
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
..
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_admin_actions.py Reset state robustification for volume os-reset_status 2022-02-28 10:54:22 +05:30
test_availability_zones.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_backup_project_attribute.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_backups.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_capabilities.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_cgsnapshots.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_consistencygroups.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_extended_snapshot_attributes.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_hosts.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_qos_specs_manage.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_quotas_classes.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_quotas.py Implement project personas for quotas and quota_classes 2021-09-08 16:35:54 -07:00
test_scheduler_hints.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_scheduler_stats.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_services.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_snapshot_actions.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_snapshot_manage.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_snapshot_unmanage.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_types_extra_specs.py Update policies related to user visible extra specs 2021-09-15 14:47:00 -07:00
test_types_manage.py Update policies related to user visible extra specs 2021-09-15 14:47:00 -07:00
test_used_limits.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_actions.py Support volume re-image 2022-02-24 15:23:38 +05:30
test_volume_encryption_metadata.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_volume_host_attribute.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_volume_image_metadata.py Remove various unused code 2022-01-24 14:53:40 +00:00
test_volume_manage.py Prohibit volume manage to an encrypted volume type 2022-03-23 01:57:28 +00:00
test_volume_migration_status_attribute.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_volume_tenant_attribute.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_volume_transfer.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_volume_type_access.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_volume_type_encryption.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00
test_volume_unmanage.py Remove Block Storage API v2 2021-06-04 17:21:28 -04:00