Esempio n. 1
0
 def test_save_raw_crash_transaction_normal(self):
     connection = Mock()
     config = self._setup_config()
     crash_store = RabbitMQCrashStorage(config)
     crash_store._save_raw_crash_transaction(connection, "some_crash_id")
     connection.channel.basic_publish.assert_called_once_with(
         exchange="", routing_key="socorro.normal", body="some_crash_id", properties=crash_store._basic_properties
     )
Esempio n. 2
0
 def test_save_raw_crash_transaction_normal(self):
     connection = Mock()
     config = self._setup_config()
     crash_store = RabbitMQCrashStorage(config)
     crash_store._save_raw_crash_transaction(connection, 'some_crash_id')
     connection.channel.basic_publish.assert_called_once_with(
         exchange='',
         routing_key='socorro.normal',
         body='some_crash_id',
         properties=crash_store._basic_properties)
Esempio n. 3
0
 def test_save_raw_crash_transaction_priority(self):
     connection = Mock()
     config = self._setup_config()
     config.routing_key = 'socorro.priority'
     crash_store = RabbitMQCrashStorage(config)
     crash_store._save_raw_crash_transaction(connection, 'some_crash_id')
     connection.channel.basic_publish.assert_called_once_with(
         exchange='',
         routing_key='socorro.priority',
         body='some_crash_id',
         properties=crash_store._basic_properties)