From 939923db64aaadc64155c57a334c8e175e7b0a1d Mon Sep 17 00:00:00 2001
From: Pete Birley <pete@port.direct>
Date: Fri, 15 Feb 2019 16:47:21 -0600
Subject: [PATCH] Rabbit: Be more verbose in test logs

This PS increases the feedback give by the rabbitmq test pod

Change-Id: If8aa713017eccaf100c6186cd569a6a0f4b021e9
Signed-off-by: Pete Birley <pete@port.direct>
---
 rabbitmq/templates/bin/_rabbitmq-test.sh.tpl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/rabbitmq/templates/bin/_rabbitmq-test.sh.tpl b/rabbitmq/templates/bin/_rabbitmq-test.sh.tpl
index 04b2f0c45..d17ef1620 100644
--- a/rabbitmq/templates/bin/_rabbitmq-test.sh.tpl
+++ b/rabbitmq/templates/bin/_rabbitmq-test.sh.tpl
@@ -31,6 +31,7 @@ RABBITMQ_ADMIN_PASSWORD=`echo $RABBITMQ_ADMIN_CONNECTION | awk -F'[@]' '{print $
   | awk -F'[//:]' '{print $5}'`
 
 function rabbit_find_paritions () {
+  echo "Checking cluster partitions"
   PARTITIONS=$(rabbitmqadmin \
     --host="${RABBIT_HOSTNAME}" \
     --port="${RABBIT_PORT}" \
@@ -54,7 +55,7 @@ for num, node in enumerate(obj):
 rabbit_find_paritions
 
 function rabbit_check_users_match () {
-  # Check users match on all nodes
+  echo "Checking users match on all nodes"
   NODES=$(rabbitmqadmin \
     --host="${RABBIT_HOSTNAME}" \
     --port="${RABBIT_PORT}" \
@@ -62,7 +63,9 @@ function rabbit_check_users_match () {
     --password="${RABBITMQ_ADMIN_PASSWORD}" \
     list nodes -f bash)
   USER_LIST=$(mktemp --directory)
+  echo "Found the following nodes: ${NODES}"
   for NODE in ${NODES}; do
+    echo "Checking Node: ${NODE#*@}"
     rabbitmqadmin \
       --host=${NODE#*@} \
       --port="${RABBIT_PORT}" \