コード例 #1
0
    def setUp(self):
        self.engine = engine(name="passdropity", logging_level=WARNING)

        self.engine.next_amqp_queues = ["consolidation"]
        self.engine.drop_event_count = 0
        self.engine.pass_event_count = 0
        self.engine.configuration = conf
コード例 #2
0
ファイル: event_filter.py プロジェクト: crudbug/canopsis
    def setUp(self):
        self.engine = engine(
            **{'name': 'passdropity', 'logging_level': INFO})

        self.engine.next_amqp_queues = ["consolidation"]
        self.engine.drop_event_count = 0
        self.engine.pass_event_count = 0
        self.engine.configuration = conf
コード例 #3
0
    def setUp(self):
        # Initializing logging_level to WARNING prevents 'Engine initialized'
        # INFO to be printed
        self.engine = engine(name="overrider", logging_level=WARNING)
        self.engine.logger.propagate = False

        # Thoose events with minimal fields are shortcuts for test_* methods
        self.event = {"connector": "", "connector_name": "", "event_type": "", "source_type": "", "component": ""}
        self.expected_event = copy(self.event)
コード例 #4
0
    def setUp(self):
        self.engine = engine(
            name='passdropity',
            logging_level=WARNING,
        )

        self.engine.next_amqp_queues = ["consolidation"]
        self.engine.drop_event_count = 0
        self.engine.pass_event_count = 0
        self.engine.configuration = conf
コード例 #5
0
    def setUp(self):
        # Initializing logging_level to WARNING prevents 'Engine initialized'
        # INFO to be printed
        self.engine = engine(name='overrider', logging_level=WARNING)
        self.engine.logger.propagate = False

        # Thoose events with minimal fields are shortcuts for test_* methods
        self.event = {
            'connector': '',
            'connector_name': '',
            'event_type': '',
            'source_type': '',
            'component': '',
        }
        self.expected_event = copy(self.event)