HDDS-1937. Acceptance tests fail if scm webui shows invalid json

Signed-off-by: Anu Engineer <aengineer@apache.org>
This commit is contained in:
Márton Elek 2019-08-24 21:19:36 +02:00 committed by Anu Engineer
parent 29bd6f3fc3
commit addfb7ff7d
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ count_datanodes() {
else
docker-compose -f "${compose_file}" exec -T scm curl -s "${jmx_url}"
fi \
| jq -r '.beans[0].NodeCount[] | select(.key=="HEALTHY") | .value'
| jq -r '.beans[0].NodeCount[] | select(.key=="HEALTHY") | .value' || true
}
## @description wait until datanodes are up (or 30 seconds)