ceph/qa/workunits/rest/test-restful.sh
Brad Hubbard d1892aaf6b qa/workunits/rest: Better detection of rest url
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2019-02-28 07:29:25 +10:00

11 lines
233 B
Bash
Executable File

#!/bin/sh -ex
mydir=`dirname $0`
secret=`ceph config-key get mgr/restful/keys/admin`
url=$(ceph mgr dump|jq -r .services.restful|sed -e 's/\/$//')
echo "url $url secret $secret"
$mydir/test_mgr_rest_api.py $url $secret
echo $0 OK