Introduce pluggable backends.

This allows an operator to write a custom messaging backend to handle
whatever transport and format.
This commit is contained in:
Ralph Bean
2017-09-19 13:09:07 -04:00
parent 1f077a12ea
commit 5e08d2ffe4
6 changed files with 92 additions and 156 deletions

View File

@@ -72,6 +72,8 @@ class TestConsumer(unittest.TestCase):
hub = MagicMock(config={})
consumer = MBSConsumer(hub)
msg = {
"topic": "org.fedoraproject.prod.buildsys.repo.done",
"headers": {},
"body": {
"username": "apache",
"source_name": "datanommer",