The ironic.tests.unit.common.test_glance_service Module

The ironic.tests.unit.common.test_glance_service Module

class ironic.tests.unit.common.test_glance_service.CheckImageServiceTestCase(*args, **kwds)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_check_image_service__config_auth(*args, **keywargs)[source]
test_check_image_service__deprecated_opts(*args, **keywargs)[source]
test_check_image_service__no_auth(*args, **keywargs)[source]
test_check_image_service__token_auth(*args, **keywargs)[source]
test_check_image_service_client_already_set(*args, **keywargs)[source]
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.TestGlanceImageService(*args, **kwds)[source]

Bases: ironic.tests.base.TestCase

setUp()[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_no_data()[source]
test_download_with_retries(*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, **kwds)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test__validate_temp_url_config()[source]
test__validate_temp_url_endpoint_less_than_download_delay()[source]
test__validate_temp_url_key_exception()[source]
test__validate_temp_url_key_no_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_account_detected(*args, **keywargs)[source]
test_swift_temp_url_endpoint_detected(*args, **keywargs)[source]
test_swift_temp_url_endpoint_with_suffix(*args, **keywargs)[source]
test_swift_temp_url_invalid_image_info(*args, **keywargs)[source]
test_swift_temp_url_key_detected(*args, **keywargs)[source]
test_swift_temp_url_multiple_containers(*args, **keywargs)[source]
test_swift_temp_url_no_key_detected(*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, **kwds)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_get_glance_api_server()[source]
test_get_glance_api_server_fail()[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_id_fail()[source]
test_parse_image_id_from_glance()[source]
test_parse_image_id_from_glance_fail()[source]
test_parse_image_id_from_uuid()[source]
class ironic.tests.unit.common.test_glance_service.TestSwiftTempUrlCache(*args, **kwds)[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]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.