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_one()[source]
test__get_api_servers_two()[source]
test__get_api_servers_with_host_port()[source]
test__get_api_servers_with_keystone(*args, **keywargs)[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_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]
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.TestServiceUtils(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

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]