Exemple #1
0
 def __init__(self, instance_paths, testcase_parameters):
     self.__instance_paths = instance_paths
     self.__console_log_reader = ConsoleLogReader(instance_paths)
     self.__syslog_ng_executor = SyslogNgExecutor(instance_paths)
     self.__syslog_ng_ctl = SyslogNgCtl(instance_paths)
     self.__valgrind_usage = testcase_parameters.get_valgrind_usage()
     self.__process = None
    def __init__(self, group_type, driver_name):
        if group_type == "destination":
            statement_short_name = "dst"
        elif group_type == "source":
            statement_short_name = "src"
        else:
            raise Exception("Unknown group_type: {}".format(group_type))

        self.component = "{}.{}".format(statement_short_name, driver_name)
        self.syslog_ng_ctl = SyslogNgCtl(tc_parameters.INSTANCE_PATH)
Exemple #3
0
 def __init__(self, instance_paths, testcase_parameters):
     self.__instance_paths = instance_paths
     self.__console_log_reader = ConsoleLogReader(instance_paths)
     self.__syslog_ng_executor = SyslogNgExecutor(instance_paths)
     self.__syslog_ng_ctl = SyslogNgCtl(instance_paths)
     self.__external_tool = testcase_parameters.get_external_tool()
     self.__process = None
     self.__stderr = None
     self.__debug = None
     self.__trace = None
     self.__verbose = None
     self.__startup_debug = None
     self.__no_caps = None
     self.__config_path = None
     self.__persist_path = None
     self.__pid_path = None
     self.__control_socket_path = None
Exemple #4
0
def syslog_ng_ctl(syslog_ng):
    return SyslogNgCtl(syslog_ng.instance_paths)
Exemple #5
0
 def new_syslog_ng_ctl(self, syslog_ng):
     return SyslogNgCtl(syslog_ng.instance_paths)
Exemple #6
0
 def new_syslog_ng_ctl(self, syslog_ng):
     return SyslogNgCtl(self.__logger_factory, syslog_ng.instance_paths)