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>
This commit is contained in:
Pete Birley 2019-02-15 16:47:21 -06:00 committed by Pete Birley
parent 69cf377fd6
commit 939923db64

View File

@ -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}" \