summaryrefslogtreecommitdiffstats
path: root/qa/workunits/rest/test-restful.sh
blob: fde0d107a0bd23e5a94774901020b306b92c09eb (plain)
1
2
3
4
5
6
7
8
9
10
#!/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