The ironic.tests.unit.api.test_hooks Module

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

class ironic.tests.unit.api.test_hooks.TestContextHook(*args, **kwargs)[source]

Bases: ironic.tests.unit.api.base.BaseApiTest

test_context_hook_admin()[source]
test_context_hook_after_add_request_id()[source]
test_context_hook_after_miss_context()[source]
test_context_hook_noauth_token_removed()[source]
test_context_hook_not_admin()[source]
test_context_hook_public_api()[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.TestPolicyDeprecation(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_policy_deprecation_check(*args, **keywargs)[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]