From a0a89cde507b8d328ac038abe150d9cf831f2129 Mon Sep 17 00:00:00 2001 From: Victor Carlos Erenu Date: Wed, 1 Jul 2026 00:22:14 +0700 Subject: [PATCH] Change Wazuh indexer start test for multi node deployment --- .github/workflows/push.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9630a385..16808d26 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -228,13 +228,7 @@ jobs: - name: Check Wazuh indexer start run: | - until [[ `curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s | grep green | wc -l` -eq 1 ]] - do - echo 'Waiting for Wazuh indexer start' - free -m - df -h - sleep 120 - done + sleep 60 status_green="`curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s | grep green | wc -l`" if [[ $status_green -eq 1 ]]; then curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s @@ -243,7 +237,7 @@ jobs: exit 1 fi status_index="`curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:SecretPassword -k -s | wc -l`" - status_index_green="`curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:SecretPassword -k -s | grep -E "green" | wc -l`" + status_index_green="`curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:SecretPassword -k -s | grep "green" | wc -l`" if [[ $status_index_green -eq $status_index ]]; then curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:SecretPassword -k -s else