volume.admin package¶
Submodules¶
volume.admin.test_backends_capabilities module¶
- class BackendsCapabilitiesAdminTestsJSON(*args, **kwargs)[source]¶
Bases:
BaseVolumeAdminTest
Test backends 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.
volume.admin.test_group_snapshots module¶
- 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
Create volume type “volume_type1”
Create group type “group_type1”
Create group “group1” with “group_type1” and “volume_type1”
Create volume “volume1” with “volume_type1” and “group1”
Create group snapshot “group_snapshot1” with “group1”
Check snapshot created from “volume1” reaches available status
Create group “group2” from “group_snapshot1”
Check the volumes belonging to “group2” reach available status
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
Create volume type “volume_type1”
Create group type “group_type1”
Create group “group1” with “group_type1” and “volume_type1”
Create 2 volumes “volume1” and “volume2” with “volume_type1” and “group1”
For each created volume, removing and then adding back to “group1”
Create group snapshot “group_snapshot1” with “group1”
Check snapshots created from “volume1” and “volume2” reach available status
Delete “group_snapshot1”
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
Create volume type “volume_type1”
Create group type “group_type1”
Create group “group1” with “group_type1” and “volume_type1”
Create volume “volume1” with “volume_type1” and “group1”
Create group snapshot “group_snapshot1” with “group1”
Check snapshot created from “volume1” reaches available status
Check the created group snapshot “group_snapshot1” is in the list of all group snapshots
Delete group snapshot “group_snapshot1”
- class GroupSnapshotsV319Test(*args, **kwargs)[source]¶
Bases:
BaseGroupSnapshotsTest
Test group snapshot with volume microversion greater than 3.18
volume.admin.test_group_type_specs module¶
volume.admin.test_group_types module¶
volume.admin.test_groups module¶
- class GroupsTest(*args, **kwargs)[source]¶
Bases:
BaseVolumeAdminTest
Tests of volume groups with microversion greater than 3.12
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
For each backend, create volume type with ‘volume_backend_name’ as extra spec key
Create volumes using the created volume types
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
For each backend, create volume type with ‘capabilities:volume_backend_name’ as extra spec key
Create volumes using the created volume types
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
Create volume type, with ‘volume_backend_name’ as extra spec key
Create volume using the created volume type
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
Create volume type, with ‘capabilities:volume_backend_name’ as extra spec key
Create volume using the created volume type
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 :
associate_qos
get_association_qos
disassociate_qos
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
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
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
volume.admin.test_user_messages module¶
volume.admin.test_volume_hosts module¶
volume.admin.test_volume_manage module¶
volume.admin.test_volume_pools module¶
volume.admin.test_volume_quota_classes module¶
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
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
volume.admin.test_volume_retype module¶
- 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
Create volume1 with volume_type1
Retype volume1 to volume_type2 with migration_policy=’on-demand’
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
Create volume1 from snapshot with volume_type1
Retype volume1 to volume_type2 with migration_policy=’on-demand’
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
Create volume1 with volume_type1
Retype volume1 to volume_type2 with migration_policy=’never’
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
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
volume.admin.test_volume_snapshot_quotas_negative module¶
- class VolumeSnapshotQuotasNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
BaseVolumeAdminTest
Negative tests of volume snapshot quotas
volume.admin.test_volume_type_access module¶
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
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
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.
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
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
volume.admin.test_volumes_backup module¶
- class VolumesBackupsAdminTest(*args, **kwargs)[source]¶
Bases:
BaseVolumeAdminTest
Test volume backups