compute.images package¶
Submodules¶
compute.images.test_image_metadata module¶
- class ImagesMetadataTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test image metadata with compute microversion less than 2.39
- test_delete_image_metadata_item()[source]¶
Test idempotent id: a013796c-ba37-4bb5-8602-d944511def14
Test deleting image metadata item
The metadata value/key pair should be deleted from the image.
- test_get_image_metadata_item()[source]¶
Test idempotent id: 4f5db52f-6685-4c75-b848-f4bb363f9aa6
Test getting image metadata item
The value for a specific metadata key should be returned.
- test_list_image_metadata()[source]¶
Test idempotent id: 37ec6edd-cf30-4c53-bd45-ae74db6b0531
Test listing image metadata
All metadata key/value pairs for an image should be returned.
- test_set_image_metadata()[source]¶
Test idempotent id: ece7befc-d3ce-42a4-b4be-c3067a418c29
Test setting image metadata
The metadata for the image should match the new values.
compute.images.test_image_metadata_negative module¶
- class ImagesMetadataNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Negative tests of image metadata
Negative tests of image metadata with compute microversion less than 2.39.
- test_delete_nonexistent_image_metadata_item()[source]¶
Test idempotent id: 848e157f-6bcf-4b2e-a5dd-5124025a8518
Test deleting metadata item of a non existence image should fail
- test_get_nonexistent_image_metadata_item()[source]¶
Test idempotent id: 41ae052c-6ee6-405c-985e-5712393a620d
Test getting metadata of a non existence image should fail
- test_list_nonexistent_image_metadata()[source]¶
Test idempotent id: 94069db2-792f-4fa8-8bd3-2271a6e0c095
Test listing metadata of a non existence image should fail
- test_set_nonexistent_image_metadata()[source]¶
Test idempotent id: dc64f2ce-77e8-45b0-88c8-e15041d08eaf
Test setting metadata of a non existence image should fail
compute.images.test_images module¶
- class ImagesTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test server images
- test_create_image_from_paused_server()[source]¶
Test idempotent id: 71bcb732-0261-11e7-9086-fa163e4fa634
Test creating server image from paused server
- test_create_image_from_stopped_server()[source]¶
Test idempotent id: aaacd1d0-55a2-4ce8-818a-b5439df8adc9
Test creating server image from stopped server
- test_create_image_from_suspended_server()[source]¶
Test idempotent id: 8ca07fec-0262-11e7-907e-fa163e4fa634
Test creating server image from suspended server
compute.images.test_images_negative module¶
- class ImagesDeleteNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
ImagesNegativeTestBase
Negative tests of server image
Negative tests of server image with compute microversion less than 2.36.
- test_delete_image_blank_id()[source]¶
Test idempotent id: e6e41425-af5c-4fe6-a4b5-7b7b963ffda5
Check trying to delete an image with blank id should fail
- test_delete_image_negative_image_id()[source]¶
Test idempotent id: 68e2c175-bd26-4407-ac0f-4ea9ce2139ea
Check trying to delete an image with negative id should fail
- test_delete_image_non_hex_string_id()[source]¶
Test idempotent id: 924540c3-f1f1-444c-8f58-718958b6724e
Check trying to delete an image with non hex id should fail
- test_delete_image_with_id_over_character_limit()[source]¶
Test idempotent id: b340030d-82cd-4066-a314-c72fb7c59277
Check trying to delete image with id over limit should fail
- class ImagesNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
ImagesNegativeTestBase
Negative tests of server image
- test_create_image_from_deleted_server()[source]¶
Test idempotent id: 6cd5a89d-5b47-46a7-93bc-3916f0d84973
Check server image should not be created if the server is removed
- test_create_image_from_invalid_server()[source]¶
Test idempotent id: 82c5b0c4-9dbd-463c-872b-20c4755aae7f
Check server image should not be created with invalid server id
compute.images.test_images_oneserver module¶
compute.images.test_images_oneserver_negative module¶
- class ImagesOneServerNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Negative tests of server images
- test_create_image_specify_invalid_metadata()[source]¶
Test idempotent id: 55d1d38c-dd66-4933-9c8e-7d92aeb60ddc
Test creating server image with invalid metadata should fail
- test_create_image_specify_metadata_over_limits()[source]¶
Test idempotent id: 3d24d11f-5366-4536-bd28-cff32b748eca
Test creating server image with metadata over 255 should fail
- test_create_image_specify_name_over_character_limit()[source]¶
Test idempotent id: 084f0cbc-500a-4963-8a4e-312905862581
Test creating server image with image name over 255 should fail
compute.images.test_list_image_filters module¶
- class ListImageFiltersTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test listing server images with compute microversion less than 2.36
- test_list_images_filter_by_changes_since()[source]¶
Test idempotent id: 18bac3ae-da27-436c-92a9-b22474d13aab
Test listing images filtered by changes-since
The list of images should contain only images updated since the provided changes-since value.
- test_list_images_filter_by_name()[source]¶
Test idempotent id: 33163b73-79f5-4d07-a7ea-9213bcc468ff
Test listing server images filtered by image name
The list of images should contain only images with the provided image name.
- test_list_images_filter_by_server_id()[source]¶
Test idempotent id: 9f238683-c763-45aa-b848-232ec3ce3105
Test listing images filtered by server id
The list of images should contain only images with the provided server id.
- test_list_images_filter_by_server_ref()[source]¶
Test idempotent id: 05a377b8-28cf-4734-a1e6-2ab5c38bf606
Test listing images filtered by server link href
The list of images should contain only images with the provided server link href.
- test_list_images_filter_by_status()[source]¶
Test idempotent id: a3f5b513-aeb3-42a9-b18e-f091ef73254d
Test listing server images filtered by image status
The list of images should contain only images with the provided image status.
- test_list_images_filter_by_type()[source]¶
Test idempotent id: e3356918-4d3e-4756-81d5-abc4524ba29f
Test listing images filtered by image type
The list of images should contain only images with the provided image type.
- test_list_images_limit_results()[source]¶
Test idempotent id: 3a484ca9-67ba-451e-b494-7fcf28d32d62
Test listing images with limited count
If we use limit=1 when listing images, then only 1 image should be returned.
- test_list_images_with_detail_filter_by_changes_since()[source]¶
Test idempotent id: 7d439e18-ac2e-4827-b049-7e18004712c4
Test listing images details filtered by changes-since
The list of images should contain only images updated since the provided changes-since value.
- test_list_images_with_detail_filter_by_name()[source]¶
Test idempotent id: 644ea267-9bd9-4f3b-af9f-dffa02396a17
Test listing server images details filtered by image name
The list of images should contain only images with the provided image name.
- test_list_images_with_detail_filter_by_server_ref()[source]¶
Test idempotent id: 8c78f822-203b-4bf6-8bba-56ebd551cf84
Test listing images details filtered by server link href
The list of images should contain only images with the provided server link href.
- test_list_images_with_detail_filter_by_status()[source]¶
Test idempotent id: 9b0ea018-6185-4f71-948a-a123a107988e
Test listing server images details filtered by image status
The list of images should contain only images with the provided image status.
compute.images.test_list_image_filters_negative module¶
compute.images.test_list_images module¶
- class ListImagesTestJSON(*args, **kwargs)[source]¶
Bases:
BaseV2ComputeTest
Test listing server images with compute microversion less than 2.36
- test_get_image()[source]¶
Test idempotent id: 490d0898-e12a-463f-aef0-c50156b9f789
Test getting the correct details for a single server image