oslo_privsep.tests.test_capabilities.
TestCapabilities
(*args, **kwds)¶Bases: oslotest.base.BaseTestCase
test_drop_all_caps_except
(mock_capset)¶test_drop_all_caps_except_error
(mock_capset)¶test_get_caps
(mock_capget)¶test_get_caps_error
(mock_capget)¶test_set_keepcaps
(mock_prctl)¶test_set_keepcaps_error
(mock_prctl)¶oslo_privsep.tests.test_daemon.
ClientChannelTestCase
(*args, **kwds)¶Bases: oslotest.base.BaseTestCase
DICT
= {'string_1': ('tuple_1', b'tuple_2'), b'byte_1': ['list_1', 'list_2']}¶EXPECTED
= {'byte_1': ['list_1', 'list_2'], 'string_1': ('tuple_1', b'tuple_2')}¶setUp
()¶test_out_of_band_log_message
()¶test_out_of_band_not_log_message
()¶oslo_privsep.tests.test_daemon.
DaemonTest
(*args, **kwds)¶Bases: oslotest.base.BaseTestCase
test_drop_privs
(mock_dropcaps, mock_keepcaps, mock_setgroups, mock_setgid, mock_setuid)¶oslo_privsep.tests.test_daemon.
LogRecorder
(logs, *args, **kwargs)¶Bases: logging.Formatter
format
(record)¶oslo_privsep.tests.test_daemon.
LogTest
(*args, **kwds)¶Bases: oslo_privsep.tests.testctx.TestContextTestCase
setUp
()¶test_format_record
()¶test_priv_loglevel
()¶test_record_data
()¶oslo_privsep.tests.test_daemon.
TestException
¶Bases: Exception
oslo_privsep.tests.test_daemon.
WithContextTest
(*args, **kwds)¶Bases: oslo_privsep.tests.testctx.TestContextTestCase
test_unexported
()¶oslo_privsep.tests.test_daemon.
undecorated
()¶oslo_privsep.tests.test_priv_context.
CustomError
(code, msg)¶Bases: Exception
oslo_privsep.tests.test_priv_context.
PrivContextTest
(*args, **kwds)¶Bases: oslo_privsep.tests.testctx.TestContextTestCase
test_helper_command
()¶test_helper_command_default
()¶test_helper_command_default_dirtoo
()¶test_init_known_contexts
()¶test_init_windows
(mock_sys)¶test_set_client_mode
(mock_sys)¶oslo_privsep.tests.test_priv_context.
RootwrapTest
(*args, **kwds)¶Bases: oslo_privsep.tests.testctx.TestContextTestCase
setUp
()¶test_getpid
()¶oslo_privsep.tests.test_priv_context.
SeparationTest
(*args, **kwds)¶Bases: oslo_privsep.tests.testctx.TestContextTestCase
test_client_mode
()¶test_getpid
()¶oslo_privsep.tests.test_priv_context.
SerializationTest
(*args, **kwds)¶Bases: oslo_privsep.tests.testctx.TestContextTestCase
test_basic_functionality
()¶test_raises_custom
()¶test_raises_standard
()¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.