cinder/cinder/tests/unit
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
..
api Prohibit volume manage to an encrypted volume type 2022-03-23 01:57:28 +00:00
attachments Remove attach and detach volume driver methods 2022-01-31 15:46:22 +01:00
backup Rework backup process to make it async 2022-01-19 15:43:54 +00:00
brick LVM: Retry lvextend commands on code 139 2021-08-18 12:29:01 -04:00
cmd fixtures: Don't persist state in the Database fixture 2021-09-21 17:14:22 +01:00
compute Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
consistencygroup
db db: Increase timeout for migration tests 2022-03-08 21:30:13 +00:00
group Use resource_backend for volumes and groups 2020-08-14 08:13:42 +00:00
image Merge "Use 'visibility' instead of 'is_public' when only use Glance API v2" 2021-12-22 18:36:09 +00:00
keymgr Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
message Remove the need for project_id from API endpoints 2022-02-08 08:32:23 -08:00
monkey_patch_example
objects db: Add missing foreign keys, indexes to models 2022-02-20 19:05:46 +00:00
policies Update policies related to user visible extra specs 2021-09-15 14:47:00 -07:00
scheduler Tests: Fix missing novaclient context arg in test_host_filters 2022-03-01 10:50:03 -05:00
targets LVM: Added NVMe TCP support for the nvmet target 2021-05-18 12:01:15 +02:00
volume Merge "lightos - bugfix compression stats should be True" 2022-03-10 21:53:20 +00:00
windows smbfs: set VHD UUID using volume UUID 2021-02-18 09:54:58 +02:00
zonemanager Move require_driver_initialized / log_unsupp to volume_utils 2021-06-11 11:13:34 -04:00
__init__.py
cast_as_call.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
conf_fixture.py Remove the need for project_id from API endpoints 2022-02-08 08:32:23 -08:00
fake_cluster.py
fake_constants.py Default type overrides 2020-09-16 14:05:31 +00:00
fake_group.py
fake_group_snapshot.py
fake_notifier.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
fake_objects.py
fake_service.py
fake_snapshot.py Add context to cloning snapshots in remotefs driver 2019-07-10 10:41:15 +02:00
fake_utils.py Remove six of files under cinder/test/unit 2020-10-14 09:19:08 +08:00
fake_volume.py Expose volume_attachments in Volume OVO 2021-09-15 16:58:09 +02:00
policy.yaml Update policies related to user visible extra specs 2021-09-15 14:47:00 -07:00
test.py fixtures: Don't persist state in the Database fixture 2021-09-21 17:14:22 +01:00
test_api.py Remove six of files under cinder/test/unit 2020-10-14 09:19:08 +08:00
test_api_urlmap.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_cleanable_manager.py Fix sporadic cleanup unit test failure 2021-04-14 20:11:23 +02:00
test_cmd.py Merge "db: Vendor 'oslo_db.sqlalchemy.migration'" 2021-09-10 18:11:04 +00:00
test_context.py Add infrastructure for testing new RBAC policies 2021-08-31 15:41:17 -07:00
test_coordination.py Remove file locks once we delete a resource 2021-08-04 10:41:33 -04:00
test_db_api.py Fix: Race between attachment and volume deletion 2021-10-15 17:47:38 +02:00
test_db_worker_api.py Remove six of files under cinder/test/unit 2020-10-14 09:19:08 +08:00
test_evaluator.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_exception.py Remove six of files under cinder/test/unit 2020-10-14 09:19:08 +08:00
test_fixtures.py
test_hacking.py Use LOG.warning instead of deprecated LOG.warn 2022-02-09 08:29:02 +09:00
test_image_utils.py db: Remove 'db_driver' option 2021-08-27 15:13:21 +01:00
test_interface.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_manager.py Remove six of files under cinder/test/unit 2020-10-14 09:19:08 +08:00
test_paginate_query.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_policy.py Make sure we pass context objects directly to policy enforcement 2021-02-17 17:44:40 +00:00
test_qos_specs.py Remove six of files under cinder/test/unit 2020-10-14 09:19:08 +08:00
test_quota.py Merge "Fix quota usage duplicate entries" 2021-04-02 08:08:05 +00:00
test_quota_utils.py Modify/Move project validation methods to api_utils 2021-04-05 08:00:40 -04:00
test_rpc.py Clear OVO history and compatibility 2021-08-25 17:50:48 +02:00
test_service.py db: Remove 'db_driver' option 2021-08-27 15:13:21 +01:00
test_service_auth.py Remove unused config imports/objects 2021-09-15 10:14:36 -04:00
test_setup_profiler.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_ssh_utils.py Refactor some unit tests 2020-10-14 11:01:02 +00:00
test_test.py Handle oslo.messaging ping endpoint 2020-09-03 17:04:17 -05:00
test_test_utils.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_utils.py Remove file locks once we delete a resource 2021-08-04 10:41:33 -04:00
test_volume_cleanup.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
test_volume_configuration.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_glance_metadata.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_throttling.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_transfer.py Implement project personas for volume actions 2021-09-14 21:59:42 +00:00
test_volume_types.py Modify default/delete volume type logic 2020-08-19 02:07:15 +00:00
test_volume_types_extra_specs.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_utils.py db: Remove 'db' argument from various managers 2021-08-27 15:13:21 +01:00
utils.py Expose volume_attachments in Volume OVO 2021-09-15 16:58:09 +02:00