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.

test_set_image_metadata_item()[source]

Test idempotent id: f2de776a-4778-4d90-a5da-aae63aee64ae

Test setting image metadata item

The value provided for the given meta item should be set for the image.

test_update_image_metadata()[source]

Test idempotent id: 7b491c11-a9d5-40fe-a696-7f7e03d3fea2

Test updating image medata

The metadata for the image should match the updated 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

test_set_nonexistent_image_metadata_item()[source]

Test idempotent id: 2154fd03-ab54-457c-8874-e6e3eb56e9cf

Test setting metadata item of a non existence image should fail

test_update_nonexistent_image_metadata()[source]

Test idempotent id: a403ef9e-9f95-427c-b70a-3ce3388796f1

Test updating 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

test_create_server_from_snapshot()[source]

Test idempotent id: f3cac456-e3fe-4183-a7a7-a59f7f017088

test_delete_saving_image()[source]

Test idempotent id: aa06b52b-2db5-4807-b218-9441f75d74e3

Test deleting server image while it is in ‘SAVING’ state

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

test_delete_image_with_invalid_image_id()[source]

Test idempotent id: 381acb65-785a-4942-94ce-d8f8c84f1f0f

Check an image should not be deleted with invalid image id

test_delete_non_existent_image()[source]

Test idempotent id: 137aef61-39f7-44a1-8ddf-0adf82511701

Check trying to delete a non-existent image should fail

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

Bases: BaseV2ComputeTest

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

test_create_image_specify_uuid_35_characters_or_less()[source]

Test idempotent id: ec176029-73dc-4037-8d72-2e4ff60cf538

Check server image should not be created for invalid server id

Return an error if server id passed is 35 characters or less

test_create_image_specify_uuid_37_characters_or_more()[source]

Test idempotent id: 36741560-510e-4cc2-8641-55fe4dfb2437

Check server image should not be created for invalid server id

Return an error if sever id passed is 37 characters or more

compute.images.test_images_oneserver module

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

Bases: BaseV2ComputeTest

Test server images API

test_create_delete_image()[source]

Test idempotent id: 3731d080-d4c5-4872-b41a-64d0d0021314

Test create/delete server image

test_create_image_specify_multibyte_character_image_name()[source]

Test idempotent id: 3b7c6fe4-dfe7-477c-9243-b06359db51e6

Test creating server image with multibyte character image name

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

test_create_second_image_when_first_image_is_being_saved()[source]

Test idempotent id: 0460efcf-ee88-4f94-acef-1bf658695456

Test creating another server image when first image is being saved

Creating another server image when first image is being saved is not allowed.

test_delete_image_that_is_not_yet_active()[source]

Test idempotent id: 0894954d-2db2-4195-a45b-ffec0bc0187e

Test deleting a non-active server image 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.

test_list_images_with_detail_filter_by_type()[source]

Test idempotent id: 888c0cc0-7223-43c5-9db0-b125fd0a393b

Test listing images details filtered by image type

The list of images should contain only images with the provided image type.

test_list_images_with_detail_limit_results()[source]

Test idempotent id: ba2fa9a9-b672-47cc-b354-3b4c0600e2cb

Test listing images details with limited count

If we use limit=1 when listing images with full details, then only 1 image should be returned.

compute.images.test_list_image_filters_negative module

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

Bases: BaseV2ComputeTest

Negative tests of listing images using compute images API

Negative tests of listing images using compute images API with microversion less than 2.36.

test_get_nonexistent_image()[source]

Test idempotent id: 391b0440-432c-4d4b-b5da-c5096aa247eb

Test getting a non existent image should fail

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

test_list_images()[source]

Test idempotent id: fd51b7f4-d4a3-4331-9885-866658112a6f

Test listing server images

The list of all images should contain the image

test_list_images_with_detail()[source]

Test idempotent id: 9f94cb6b-7f10-48c5-b911-a0b84d7d4cd6

Test listing server images with detail

Detailed list of all images should contain the expected images

Module contents