The ironicclient.tests.unit.common.test_http Module

The ironicclient.tests.unit.common.test_http Module

class ironicclient.tests.unit.common.test_http.HttpClientTest(*args, **kwargs)[source]

Bases: ironicclient.tests.unit.utils.BaseTestCase

test_401_unauthorized_exception()[source]
test__http_request_client_fallback_fail(**keywargs)[source]
test__http_request_client_fallback_success(**keywargs)[source]
test__https_init_ssl_args_insecure()[source]
test__https_init_ssl_args_secure()[source]
test__parse_version_headers()[source]
test_http_request_not_valid_request()[source]
test_log_curl_request_mask_password(**keywargs)[source]
test_log_curl_request_with_body_and_header(**keywargs)[source]
test_log_curl_request_with_certs(**keywargs)[source]
test_log_curl_request_with_insecure_param(**keywargs)[source]
test_log_http_response_mask_password(**keywargs)[source]
test_server_exception_description_only()[source]
test_server_exception_empty_body()[source]
test_server_exception_msg_only()[source]
test_server_https_empty_body()[source]
test_server_https_request_ok()[source]
test_server_https_request_with_application_octet_stream()[source]
test_url_generation_trailing_slash_in_base()[source]
test_url_generation_without_prefix_slash_in_path()[source]
test_url_generation_without_trailing_slash_in_base()[source]
class ironicclient.tests.unit.common.test_http.RetriesTestCase(*args, **kwargs)[source]

Bases: ironicclient.tests.unit.utils.BaseTestCase

test_http_change_max_retries(**keywargs)[source]
test_http_failed_retry(**keywargs)[source]
test_http_max_retries_none(**keywargs)[source]
test_http_no_retry(**keywargs)[source]
test_http_retry(**keywargs)[source]
test_http_retry_503(**keywargs)[source]
test_http_retry_connection_refused(**keywargs)[source]
test_session_change_max_retries(**keywargs)[source]
test_session_max_retries_none(**keywargs)[source]
test_session_retry(**keywargs)[source]
test_session_retry_503(**keywargs)[source]
test_session_retry_connection_refused(**keywargs)[source]
test_session_retry_fail(**keywargs)[source]
test_session_retry_retriable_connection_failure(**keywargs)[source]
class ironicclient.tests.unit.common.test_http.SessionClientTest(*args, **kwargs)[source]

Bases: ironicclient.tests.unit.utils.BaseTestCase

test__parse_version_headers()[source]
test_endpoint_override()[source]
test_endpoint_override_not_valid()[source]
test_endpoint_override_with_version()[source]
test_make_simple_request()[source]
test_server_exception_description_only()[source]
test_server_exception_empty_body()[source]
class ironicclient.tests.unit.common.test_http.VersionNegotiationMixinTest(*args, **kwargs)[source]

Bases: ironicclient.tests.unit.utils.BaseTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test__generic_parse_version_headers_has_headers()[source]
test__generic_parse_version_headers_missing_headers()[source]
test_get_server()[source]
test_negotiate_version_bad_state(**keywargs)[source]
test_negotiate_version_server_explicit_not_supported(**keywargs)[source]
test_negotiate_version_server_explicit_too_high(**keywargs)[source]
test_negotiate_version_server_newer(**keywargs)[source]
test_negotiate_version_server_no_version_on_error(**keywargs)[source]
test_negotiate_version_server_older(**keywargs)[source]
test_negotiate_version_server_user_latest(**keywargs)[source]
test_negotiate_version_server_user_list(**keywargs)[source]
test_negotiate_version_server_user_list_fails_latest(**keywargs)[source]
test_negotiate_version_server_user_list_fails_nomatch(**keywargs)[source]
test_negotiate_version_server_user_list_single_value(**keywargs)[source]
test_negotiate_version_strict_version_comparison(**keywargs)[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.