Tests for the Pecan API hooks.
-
class ironic.tests.unit.api.test_hooks.FakeRequest(headers, context, environ)[source]
Bases: object
-
class ironic.tests.unit.api.test_hooks.FakeRequestState(headers=None, context=None, environ=None)[source]
Bases: object
-
set_context()[source]
-
class ironic.tests.unit.api.test_hooks.TestContextHook(*args, **kwargs)[source]
Bases: ironic.tests.unit.api.base.BaseApiTest
-
test_context_hook_admin(*args, **keywargs)[source]
-
test_context_hook_after_add_request_id(*args, **keywargs)[source]
-
test_context_hook_after_miss_context()[source]
-
test_context_hook_noauth_token_removed(*args, **keywargs)[source]
-
test_context_hook_not_admin(*args, **keywargs)[source]
-
test_context_hook_public_api(*args, **keywargs)[source]
-
class ironic.tests.unit.api.test_hooks.TestNoExceptionTracebackHook(*args, **kwargs)[source]
Bases: ironic.tests.unit.api.base.BaseApiTest
-
setUp()[source]
-
test_hook_exception_success()[source]
-
test_hook_on_clientfault()[source]
-
test_hook_on_clientfault_debug()[source]
-
test_hook_on_clientfault_debug_tracebacks()[source]
-
test_hook_on_serverfault()[source]
-
test_hook_on_serverfault_debug()[source]
-
test_hook_on_serverfault_debug_tracebacks()[source]
-
test_hook_remote_error_success()[source]
-
test_hook_without_traceback()[source]
-
test_hook_without_traceback_debug()[source]
-
test_hook_without_traceback_debug_tracebacks()[source]
-
class ironic.tests.unit.api.test_hooks.TestPublicUrlHook(*args, **kwargs)[source]
Bases: ironic.tests.unit.api.base.BaseApiTest
-
test_before_host_url()[source]
-
test_before_public_endpoint()[source]
-
class ironic.tests.unit.api.test_hooks.TestTrustedCallHook(*args, **kwargs)[source]
Bases: ironic.tests.unit.api.base.BaseApiTest
-
test_trusted_call_hook_admin()[source]
-
test_trusted_call_hook_not_admin()[source]
-
test_trusted_call_hook_public_api()[source]
-
class ironic.tests.unit.api.test_hooks.TestTrustedCallHookCompatJuno(*args, **kwargs)[source]
Bases: ironic.tests.unit.api.test_hooks.TestTrustedCallHook
-
setUp()[source]
-
test_trusted_call_hook_public_api()[source]