From b431e308a747afa7fa8c1852ba7a375c4e0f1867 Mon Sep 17 00:00:00 2001 From: Redouane Kachach Date: Fri, 24 Mar 2023 15:59:10 +0100 Subject: [PATCH] qa: adding logic to wait for rgw realm tokens before testing Signed-off-by: Redouane Kachach --- qa/suites/orch/cephadm/workunits/task/test_rgw_multisite.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/qa/suites/orch/cephadm/workunits/task/test_rgw_multisite.yaml b/qa/suites/orch/cephadm/workunits/task/test_rgw_multisite.yaml index 031aeb6695d..976e3730ce3 100644 --- a/qa/suites/orch/cephadm/workunits/task/test_rgw_multisite.yaml +++ b/qa/suites/orch/cephadm/workunits/task/test_rgw_multisite.yaml @@ -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'