mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-25 09:03:38 +00:00
Test CI
This commit is contained in:
3
.github/workflows/push.yml
vendored
3
.github/workflows/push.yml
vendored
@@ -101,8 +101,7 @@ jobs:
|
|||||||
TOKEN: $(curl -s -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true")
|
TOKEN: $(curl -s -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true")
|
||||||
|
|
||||||
- name: Check errors in ossec.log
|
- name: Check errors in ossec.log
|
||||||
run: |
|
run: .github/single-node-check.sh
|
||||||
docker exec single-node_wazuh.manager_1 sh -c 'cat /var/ossec/logs/ossec.log | egrep ERR'
|
|
||||||
|
|
||||||
|
|
||||||
- name: Check filebeat output
|
- name: Check filebeat output
|
||||||
|
|||||||
8
.github/workflows/single-node-check.sh
vendored
Normal file
8
.github/workflows/single-node-check.sh
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
log=$(docker exec single-node_wazuh.manager_1 sh -c 'cat /var/ossec/logs/ossec.log' | grep -P "ERR|WARN|CRIT")
|
||||||
|
if [[ -z "$log" ]]; then
|
||||||
|
echo "No errors in master ossec.log"
|
||||||
|
else
|
||||||
|
echo "Errors in master ossec.log:"
|
||||||
|
echo "${log}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user