fix index alerts test

This commit is contained in:
vcerenu
2023-05-18 22:03:42 +02:00
committed by Raul Del Pozo Moreno
parent 6e7b1c2899
commit 42193f4cfa
+1 -1
View File
@@ -250,7 +250,7 @@ jobs:
- name: Check documents into wazuh-alerts index
run: |
docs="`curl -XGET "https://0.0.0.0:9200/wazuh-alerts*/_doc/_search" -u admin:SecretPassword -k -s | jq -r ".hits.total.value"`"
docs="`curl -XGET "https://0.0.0.0:9200/wazuh-alerts*/_count" -u admin:SecretPassword -k -s | jq -r ".count"`"
if [[ $docs -gt 200 ]]; then
echo "wazuh-alerts index documents: ${docs}"
else