mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-06 06:53:33 +00:00
Test CI
This commit is contained in:
60
.github/.goss.yaml
vendored
60
.github/.goss.yaml
vendored
@@ -1,3 +1,53 @@
|
|||||||
|
file:
|
||||||
|
/etc/filebeat/filebeat.yml:
|
||||||
|
exists: true
|
||||||
|
mode: "0644"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
filetype: file
|
||||||
|
contains: []
|
||||||
|
/var/ossec/bin/wazuh-control:
|
||||||
|
exists: true
|
||||||
|
mode: "0750"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
filetype: file
|
||||||
|
contains: []
|
||||||
|
/var/ossec/etc/lists/audit-keys:
|
||||||
|
exists: true
|
||||||
|
mode: "0660"
|
||||||
|
owner: wazuh
|
||||||
|
group: wazuh
|
||||||
|
filetype: file
|
||||||
|
contains: []
|
||||||
|
/var/ossec/etc/ossec.conf:
|
||||||
|
exists: true
|
||||||
|
mode: "0660"
|
||||||
|
owner: root
|
||||||
|
group: wazuh
|
||||||
|
filetype: file
|
||||||
|
contains: []
|
||||||
|
/var/ossec/etc/rules/local_rules.xml:
|
||||||
|
exists: true
|
||||||
|
mode: "0660"
|
||||||
|
owner: wazuh
|
||||||
|
group: wazuh
|
||||||
|
filetype: file
|
||||||
|
contains: []
|
||||||
|
/var/ossec/etc/sslmanager.cert:
|
||||||
|
exists: true
|
||||||
|
mode: "0640"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
filetype: file
|
||||||
|
contains: []
|
||||||
|
/var/ossec/etc/sslmanager.key:
|
||||||
|
exists: true
|
||||||
|
mode: "0640"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
filetype: file
|
||||||
|
contains: []
|
||||||
package:
|
package:
|
||||||
filebeat:
|
filebeat:
|
||||||
installed: true
|
installed: true
|
||||||
@@ -41,3 +91,13 @@ process:
|
|||||||
running: true
|
running: true
|
||||||
wazuh-modulesd:
|
wazuh-modulesd:
|
||||||
running: true
|
running: true
|
||||||
|
user:
|
||||||
|
wazuh:
|
||||||
|
exists: true
|
||||||
|
groups:
|
||||||
|
- wazuh
|
||||||
|
home: /var/ossec
|
||||||
|
shell: /sbin/nologin
|
||||||
|
group:
|
||||||
|
wazuh:
|
||||||
|
exists: true
|
||||||
18
.github/multi-node-fb-check.sh
vendored
18
.github/multi-node-fb-check.sh
vendored
@@ -1,18 +0,0 @@
|
|||||||
fbout1=$(docker exec multi-node_wazuh.master_1 sh -c 'filebeat test output')
|
|
||||||
fbstatus1=$(echo "${fbout1}" | grep -c OK)
|
|
||||||
if [[ fbstatus1 -eq 7 ]]; then
|
|
||||||
echo "No errors in master filebeat"
|
|
||||||
else
|
|
||||||
echo "Errors in master filebeat"
|
|
||||||
echo "${fbout1}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fbout2=$(docker exec multi-node_wazuh.worker_1 sh -c 'filebeat test output')
|
|
||||||
fbstatus2=$(echo "${fbout2}" | grep -c OK)
|
|
||||||
if [[ fbstatus2 -eq 7 ]]; then
|
|
||||||
echo "No errors in worker filebeat"
|
|
||||||
else
|
|
||||||
echo "Errors in worker filebeat"
|
|
||||||
echo "${fbout2}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
18
.github/multi-node-filebeat-check.sh
vendored
Executable file
18
.github/multi-node-filebeat-check.sh
vendored
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
filebeatout1=$(docker exec multi-node_wazuh.master_1 sh -c 'filebeat test output')
|
||||||
|
filebeatstatus1=$(echo "${filebeatout1}" | grep -c OK)
|
||||||
|
if [[ filebeatstatus1 -eq 7 ]]; then
|
||||||
|
echo "No errors in master filebeat"
|
||||||
|
else
|
||||||
|
echo "Errors in master filebeat"
|
||||||
|
echo "${filebeatout1}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
filebeatout2=$(docker exec multi-node_wazuh.worker_1 sh -c 'filebeat test output')
|
||||||
|
filebeatstatus2=$(echo "${filebeatout2}" | grep -c OK)
|
||||||
|
if [[ filebeatstatus2 -eq 7 ]]; then
|
||||||
|
echo "No errors in worker filebeat"
|
||||||
|
else
|
||||||
|
echo "Errors in worker filebeat"
|
||||||
|
echo "${filebeatout2}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
9
.github/single-node-fb-check.sh
vendored
9
.github/single-node-fb-check.sh
vendored
@@ -1,9 +0,0 @@
|
|||||||
fbout=$(docker exec single-node_wazuh.manager_1 sh -c 'filebeat test output')
|
|
||||||
fbstatus=$(echo "${fbout}" | grep -c OK)
|
|
||||||
if [[ fbstatus -eq 7 ]]; then
|
|
||||||
echo "No errors in filebeat"
|
|
||||||
else
|
|
||||||
echo "Errors in filebeat"
|
|
||||||
echo "${fbout}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
9
.github/single-node-filebeat-check.sh
vendored
Executable file
9
.github/single-node-filebeat-check.sh
vendored
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
filebeatoutout=$(docker exec single-node_wazuh.manager_1 sh -c 'filebeat test output')
|
||||||
|
filebeatstatus=$(echo "${filebeatout}" | grep -c OK)
|
||||||
|
if [[ filebeatstatus -eq 7 ]]; then
|
||||||
|
echo "No errors in filebeat"
|
||||||
|
else
|
||||||
|
echo "Errors in filebeat"
|
||||||
|
echo "${filebeatout}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
4
.github/workflows/push.yml
vendored
4
.github/workflows/push.yml
vendored
@@ -170,7 +170,7 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
- name: Check filebeat output
|
- name: Check filebeat output
|
||||||
run: ./.github/single-node-fb-check.sh
|
run: ./.github/single-node-filebeat-check.sh
|
||||||
|
|
||||||
- name: Check Wazuh dashboard service URL
|
- name: Check Wazuh dashboard service URL
|
||||||
run: |
|
run: |
|
||||||
@@ -301,7 +301,7 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
- name: Check filebeat output
|
- name: Check filebeat output
|
||||||
run: ./.github/multi-node-fb-check.sh
|
run: ./.github/multi-node-filebeat-check.sh
|
||||||
|
|
||||||
- name: Check Wazuh dashboard service URL
|
- name: Check Wazuh dashboard service URL
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user