]> git.proxmox.com Git - ceph.git/blame - ceph/qa/workunits/rest/test-restful.sh
update sources to v12.1.0
[ceph.git] / ceph / qa / workunits / rest / test-restful.sh
CommitLineData
31f18b77
FG
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`
11port=`ceph config-key get $prefix/server_port`
12url="https://$addr:$port"
13echo "prefix $prefix url $url"
14$mydir/test_mgr_rest_api.py $url $secret
15
16echo $0 OK