Tests of the new image services, both as a service layer,
and as a WSGI layer
-
class nova.tests.api.openstack.test_images.GlanceImageServiceTest(*args, **kwargs)
Bases: nova.tests.api.openstack.test_images._BaseImageServiceTests
Tests the Glance image service, in particular that metadata translation
works properly.
At a high level, the translations involved are:
- Glance -> ImageService - This is needed so we can support
multple ImageServices (Glance, Local, etc)
- ImageService -> API - This is needed so we can support multple
APIs (OpenStack, EC2)
-
setUp()
-
tearDown()
-
test_create_with_instance_id()
Ensure instance_id is persisted as an image-property
-
test_create_without_instance_id()
Ensure we can create an image without having to specify an
instance_id. Public images are an example of an image not tied to an
instance.
-
test_detail_limit()
-
test_detail_marker()
-
test_detail_marker_and_limit()
-
test_index_default_limit()
-
test_index_limit()
-
test_index_marker()
-
test_index_marker_and_limit()
-
class nova.tests.api.openstack.test_images.ImageControllerWithGlanceServiceTest(methodName='runTest')
Bases: nova.test.TestCase
Test of the OpenStack API /images application controller w/Glance.
-
setUp()
Run before each test.
-
tearDown()
Run after each test.
-
test_create_image()
-
test_create_image_no_server_id()
-
test_create_image_snapshots_disabled()
-
test_create_snapshot_no_name()
Name is required for snapshots
-
test_get_image()
-
test_get_image_404_json()
-
test_get_image_404_v1_1_json()
-
test_get_image_404_v1_1_xml()
-
test_get_image_404_xml()
-
test_get_image_details()
-
test_get_image_details_v1_1()
-
test_get_image_found()
-
test_get_image_index()
-
test_get_image_index_v1_1()
-
test_get_image_non_existent()
-
test_get_image_not_owned()
We should return a 404 if we request an image that doesn’t belong
to us
-
test_get_image_v1_1()
-
test_get_image_xml()
-
test_get_image_xml_no_name()
-
test_image_detail_filter_changes_since()
-
test_image_detail_filter_not_supported()
-
test_image_detail_filter_server()
-
test_image_detail_filter_with_name()
-
test_image_detail_filter_with_property()
-
test_image_detail_filter_with_status()
-
test_image_detail_filter_with_type()
-
test_image_detail_no_filters()
-
test_image_filter_changes_since()
-
test_image_filter_not_supported()
-
test_image_filter_server()
-
test_image_filter_with_name()
-
test_image_filter_with_property()
-
test_image_filter_with_status()
-
test_image_filter_with_type()
-
test_image_no_filters()
-
class nova.tests.api.openstack.test_images.ImageXMLSerializationTest(methodName='runTest')
Bases: nova.test.TestCase
-
test_detail()
-
test_index()
-
test_index_zero_images()
-
test_show()
-
test_show_image_no_metadata_key()
-
test_show_no_server()
-
test_show_zero_metadata()