The ironic.tests.unit.common.test_glance_service Module

class ironic.tests.unit.common.test_glance_service.NullWriter[source]

Bases: object

Used to test ImageService.get which takes a writer object.

write(*arg, **kwargs)[source]
class ironic.tests.unit.common.test_glance_service.TestGlanceAPIServers(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test__get_api_servers_default()[source]
test__get_api_servers_one()[source]
test__get_api_servers_two()[source]
class ironic.tests.unit.common.test_glance_service.TestGlanceImageService(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_check_image_service__no_client_set_http(*args, **keywargs)[source]
test_check_image_service_client_set()[source]
test_client_forbidden_converts_to_imagenotauthed()[source]
test_client_httpforbidden_converts_to_imagenotauthed()[source]
test_client_httpnotfound_converts_to_imagenotfound()[source]
test_client_notfound_converts_to_imagenotfound()[source]
test_create()[source]
test_create_and_show_non_existing_image()[source]
test_create_with_instance_id()[source]
test_create_without_instance_id()[source]

Test creating an image without an 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_delete()[source]
test_detail_default_limit()[source]
test_detail_invalid_marker()[source]
test_detail_limit()[source]
test_detail_makes_datetimes()[source]
test_detail_marker()[source]
test_detail_marker_and_limit()[source]
test_detail_passes_through_to_client()[source]
test_detail_private_image()[source]
test_download_file_url(*args, **keywargs)[source]
test_download_with_retries(*args, **keywargs)[source]
test_get_image_service__no_client_set_https_insecure(*args, **keywargs)[source]
test_get_image_service__no_client_set_https_secure(*args, **keywargs)[source]
test_show_makes_datetimes()[source]
test_show_passes_through_to_client()[source]
test_show_raises_when_no_authtoken_in_the_context()[source]
test_update()[source]
class ironic.tests.unit.common.test_glance_service.TestGlanceSerializer(*args, **kwargs)[source]

Bases: testtools.testcase.TestCase

test_serialize()[source]
class ironic.tests.unit.common.test_glance_service.TestGlanceSwiftTempURL(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test__validate_temp_url_account_exception()[source]
test__validate_temp_url_config()[source]
test__validate_temp_url_endpoint_config_exception()[source]
test__validate_temp_url_endpoint_less_than_download_delay()[source]
test__validate_temp_url_key_exception()[source]
test__validate_temp_url_multiple_containers()[source]
test__validate_temp_url_no_account_exception_radosgw()[source]
test_swift_temp_url(*args, **keywargs)[source]
test_swift_temp_url_invalid_image_info(*args, **keywargs)[source]
test_swift_temp_url_multiple_containers(*args, **keywargs)[source]
test_swift_temp_url_radosgw(*args, **keywargs)[source]
test_swift_temp_url_radosgw_endpoint_invalid(*args, **keywargs)[source]
test_swift_temp_url_radosgw_endpoint_with_swift(*args, **keywargs)[source]
test_swift_temp_url_url_bad_no_info()[source]
class ironic.tests.unit.common.test_glance_service.TestGlanceUrl(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_generate_glance_http_url()[source]
test_generate_glance_https_url()[source]
class ironic.tests.unit.common.test_glance_service.TestServiceUtils(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_generate_image_url()[source]
test_is_glance_image()[source]
test_is_image_href_ordinary_file_name_false()[source]
test_is_image_href_ordinary_file_name_true()[source]
test_parse_image_ref_no_ssl()[source]
test_parse_image_ref_ssl()[source]
class ironic.tests.unit.common.test_glance_service.TestSwiftTempUrlCache(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_add_items_to_cache(*args, **keywargs)[source]
test_do_not_return_expired_tempurls(*args, **keywargs)[source]
test_remove_expired_items_from_cache()[source]
test_return_cached_tempurl(*args, **keywargs)[source]
test_swift_temp_url_cache_disabled()[source]
test_swift_temp_url_cache_enabled()[source]

Project Source

This Page