The ironic_python_agent.tests.unit.test_utils Module

class ironic_python_agent.tests.unit.test_utils.ExecuteTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

test_execute(*args, **keywargs)[source]
class ironic_python_agent.tests.unit.test_utils.GetAgentParamsTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

test__get_vmedia_device(*args, **keywargs)[source]
test__get_vmedia_params_by_device(*args, **keywargs)[source]
test__get_vmedia_params_by_label_lower_case(*args, **keywargs)[source]
test__get_vmedia_params_by_label_upper_case(*args, **keywargs)[source]
test__get_vmedia_params_cannot_find_dev(*args, **keywargs)[source]
test__get_vmedia_params_mount_fails(*args, **keywargs)[source]
test__get_vmedia_params_rmtree_fails(*args, **keywargs)[source]
test__get_vmedia_params_umount_fails(*args, **keywargs)[source]
test__read_params_from_file(*args, **keywargs)[source]
test__read_params_from_file_fail(*args, **keywargs)[source]
test_get_agent_params_from_cache(*args, **keywargs)[source]
test_get_agent_params_kernel_cmdline(*args, **keywargs)[source]
test_get_agent_params_vmedia(*args, **keywargs)[source]
class ironic_python_agent.tests.unit.test_utils.TestFailures(*args, **kwargs)[source]

Bases: testtools.testcase.TestCase

test_get_error()[source]
test_raise()[source]
class ironic_python_agent.tests.unit.test_utils.TestUtils(*args, **kwargs)[source]

Bases: testtools.testcase.TestCase

test_collect_system_logs_journald(*args, **keywargs)[source]
test_collect_system_logs_non_journald(*args, **keywargs)[source]
test_get_command_output(*args, **keywargs)[source]
test_get_journalctl_output(*args, **keywargs)[source]
test_get_journalctl_output_fail(*args, **keywargs)[source]
test_get_journalctl_output_with_lines(*args, **keywargs)[source]
test_get_journalctl_output_with_units(*args, **keywargs)[source]
test_get_ssl_client_options()[source]
test_gzip_and_b64encode()[source]
test_is_journalctl_present(*args, **keywargs)[source]
test_is_journalctl_present_false(*args, **keywargs)[source]