diff --git a/tests/test.bats b/tests/test.bats index e4c9b07..c21a420 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -29,10 +29,8 @@ setup() { @test "See expected permissions for users in vhost=ddev-vhost" { result=$(ddev rabbitmqctl list_permissions --silent --formatter json --vhost=ddev-vhost) - expected='[ {"user":"ddev-admin","configure":".*","write":".*","read":".*"},{"user":"rabbitmq","configure":".*","write":".*","read":".*"} ]' - echo "############################################################" - echo $result - echo "############################################################" + expected='[ {"user":"rabbitmq","configure":".*","write":".*","read":".*"} ,{"user":"ddev-admin","configure":".*","write":".*","read":".*"} ]' + [ "$(echo "$result" | jq -c -S '.' 2>/dev/null)" == "$(echo "$expected" | jq -c -S '.' 2>/dev/null)" ] }