mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-03 05:23:16 +00:00
test CI
This commit is contained in:
30
.github/workflows/push.yml
vendored
30
.github/workflows/push.yml
vendored
@@ -38,10 +38,36 @@ jobs:
|
||||
with:
|
||||
time: '60s'
|
||||
|
||||
- name: Check Wazuh indexer start
|
||||
run: curl -XGET https://0.0.0.0:9200/_cluster/health -u admin:SecretPassword -k
|
||||
- name: Check Wazuh manager start
|
||||
run: |
|
||||
curl -XGET https://0.0.0.0:9200/_cluster/health?wait_for_status=green&timeout=120s -u admin:SecretPassword -k
|
||||
curl -XGET https://0.0.0.0:9200/_cluster/nodes -u admin:SecretPassword -k
|
||||
|
||||
- name: Check Wazuh indexer start
|
||||
run: |
|
||||
TOKEN=$(curl -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true")
|
||||
curl -k -X GET "https://0.0.0.0:55000/agents/outdated?pretty=true" -H "Authorization: Bearer $TOKEN"
|
||||
|
||||
- name: Stop single node stack
|
||||
run: docker-compose -f single-node/docker-compose.yml down
|
||||
|
||||
- name: Create multi node certficates
|
||||
run: docker-compose -f multi-node/generate-indexer-certs.yml run --rm generator
|
||||
|
||||
- name: Start multi node stack
|
||||
run: docker-compose -f multi-node/docker-compose.yml up -d
|
||||
|
||||
- name: Sleep for 60 seconds
|
||||
uses: jakejarvis/wait-action@master
|
||||
with:
|
||||
time: '60s'
|
||||
|
||||
- name: Check Wazuh indexer start
|
||||
run: |
|
||||
curl -XGET https://0.0.0.0:9200/_cluster/health?wait_for_status=green&timeout=120s -u admin:SecretPassword -k
|
||||
curl -XGET https://0.0.0.0:9200/_cluster/nodes -u admin:SecretPassword -k
|
||||
|
||||
- name: Check Wazuh manager start
|
||||
run: |
|
||||
TOKEN=$(curl -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true")
|
||||
curl -k -X GET "https://0.0.0.0:55000/agents/outdated?pretty=true" -H "Authorization: Bearer $TOKEN"
|
||||
Reference in New Issue
Block a user