Fix rabbitmq login
Change-Id: Ic0044adec32ac2cabff7aefe4d11970224ff1cd0
diff --git a/kong/tests/994_test_rabbitmq.py b/kong/tests/994_test_rabbitmq.py
index 0a10194..77d30a0 100644
--- a/kong/tests/994_test_rabbitmq.py
+++ b/kong/tests/994_test_rabbitmq.py
@@ -41,11 +41,10 @@
test_000_ghetto.tags = ['rabbitmq']
def _cnx(self):
- # TODO: Figuring out what's going with creds
- # creds = pika.credentials.PlainCredentials(
- # self.rabbitmq['user'], self.rabbitmq['pass']
+ creds = pika.credentials.PlainCredentials(
+ self.rabbitmq['user'], self.rabbitmq['pass'])
connection = pika.BlockingConnection(pika.ConnectionParameters(
- host=self.rabbitmq['host']))
+ host=self.rabbitmq['host'],credentials=creds))
channel = connection.channel()
return (channel, connection)