Skip to content

Commit

Permalink
tests: use jq command instead of python
Browse files Browse the repository at this point in the history
To avoid missing symlink or py2/py3 confusion then changing the restful
keys task with jq command.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 30a21d7)
  • Loading branch information
dsavineau committed Jul 12, 2021
1 parent 203132a commit 491b071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion travis-builds/validate_demo_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function test_demo_mgr {
}

function test_demo_rest_api {
key=$($DOCKER_COMMAND restful list-keys | python -c 'import json, sys; print(json.load(sys.stdin)["demo"])')
key=$($DOCKER_COMMAND restful list-keys | jq -r .demo)
docker exec ceph-demo curl -s --connect-timeout 1 -u demo:"$key" -k https://0.0.0.0:8003/server
# shellcheck disable=SC2046
return $(wait_for_daemon "$DOCKER_COMMAND mgr dump | grep -sq 'restful\": \"https://.*:8003'")
Expand Down

0 comments on commit 491b071

Please sign in to comment.