]> git.proxmox.com Git - ceph.git/blame_incremental - ceph/qa/workunits/rest/test-restful.sh
update sources to v12.1.1
[ceph.git] / ceph / qa / workunits / rest / test-restful.sh
... / ...
CommitLineData
1#!/bin/sh -ex
2
3mydir=`dirname $0`
4
5secret=`ceph config-key get mgr/restful/keys/admin`
6active=`ceph mgr dump | jq -r .active_name`
7echo "active $active admin secret $secret"
8
9prefix="mgr/restful/$active"
10addr=`ceph config-key get $prefix/server_addr || echo 127.0.0.1`
11port=`ceph config-key get $prefix/server_port || echo 8003`
12url="https://$addr:$port"
13echo "prefix $prefix url $url"
14$mydir/test_mgr_rest_api.py $url $secret
15
16echo $0 OK