forked from wazuh/wazuh-docker
test CI
This commit is contained in:
@@ -83,11 +83,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Check Wazuh manager start
|
- name: Check Wazuh manager start
|
||||||
run: |
|
run: |
|
||||||
wget https://packages.wazuh.com/4.3/wazuh-certs-tool.sh -o wazuh-certs-tool.sh
|
apt install jq -y
|
||||||
source ./wazuh-certs-tool.sh | true
|
nodes=curl -k -X GET "https://0.0.0.0:55000/cluster/nodes" -H "Authorization: Bearer $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}}"`"
|
if [[ $nodes -eq 2 ]]; then
|
||||||
cert_parseYaml $nodes
|
echo "Wazuh indexer nodes: ${nodes}"
|
||||||
|
else
|
||||||
|
echo "Wazuh indexer nodes: ${nodes}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
env:
|
env:
|
||||||
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")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user