mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-07 07:23:30 +00:00
test CI
This commit is contained in:
26
.github/workflows/push.yml
vendored
26
.github/workflows/push.yml
vendored
@@ -58,6 +58,19 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
- name: Check Wazuh manager start
|
||||||
run: |
|
run: |
|
||||||
curl -k -X GET "https://0.0.0.0:55000/cluster/nodes" -H "Authorization: Bearer ${{env.TOKEN}}"
|
curl -k -X GET "https://0.0.0.0:55000/cluster/nodes" -H "Authorization: Bearer ${{env.TOKEN}}"
|
||||||
@@ -108,6 +121,19 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
- name: Check Wazuh manager start
|
||||||
run: |
|
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)
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user