qa: adding logic to wait for rgw realm tokens before testing

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
This commit is contained in:
Redouane Kachach 2023-03-24 15:59:10 +01:00
parent 89b3bd7935
commit b431e308a7
No known key found for this signature in database
GPG Key ID: 843EE0E7D13F5049

View File

@ -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'