mirror of
https://github.com/ceph/ceph
synced 2025-01-11 05:29:51 +00:00
qa: adding logic to wait for rgw realm tokens before testing
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
This commit is contained in:
parent
89b3bd7935
commit
b431e308a7
@ -28,6 +28,7 @@ tasks:
|
||||
- |
|
||||
set -e
|
||||
set -x
|
||||
while true; do TOKEN=$(ceph rgw realm tokens | jq -r '.[0].token'); echo $TOKEN; if [ "$TOKEN" != "master zone has no endpoint" ]; then break; fi; sleep 5; done
|
||||
TOKENS=$(ceph rgw realm tokens)
|
||||
echo $TOKENS | jq --exit-status '.[0].realm == "myrealm1"'
|
||||
echo $TOKENS | jq --exit-status '.[0].token'
|
||||
|
Loading…
Reference in New Issue
Block a user