mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-03 21:43:15 +00:00
test CI
This commit is contained in:
10
.github/workflows/push.yml
vendored
10
.github/workflows/push.yml
vendored
@@ -40,7 +40,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Check Wazuh indexer nodes
|
- name: Check Wazuh indexer nodes
|
||||||
run: |
|
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
|
- name: Check Wazuh manager start
|
||||||
run: |
|
run: |
|
||||||
@@ -67,7 +73,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Check Wazuh indexer nodes
|
- name: Check Wazuh indexer nodes
|
||||||
run: |
|
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
|
- name: Check Wazuh manager start
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
6
single-node/prueba.sh
Executable file
6
single-node/prueba.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
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 "bien"
|
||||||
|
else
|
||||||
|
echo "mal"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user