From de28f0babca1b51e5500948a74bea8c8af7873cc Mon Sep 17 00:00:00 2001 From: vcerenu Date: Fri, 27 May 2022 19:13:15 -0300 Subject: [PATCH] test CI --- .github/workflows/push.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index fd3b510d..0a19ad70 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -58,6 +58,19 @@ jobs: exit 1 fi + - name: Check Wazuh templates + run: | + qty_templates="`curl -XGET "https://0.0.0.0:9200/_cat/templates" -u admin:SecretPassword -k | grep "wazuh" | wc -l`" + templates="`curl -XGET "https://0.0.0.0:9200/_cat/templates" -u admin:SecretPassword -k | grep "wazuh"`" + if [[ $qty_templates -gt 0 ]]; then + echo "wazuh templates:" + echo "${templates}" + else + echo "wazuh templates:" + echo "${templates}" + exit 1 + fi + - name: Check Wazuh manager start run: | curl -k -X GET "https://0.0.0.0:55000/cluster/nodes" -H "Authorization: Bearer ${{env.TOKEN}}" @@ -108,6 +121,19 @@ jobs: exit 1 fi + - name: Check Wazuh templates + run: | + qty_templates="`curl -XGET "https://0.0.0.0:9200/_cat/templates" -u admin:SecretPassword -k | grep "wazuh" | wc -l`" + templates="`curl -XGET "https://0.0.0.0:9200/_cat/templates" -u admin:SecretPassword -k | grep "wazuh"`" + if [[ $qty_templates -gt 0 ]]; then + echo "wazuh templates:" + echo "${templates}" + else + echo "wazuh templates:" + echo "${templates}" + exit 1 + fi + - name: Check Wazuh manager start run: | nodes=$(curl -k -X GET "https://0.0.0.0:55000/cluster/nodes" -H "Authorization: Bearer ${{env.TOKEN}}" | jq -r ".data.affected_items[].name" | wc -l)