forked from wazuh/wazuh-docker
test CI
This commit is contained in:
@@ -40,7 +40,13 @@ jobs:
|
||||
|
||||
- name: Check Wazuh indexer nodes
|
||||
run: |
|
||||
curl -XGET "https://0.0.0.0:9200/_cat/nodes?v" -u admin:SecretPassword -k | wc -l
|
||||
nodes="`curl -XGET "https://0.0.0.0:9200/_cat/nodes" -u admin:SecretPassword -k | grep -E "indexer" | wc -l`"
|
||||
if [[ $nodes -eq 1 ]]; then
|
||||
echo "Cantidad de nodos: ${nodes}"
|
||||
else
|
||||
echo "Cantidad de nodos: ${nodes}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Check Wazuh manager start
|
||||
run: |
|
||||
@@ -67,7 +73,7 @@ jobs:
|
||||
|
||||
- name: Check Wazuh indexer nodes
|
||||
run: |
|
||||
curl -XGET "https://0.0.0.0:9200/_cat/nodes?v" -u admin:SecretPassword -k | wc -l
|
||||
curl -XGET "https://0.0.0.0:9200/_cat/nodes" -u admin:SecretPassword -k | wc -l
|
||||
|
||||
- name: Check Wazuh manager start
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user