mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-23 04:51:57 +00:00
test CI
This commit is contained in:
11
.github/workflows/push.yml
vendored
11
.github/workflows/push.yml
vendored
@@ -85,7 +85,7 @@ jobs:
|
||||
# uses: sergeysova/jq-action@v2
|
||||
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)
|
||||
if [[ $nodes -eq 3 ]]; then
|
||||
if [[ $nodes -eq 2 ]]; then
|
||||
echo "Wazuh manager nodes: ${nodes}"
|
||||
else
|
||||
echo "Wazuh manager nodes: ${nodes}"
|
||||
@@ -96,4 +96,11 @@ jobs:
|
||||
|
||||
|
||||
- name: Check Wazuh dashboard service URL
|
||||
run: curl -XGET --silent https://0.0.0.0:443/app/status -k -u admin:SecretPassword -I | grep -E "^HTTP" | awk '{print $2}'
|
||||
run: |
|
||||
status=$(curl -XGET --silent https://0.0.0.0:443/app/status -k -u admin:SecretPassword -I | grep -E "^HTTP" | awk '{print $2}')
|
||||
if [[ $status -eq 200 ]]; then
|
||||
echo "Wazuh dashboard status: ${nodes}"
|
||||
else
|
||||
echo "Wazuh dashboard status: ${nodes}"
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user