예제 #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
    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)