예제 #1
0
def test_syslog_ng_paths_client_relay_server(fake_testcase_parameters):
    syslog_ng_paths_server = SyslogNgPaths(
        fake_testcase_parameters, ).set_syslog_ng_paths(instance_name="server")
    syslog_ng_paths_relay = SyslogNgPaths(
        fake_testcase_parameters, ).set_syslog_ng_paths(instance_name="relay")
    syslog_ng_paths_client = SyslogNgPaths(
        fake_testcase_parameters, ).set_syslog_ng_paths(instance_name="client")

    assert syslog_ng_paths_client.get_instance_name() == "client"
    assert syslog_ng_paths_relay.get_instance_name() == "relay"
    assert syslog_ng_paths_server.get_instance_name() == "server"
예제 #2
0
def test_syslog_ng_paths_client_relay_server(fake_testcase_parameters):
    syslog_ng_paths_server = SyslogNgPaths(
        fake_testcase_parameters
    ).set_syslog_ng_paths(instance_name="server")
    syslog_ng_paths_relay = SyslogNgPaths(
        fake_testcase_parameters
    ).set_syslog_ng_paths(instance_name="relay")
    syslog_ng_paths_client = SyslogNgPaths(
        fake_testcase_parameters
    ).set_syslog_ng_paths(instance_name="client")

    assert syslog_ng_paths_client.get_instance_name() == "client"
    assert syslog_ng_paths_relay.get_instance_name() == "relay"
    assert syslog_ng_paths_server.get_instance_name() == "server"
def test_syslog_ng_paths_client_relay_server(tc_unittest):
    syslog_ng_paths_server = SyslogNgPaths(
        tc_unittest.testcase_context,
        tc_unittest.get_fake_testcase_parameters()).set_syslog_ng_paths(
            instance_name="server")
    syslog_ng_paths_relay = SyslogNgPaths(
        tc_unittest.testcase_context,
        tc_unittest.get_fake_testcase_parameters()).set_syslog_ng_paths(
            instance_name="relay")
    syslog_ng_paths_client = SyslogNgPaths(
        tc_unittest.testcase_context,
        tc_unittest.get_fake_testcase_parameters()).set_syslog_ng_paths(
            instance_name="client")

    assert syslog_ng_paths_client.get_instance_name() == "client"
    assert syslog_ng_paths_relay.get_instance_name() == "relay"
    assert syslog_ng_paths_server.get_instance_name() == "server"