volume.admin package

Submodules

volume.admin.test_backends_capabilities module

class BackendsCapabilitiesAdminTestsJSON(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test backends capabilities

test_compare_volume_stats_values()[source]

Test idempotent id: a9035743-d46a-47c5-9cb7-3c80ea16dea0

Test comparing volume stats values

Compare volume stats between show_backend_capabilities and show_pools.

test_get_capabilities_backend()[source]

Test idempotent id: 3750af44-5ea2-4cd4-bc3e-56e7e6caf854

Test getting backend capabilities

volume.admin.test_encrypted_volumes_extend module

class EncryptedVolumesExtendAttachedTest(*args, **kwargs)[source]

Bases: BaseVolumesExtendAttachedTest, BaseVolumeAdminTest

Tests extending the size of an attached encrypted volume.

test_extend_attached_encrypted_volume_luksv1()[source]

Test idempotent id: e93243ec-7c37-4b5b-a099-ebf052c13216

LUKs v1 decrypts and extends through libvirt.

test_extend_attached_encrypted_volume_luksv2()[source]

Test idempotent id: 381a2a3a-b2f4-4631-a910-720881f2cc2f

LUKs v2 decrypts and extends through os-brick.

volume.admin.test_group_snapshots module

class BaseGroupSnapshotsTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

class GroupSnapshotsTest(*args, **kwargs)[source]

Bases: BaseGroupSnapshotsTest

Test group snapshot

test_create_group_from_group_snapshot()[source]

Test idempotent id: eff52c70-efc7-45ed-b47a-4ad675d09b81

Test creating group from group snapshot

  1. Create volume type “volume_type1”

  2. Create group type “group_type1”

  3. Create group “group1” with “group_type1” and “volume_type1”

  4. Create volume “volume1” with “volume_type1” and “group1”

  5. Create group snapshot “group_snapshot1” with “group1”

  6. Check snapshot created from “volume1” reaches available status

  7. Create group “group2” from “group_snapshot1”

  8. Check the volumes belonging to “group2” reach available status

  9. Check “group2” reaches available status

test_delete_group_snapshots_following_updated_volumes()[source]

Test idempotent id: 7d7fc000-0b4c-4376-a372-544116d2e127

Test deleting group snapshot following updated volumes

  1. Create volume type “volume_type1”

  2. Create group type “group_type1”

  3. Create group “group1” with “group_type1” and “volume_type1”

  4. Create 2 volumes “volume1” and “volume2” with “volume_type1” and “group1”

  5. For each created volume, removing and then adding back to “group1”

  6. Create group snapshot “group_snapshot1” with “group1”

  7. Check snapshots created from “volume1” and “volume2” reach available status

  8. Delete “group_snapshot1”

  9. Check snapshots created from “volume1” and “volume2” are deleted

test_group_snapshot_create_show_list_delete()[source]

Test idempotent id: 1298e537-f1f0-47a3-a1dd-8adec8168897

Test create/show/list/delete group snapshot

  1. Create volume type “volume_type1”

  2. Create group type “group_type1”

  3. Create group “group1” with “group_type1” and “volume_type1”

  4. Create volume “volume1” with “volume_type1” and “group1”

  5. Create group snapshot “group_snapshot1” with “group1”

  6. Check snapshot created from “volume1” reaches available status

  7. Check the created group snapshot “group_snapshot1” is in the list of all group snapshots

  8. Delete group snapshot “group_snapshot1”

class GroupSnapshotsV319Test(*args, **kwargs)[source]

Bases: BaseGroupSnapshotsTest

Test group snapshot with volume microversion greater than 3.18

test_reset_group_snapshot_status()[source]

Test idempotent id: 3b42c9b9-c984-4444-816e-ca2e1ed30b40

Test resetting group snapshot status to creating/available/error

volume.admin.test_group_type_specs module

class GroupTypeSpecsTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test group type specs

test_group_type_specs_create_show_update_list_delete()[source]

Test idempotent id: bb4e30d0-de6e-4f4d-866c-dcc48d023b4e

Test create/show/update/list/delete group type specs

volume.admin.test_group_types module

class GroupTypesTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test group types

test_group_type_create_list_update_show_delete()[source]

Test idempotent id: dd71e5f9-393e-4d4f-90e9-fa1b8d278864

Test create/list/update/show/delete group type

test_group_type_list_by_optional_params()[source]

Test idempotent id: 3d5e5cec-72b4-4511-b135-7cc2b7a053ae

Test list group type sort/public

volume.admin.test_groups module

class GroupsTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Tests of volume groups with microversion greater than 3.12

test_group_create_show_list_delete()[source]

Test idempotent id: 4b111d28-b73d-4908-9bd2-03dc2992e4d4

Test creating, showing, listing and deleting of volume group

test_group_update()[source]

Test idempotent id: 4a8a6fd2-8b3b-4641-8f54-6a6f99320006

Test updating volume group

class GroupsV314Test(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Tests of volume groups with microversion greater than 3.13

test_create_group_from_group()[source]

Test idempotent id: 2424af8c-7851-4888-986a-794b10c3210e

Test creating volume group from volume group

class GroupsV320Test(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Tests of volume groups with microversion greater than 3.19

test_reset_group_status()[source]

Test idempotent id: b20c696b-0cbc-49a5-8b3a-b1fb9338f45c

Test resetting volume group status to creating/available/error

volume.admin.test_multi_backend module

class VolumeMultiBackendTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test volume multi backends

test_backend_name_distinction()[source]

Test idempotent id: 46435ab1-a0af-4401-8373-f14e66b0dd58

Test volume backend distinction when type is without prefix

  1. For each backend, create volume type with ‘volume_backend_name’ as extra spec key

  2. Create volumes using the created volume types

  3. Check ‘os-vol-host-attr:host’ of each created volume is different.

test_backend_name_distinction_with_prefix()[source]

Test idempotent id: 4236305b-b65a-4bfc-a9d2-69cb5b2bf2ed

Test volume backend distinction when type is with prefix

  1. For each backend, create volume type with ‘capabilities:volume_backend_name’ as extra spec key

  2. Create volumes using the created volume types

  3. Check ‘os-vol-host-attr:host’ of each created volume is different.

test_backend_name_reporting()[source]

Test idempotent id: c1a41f3f-9dad-493e-9f09-3ff197d477cc

Test backend name reporting for volume when type is without prefix

  1. Create volume type, with ‘volume_backend_name’ as extra spec key

  2. Create volume using the created volume type

  3. Check ‘os-vol-host-attr:host’ of the volume info, the value should contain ‘@’ character, like ‘cinder@CloveStorage#tecs_backend’

test_backend_name_reporting_with_prefix()[source]

Test idempotent id: f38e647f-ab42-4a31-a2e7-ca86a6485215

Test backend name reporting for volume when type is with prefix

  1. Create volume type, with ‘capabilities:volume_backend_name’ as extra spec key

  2. Create volume using the created volume type

  3. Check ‘os-vol-host-attr:host’ of the volume info, the value should contain ‘@’ character, like ‘cinder@CloveStorage#tecs_backend’

volume.admin.test_qos module

class QosSpecsTestJSON(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test the Cinder QoS-specs.

Tests for create, list, delete, show, associate, disassociate, set/unset key APIs.

test_associate_disassociate_qos()[source]

Test idempotent id: 1dd93c76-6420-485d-a771-874044c416ac

Test the following operations :

  1. associate_qos

  2. get_association_qos

  3. disassociate_qos

  4. disassociate_all_qos

test_create_delete_qos_with_back_end_consumer()[source]

Test idempotent id: b115cded-8f58-4ee4-aab5-9192cfada08f

Tests the creation and deletion of QoS specs

With consumer as back-end

test_create_delete_qos_with_both_consumer()[source]

Test idempotent id: f88d65eb-ea0d-487d-af8d-71f4011575a4

Tests the creation and deletion of QoS specs

With consumer as both front end and back end

test_create_delete_qos_with_front_end_consumer()[source]

Test idempotent id: 7e15f883-4bef-49a9-95eb-f94209a1ced1

Tests the creation and deletion of QoS specs

With consumer as front end

test_get_qos()[source]

Test idempotent id: 7aa214cc-ac1a-4397-931f-3bb2e83bb0fd

Tests the detail of a given qos-specs

test_list_qos()[source]

Test idempotent id: 75e04226-bcf7-4595-a34b-fdf0736f38fc

Tests the list of all qos-specs

test_set_unset_qos_key()[source]

Test idempotent id: ed00fd85-4494-45f2-8ceb-9e2048919aed

Test the addition of a specs key to qos-specs

volume.admin.test_snapshot_manage module

class SnapshotManageAdminTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Unmanage & manage snapshots

This feature provides the ability to import/export volume snapshot from one Cinder to another and to import snapshots that have not been managed by Cinder from a storage back end to Cinder

test_snapshot_manage_with_attached_volume()[source]

Test idempotent id: 7c735385-e953-4198-8534-68137f72dbdc

Test manage a snapshot with an attached volume.

The case validates manage snapshot operation while the parent volume is attached to an instance.

test_unmanage_manage_snapshot()[source]

Test idempotent id: 0132f42d-0147-4b45-8501-cc504bbf7810

volume.admin.test_snapshots_actions module

class SnapshotsActionsTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test volume snapshot actions

test_reset_snapshot_status()[source]

Test idempotent id: 3e13ca2f-48ea-49f3-ae1a-488e9180d535

Test resetting snapshot status to creating

test_snapshot_force_delete_when_snapshot_is_creating()[source]

Test idempotent id: 05f711b6-e629-4895-8103-7ca069f2073a

Test force delete when status of snapshot is creating

test_snapshot_force_delete_when_snapshot_is_deleting()[source]

Test idempotent id: 92ce8597-b992-43a1-8868-6316b22a969e

Test force delete when status of snapshot is deleting

test_snapshot_force_delete_when_snapshot_is_error()[source]

Test idempotent id: 645a4a67-a1eb-4e8e-a547-600abac1525d

Test force delete when status of snapshot is error

test_snapshot_force_delete_when_snapshot_is_error_deleting()[source]

Test idempotent id: bf89080f-8129-465e-9327-b2f922666ba5

Test force delete when status of snapshot is error_deleting

test_update_snapshot_status()[source]

Test idempotent id: 41288afd-d463-485e-8f6e-4eea159413eb

Test updating snapshot

Update snapshot status to ‘error’ and progress to ‘80%’.

volume.admin.test_user_messages module

class UserMessagesTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test volume messages with microversion greater than 3.2

test_delete_message()[source]

Test idempotent id: c6eb6901-cdcc-490f-b735-4fe251842aed

Test deleting volume messages

test_list_show_messages()[source]

Test idempotent id: 50f29e6e-f363-42e1-8ad1-f67ae7fd4d5a

Test listing and showing volume messages

volume.admin.test_volume_hosts module

class VolumeHostsAdminTestsJSON(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test fetching volume hosts info by admin users

test_list_hosts()[source]

Test idempotent id: d5f3efa2-6684-4190-9ced-1c2f526352ad

Test listing volume hosts

test_show_host()[source]

Test idempotent id: 21168d57-b373-4b71-a3ac-f2c88f0c5d31

Test getting volume host details

volume.admin.test_volume_manage module

class VolumeManageAdminTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test volume manage by admin users

test_unmanage_manage_volume()[source]

Test idempotent id: 70076c71-0ce1-4208-a8ff-36a66e65cc1e

Test unmanaging and managing volume

volume.admin.test_volume_pools module

class VolumePoolsAdminTestsJSON(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test getting volume pools by admin users

test_get_pools_with_details()[source]

Test idempotent id: d4bb61f7-762d-4437-b8a4-5785759a0ced

Test getting volume pools with detail

test_get_pools_without_details()[source]

Test idempotent id: 0248a46c-e226-4933-be10-ad6fca8227e7

Test getting volume pools without detail

volume.admin.test_volume_quota_classes module

class VolumeQuotaClassesTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test volume quota classes

test_show_default_quota()[source]

Test idempotent id: abb9198e-67d0-4b09-859f-4f4a1418f176

Test showing default volume quota class set

test_update_default_quota()[source]

Test idempotent id: a7644c63-2669-467a-b00e-452dd5c5397b

Test updating default volume quota class set

Check current project and new project’s default quota are updated to the provided one.

volume.admin.test_volume_quotas module

class VolumeQuotasAdminTestJSON(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test volume quotas with admin privilege

test_delete_quota()[source]

Test idempotent id: 874b35a9-51f1-4258-bec5-cd561b6690d3

Test admin can delete the volume quota set for a project

test_list_default_quotas()[source]

Test idempotent id: 2be020a2-5fdd-423d-8d35-a7ffbc36e9f7

Test showing volume default quota set

test_list_quotas()[source]

Test idempotent id: 59eada70-403c-4cef-a2a3-a8ce2f1b07a0

Test showing volume quota set

test_quota_usage()[source]

Test idempotent id: ae8b6091-48ad-4bfa-a188-bbf5cc02115f

Test volume quota usage is updated after creating volume

test_quota_usage_after_volume_transfer()[source]

Test idempotent id: 8911036f-9d54-4720-80cc-a1c9796a8805

Test volume quota usage is updated after transferring volume

test_show_quota_usage()[source]

Test idempotent id: 18c51ae9-cb03-48fc-b234-14a19374dbed

Test showing volume quota usage

test_update_all_quota_resources_for_tenant()[source]

Test idempotent id: 3d45c99e-cc42-4424-a56e-5cbd212b63a6

Test admin can update all the volume quota limits for a project

volume.admin.test_volume_quotas_negative module

class VolumeQuotasNegativeTestJSON(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Negative tests of volume quotas

test_quota_volume_gigabytes()[source]

Test idempotent id: 2dc27eee-8659-4298-b900-169d71a91374

Creating volume with size larger than allowed quota will fail

test_quota_volumes()[source]

Test idempotent id: bf544854-d62a-47f2-a681-90f7a47d86b6

Creating more volume than allowed quota will fail

test_volume_extend_gigabytes_quota_deviation()[source]

Test idempotent id: d321dc21-d8c6-401f-95fe-49f4845f1a6d

Extending volume with size larger than allowed quota will fail

volume.admin.test_volume_retype module

class VolumeRetypeTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

class VolumeRetypeWithMigrationTest(*args, **kwargs)[source]

Bases: VolumeRetypeTest

Test volume retype with migration

test_available_volume_retype_with_migration()[source]

Test idempotent id: a1a41f3f-9dad-493e-9f09-3ff197d477cd

Test volume retype with migration

  1. Create volume1 with volume_type1

  2. Retype volume1 to volume_type2 with migration_policy=’on-demand’

  3. Check volume1’s volume_type is changed to volume_type2, and ‘os-vol-host-attr:host’ in the volume info is changed.

test_volume_from_snapshot_retype_with_migration()[source]

Test idempotent id: d0d9554f-e7a5-4104-8973-f35b27ccb60d

Test volume created from snapshot retype with migration

  1. Create volume1 from snapshot with volume_type1

  2. Retype volume1 to volume_type2 with migration_policy=’on-demand’

  3. Check volume1’s volume_type is changed to volume_type2, and ‘os-vol-host-attr:host’ in the volume info is changed.

class VolumeRetypeWithoutMigrationTest(*args, **kwargs)[source]

Bases: VolumeRetypeTest

Test volume retype without migration

test_available_volume_retype()[source]

Test idempotent id: b90412ee-465d-46e9-b249-ec84a47d5f25

Test volume retype without migration

  1. Create volume1 with volume_type1

  2. Retype volume1 to volume_type2 with migration_policy=’never’

  3. Check volume1’s volume_type is changed to volume_type2, and ‘os-vol-host-attr:host’ in the volume info is not changed.

volume.admin.test_volume_services module

class VolumesServicesTestJSON(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Tests Volume Services API.

volume service list requires admin privileges.

test_get_service_by_host_name()[source]

Test idempotent id: 178710e4-7596-4e08-9333-745cb8bc4f8d

Test getting volume service by service host name

test_get_service_by_service_and_host_name()[source]

Test idempotent id: ffa6167c-4497-4944-a464-226bbdb53908

Test getting volume service by binary name and host name

test_get_service_by_service_binary_name()[source]

Test idempotent id: 63a3e1ca-37ee-4983-826d-83276a370d25

Test getting volume service by binary name

test_get_service_by_volume_host_name()[source]

Test idempotent id: 67ec6902-f91d-4dec-91fa-338523208bbc

Test getting volume service by volume host name

test_list_services()[source]

Test idempotent id: e0218299-0a59-4f43-8b2b-f1c035b3d26d

Test listing volume services

volume.admin.test_volume_services_negative module

class VolumeServicesNegativeTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Negative tests of volume services

test_disable_log_reason_with_no_reason()[source]

Test idempotent id: 77767b36-5e8f-4c68-a0b5-2308cc21ec64

Test disabling volume service with none reason should fail

test_disable_service_with_invalid_binary()[source]

Test idempotent id: c571f179-c6e6-4c50-a0ab-368b628a8ac1

Test disabling volume service with invalid binary should fail

test_enable_service_with_invalid_host()[source]

Test idempotent id: 3246ce65-ba70-4159-aa3b-082c28e4b484

Test enabling volume service with invalid host should fail

test_freeze_host_with_invalid_host()[source]

Test idempotent id: 712bfab8-1f44-4eb5-a632-fa70bf78f05e

Test freezing volume service with invalid host should fail

test_thaw_host_with_invalid_host()[source]

Test idempotent id: 7c6287c9-d655-47e1-9a11-76f6657a6dce

Test thawing volume service with invalid host should fail

volume.admin.test_volume_snapshot_quotas_negative module

class VolumeSnapshotQuotasNegativeTestJSON(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Negative tests of volume snapshot quotas

test_quota_volume_gigabytes_snapshots()[source]

Test idempotent id: c99a1ca9-6cdf-498d-9fdf-25832babef27

Test creating snapshot exceeding gigabytes quota should fail

test_quota_volume_snapshots()[source]

Test idempotent id: 02bbf63f-6c05-4357-9d98-2926a94064ff

Test creating snapshot exceeding snapshots quota should fail

volume.admin.test_volume_type_access module

class VolumeTypesAccessTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test volume type access

test_volume_type_access_add()[source]

Test idempotent id: d4dd0027-835f-4554-a6e5-50903fb79184

Test adding volume type access for non-admin project

test_volume_type_access_list()[source]

Test idempotent id: 5220eb28-a435-43ce-baaf-ed46f0e95159

Test listing volume type access

volume.admin.test_volume_types module

class VolumeTypesTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test volume types

test_volume_crud_with_volume_type_and_extra_specs()[source]

Test idempotent id: c03cc62c-f4e9-4623-91ec-64ce2f9c1260

Test create/update/get/delete volume with volume_type

test_volume_type_create_get_delete()[source]

Test idempotent id: 4e955c3b-49db-4515-9590-0c99f8e471ad

Test create/get/delete volume type

test_volume_type_encryption_create_get_update_delete()[source]

Test idempotent id: 7830abd0-ff99-4793-a265-405684a54d46

Test create/get/update/delete volume encryption type

test_volume_type_list()[source]

Test idempotent id: 9d9b28e3-1b2e-4483-a2cc-24aa0ea1de54

Test listing volume types

test_volume_type_update()[source]

Test idempotent id: cf9f07c6-db9e-4462-a243-5933ad65e9c8

Test updating volume type details

volume.admin.test_volume_types_extra_specs module

class VolumeTypesExtraSpecsTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test volume type extra specs

test_volume_type_extra_spec_create_get_delete()[source]

Test idempotent id: d4772798-601f-408a-b2a5-29e8a59d1220

Test Create/Get/Delete volume type extra specs

test_volume_type_extra_specs_list()[source]

Test idempotent id: b42923e9-0452-4945-be5b-d362ae533e60

Test listing volume type extra specs

test_volume_type_extra_specs_update()[source]

Test idempotent id: 0806db36-b4a0-47a1-b6f3-c2e7f194d017

Test updating volume type extra specs

volume.admin.test_volume_types_extra_specs_negative module

class ExtraSpecsNegativeTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Negative tests of volume type extra specs

test_create_invalid_body()[source]

Test idempotent id: bc772c71-1ed4-4716-b945-8b5ed0f15e87

Test creating volume type extra spec with invalid POST body

Creating volume type extra spec with invalid POST body should fail.

test_create_none_body()[source]

Test idempotent id: c821bdc8-43a4-4bf4-86c8-82f3858d5f7d

Test creating volume type extra spec with none POST body

Creating volume type extra spec with none POST body should fail.

test_create_nonexistent_type_id()[source]

Test idempotent id: 49d5472c-a53d-4eab-a4d3-450c4db1c545

Test creating volume type extra specs for non existent volume type

Creating volume type extra specs for non existent volume type should fail.

test_delete_nonexistent_volume_type_id()[source]

Test idempotent id: 031cda8b-7d23-4246-8bf6-bbe73fd67074

Test deleting volume type extra spec for non existent volume type

Deleting volume type extra spec for non existent volume type should fail.

test_get_nonexistent_extra_spec_name()[source]

Test idempotent id: c881797d-12ff-4f1a-b09d-9f6212159753

Test getting volume type extra spec for non existent spec name

Getting volume type extra spec for non existent extra spec name should fail.

test_get_nonexistent_volume_type_id()[source]

Test idempotent id: 9f402cbd-1838-4eb4-9554-126a6b1908c9

Test getting volume type extra spec for non existent volume type

Getting volume type extra spec for non existent volume type should fail.

test_list_nonexistent_volume_type_id()[source]

Test idempotent id: dee5cf0c-cdd6-4353-b70c-e847050d71fb

Test listing volume type extra spec for non existent volume type

Listing volume type extra spec for non existent volume type should fail.

test_update_multiple_extra_spec()[source]

Test idempotent id: a77dfda2-9100-448e-9076-ed1711f4bdfc

Test updating multiple volume type extra specs should fail

test_update_no_body()[source]

Test idempotent id: 08961d20-5cbb-4910-ac0f-89ad6dbb2da1

Test updating volume type extra specs with no body should fail

test_update_none_extra_spec_id()[source]

Test idempotent id: 9bf7a657-b011-4aec-866d-81c496fbe5c8

Test updating volume type extra specs without name

Updating volume type extra specs without extra spec name should fail.

test_update_nonexistent_extra_spec_id()[source]

Test idempotent id: 25e5a0ee-89b3-4c53-8310-236f76c75365

Test updating volume type extra specs with non existent name

Updating volume type extra specs with non existent extra spec name should fail.

test_update_nonexistent_type_id()[source]

Test idempotent id: 474090d2-0824-eb3b-9335-f506b4aa49d8

Test update volume type extra specs for non existent volume type

Update volume type extra specs for non existent volume type should fail.

volume.admin.test_volume_types_negative module

class VolumeTypesNegativeTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Negative tests of volume type

test_create_volume_type_encryption_nonexistent_type_id()[source]

Test idempotent id: a5924b5f-b6c1-49ba-994c-b4af55d26e52

Test create encryption with nonexistent type id will fail

test_create_volume_with_private_volume_type()[source]

Test idempotent id: 8c09f849-f225-4d78-ba87-bffd9a5e0c6f

Test creating volume with private volume type will fail

test_create_with_empty_name()[source]

Test idempotent id: 878b4e57-faa2-4659-b0d1-ce740a06ae81

Test creating volume type with an empty name will fail

test_create_with_repeated_name()[source]

Test idempotent id: 969b10c7-3d77-4e1b-a4f2-2d265980f7e5

Test creating volume type with a repeated name will fail

test_delete_nonexistent_type_id()[source]

Test idempotent id: 6b3926d2-7d73-4896-bc3d-e42dfd11a9f6

Test deleting volume type with nonexistent type id will fail

test_get_nonexistent_type_id()[source]

Test idempotent id: 994610d6-0476-4018-a644-a2602ef5d4aa

Test getting volume type with nonexistent type id will fail

volume.admin.test_volumes_actions module

class VolumesActionsTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test volume actions

test_force_detach_volume()[source]

Test idempotent id: d38285d9-929d-478f-96a5-00e66a115b81

Test force detaching volume when its status is error

test_volume_force_delete_when_volume_is_attaching()[source]

Test idempotent id: db8d607a-aa2e-4beb-b51d-d4005c232011

Test force deleting volume when its status is attaching

test_volume_force_delete_when_volume_is_creating()[source]

Test idempotent id: 21737d5a-92f2-46d7-b009-a0cc0ee7a570

Test force deleting volume when its status is creating

test_volume_force_delete_when_volume_is_error()[source]

Test idempotent id: 3e33a8a8-afd4-4d64-a86b-c27a185c5a4a

Test force deleting volume when its status is error

test_volume_force_delete_when_volume_is_maintenance()[source]

Test idempotent id: b957cabd-1486-4e21-90cf-a9ed3c39dfb2

Test force deleting volume when its status is maintenance

test_volume_reset_status()[source]

Test idempotent id: d063f96e-a2e0-4f34-8b8a-395c42de1845

Test resetting volume status

Reset volume status to available->error->available->maintenance

volume.admin.test_volumes_backup module

class VolumesBackupsAdminTest(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test volume backups

test_volume_backup_export_import()[source]

Test idempotent id: a99c54a1-dd80-4724-8a13-13bf58d4068d

Test backup export import functionality.

Cinder allows exporting DB backup information through its API so it can be imported back in case of a DB loss.

test_volume_backup_reset_status()[source]

Test idempotent id: 47a35425-a891-4e13-961c-c45deea21e94

Test resetting volume backup status to error

volume.admin.test_volumes_list module

class VolumesListAdminTestJSON(*args, **kwargs)[source]

Bases: BaseVolumeAdminTest

Test listing volumes with admin privilege

test_volume_list_param_tenant()[source]

Test idempotent id: 5866286f-3290-4cfd-a414-088aa6cdc469

Test admin can list volumes belonging to specified project

Module contents