Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Enable rabbitmq_management for tests that use an AMQP queue
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Aug 14, 2021
1 parent 891ab4c commit dcb7eba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ def doNodesHaveBlockNum(nodes, targetBlockNum, blockType, printCount):

@staticmethod
def createAMQPQueue(queueName):
Utils.runCmdReturnStr("rabbitmq-plugins enable rabbitmq_management")
cmd="curl -u guest:guest -H \"content-type:application/json\" -XPUT http://127.0.0.1:15672/api/queues/%%2F/%s -d'{\"durable\":true}' " % \
(queueName)
return Utils.runCmdReturnStr(cmd)
Expand Down

0 comments on commit dcb7eba

Please sign in to comment.