]>
git.proxmox.com Git - ceph.git/blob - ceph/qa/workunits/rest/test-restful.sh
5 secret
=`ceph config-key get mgr/restful/keys/admin`
6 active
=`ceph mgr dump | jq -r .active_name`
7 echo "active $active admin secret $secret"
9 prefix
="mgr/restful/$active"
10 addr
=`ceph config-key get $prefix/server_addr || echo 127.0.0.1`
11 port
=`ceph config-key get $prefix/server_port || echo 8003`
12 url
="https://$addr:$port"
13 echo "prefix $prefix url $url"
14 $mydir/test_mgr_rest_api.py
$url $secret