glance.tests.integration.legacy_functional package

Submodules

glance.tests.integration.legacy_functional.base module

class glance.tests.integration.legacy_functional.base.ApiTest(*args, **kwargs)[source]

Bases: glance.tests.utils.BaseTestCase

init()[source]
setUp()[source]
tearDown()[source]

glance.tests.integration.legacy_functional.test_v1_api module

class glance.tests.integration.legacy_functional.test_v1_api.TestApi(*args, **kwargs)[source]

Bases: glance.tests.integration.legacy_functional.base.ApiTest

test_delete_not_existing()[source]

We test the following:

0. GET /images/1 - Verify 404 1. DELETE /images/1 - Verify 404

test_duplicate_image_upload()[source]

Upload initial image, then attempt to upload duplicate image

test_filtered_images()[source]

Set up four test images and ensure each query param filter works

test_get_head_simple_post()[source]
test_limited_images()[source]

Ensure marker and limit query params work

test_mismatched_checksum()[source]

Test mismatched checksum.

test_mismatched_size()[source]

Test mismatched size.

test_ordered_images()[source]

Set up three test images and ensure each query param filter works

test_post_image_content_bad_container_format()[source]
test_post_image_content_bad_disk_format()[source]
test_put_image_content_bad_container_format()[source]
test_put_image_content_bad_disk_format()[source]
test_queued_process_flow()[source]

We test the process flow where a user registers an image with Glance but does not immediately upload an image file. Later, the user uploads an image file using a PUT operation. We track the changing of image status throughout this process.

0. GET /images - Verify no public images 1. POST /images with public image named Image1 with no location

attribute and no image data.
  • Verify 201 returned

2. GET /images - Verify one public image 3. HEAD image - Verify image now in queued status 4. PUT image with image data - Verify 200 returned 5. HEAD images - Verify image now in active status 6. GET /images - Verify one public image

test_traceback_not_consumed()[source]

A test that errors coming from the POST API do not get consumed and print the actual error message, and not something like <traceback object at 0x1918d40>

:see https://bugs.launchpad.net/glance/+bug/755912

test_v1_enabled()[source]
test_v1_not_enabled()[source]
test_zero_initial_size()[source]

A test to ensure that an image with size explicitly set to zero has status that immediately transitions to active.

class glance.tests.integration.legacy_functional.test_v1_api.TestApiWithFakeAuth(*args, **kwargs)[source]

Bases: glance.tests.integration.legacy_functional.base.ApiTest

test_image_visibility_to_different_users()[source]
test_ownership()[source]
test_property_protections()[source]
test_property_protections_special_chars()[source]

Module contents