mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-02 21:13:30 +00:00
test CI
This commit is contained in:
13
.github/workflows/push.yml
vendored
13
.github/workflows/push.yml
vendored
@@ -55,7 +55,14 @@ jobs:
|
|||||||
TOKEN: $(curl -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true")
|
TOKEN: $(curl -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true")
|
||||||
|
|
||||||
- name: Check Wazuh dashboard service URL
|
- 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: ${status}"
|
||||||
|
else
|
||||||
|
echo "Wazuh dashboard status: ${status}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Stop single node stack
|
- name: Stop single node stack
|
||||||
run: docker-compose -f single-node/docker-compose.yml down
|
run: docker-compose -f single-node/docker-compose.yml down
|
||||||
@@ -99,8 +106,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
status=$(curl -XGET --silent https://0.0.0.0:443/app/status -k -u admin:SecretPassword -I | grep -E "^HTTP" | awk '{print $2}')
|
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
|
if [[ $status -eq 200 ]]; then
|
||||||
echo "Wazuh dashboard status: ${nodes}"
|
echo "Wazuh dashboard status: ${status}"
|
||||||
else
|
else
|
||||||
echo "Wazuh dashboard status: ${nodes}"
|
echo "Wazuh dashboard status: ${status}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user