Skip to content

Commit

Permalink
[TASK] JSON output from CI in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ochorocho committed Oct 25, 2023
1 parent bf3a609 commit ce5b807
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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)" ]
}

Expand Down

0 comments on commit ce5b807

Please sign in to comment.