#!/bin/sh

${RABBITMQCTL:="sudo rabbitmqctl"}
${RABBITMQ_PLUGINS:="sudo rabbitmq-plugins"}

# guest:guest has full access to /

$RABBITMQCTL add_vhost /
$RABBITMQCTL add_user guest guest
$RABBITMQCTL set_permissions -p / guest ".*" ".*" ".*"


$RABBITMQCTL add_vhost "rabbit/hole"
$RABBITMQCTL set_permissions -p "rabbit/hole" guest ".*" ".*" ".*"

Add a script that sets up the vhosts/users/permissions used by tests
Add a script that sets up the vhosts/users/permissions used by tests
