From d7b36323d0070d6f04195d78e282cd7fa0494b28 Mon Sep 17 00:00:00 2001 From: Artem Rys Date: Mon, 24 Jul 2023 16:23:10 +0200 Subject: [PATCH] ci: check for KVStore status before running tests (#301) --- .github/workflows/build-test-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-test-release.yml b/.github/workflows/build-test-release.yml index 784a3586..a16f0b53 100644 --- a/.github/workflows/build-test-release.yml +++ b/.github/workflows/build-test-release.yml @@ -129,6 +129,8 @@ jobs: sudo /opt/splunk/bin/splunk start --accept-license sudo /opt/splunk/bin/splunk set servername custom-servername -auth admin:Chang3d! sudo /opt/splunk/bin/splunk restart + until curl -k -s -u admin:Chang3d! https://localhost:8089/services/server/info\?output_mode\=json | jq '.entry[0].content.kvStoreStatus' | grep -o "ready" ; do echo -n "Waiting for KVStore to become ready-" && sleep 5 ; done + timeout-minutes: 5 - name: Run tests run: | poetry install