mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-23 04:51:57 +00:00
test CI
This commit is contained in:
22
.github/workflows/push.yml
vendored
22
.github/workflows/push.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
||||
- 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
|
||||
curl -XGET "https://0.0.0.0:9200/_cat/nodes?v" -u admin:SecretPassword -k
|
||||
|
||||
- name: Check Wazuh manager start
|
||||
run: |
|
||||
@@ -51,6 +51,15 @@ jobs:
|
||||
- name: Stop single node stack
|
||||
run: docker-compose -f single-node/docker-compose.yml down
|
||||
|
||||
- name: Check Wazuh dashboard service URL
|
||||
uses: jtalk/url-health-check-action@v2
|
||||
with:
|
||||
url: https://0.0.0.0:443
|
||||
follow-redirect: true
|
||||
max-attempts: 3
|
||||
retry-delay: 10s
|
||||
retry-all: false
|
||||
|
||||
- name: Create multi node certficates
|
||||
run: docker-compose -f multi-node/generate-indexer-certs.yml run --rm generator
|
||||
|
||||
@@ -65,9 +74,18 @@ jobs:
|
||||
- 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
|
||||
curl -XGET "https://0.0.0.0:9200/_cat/nodes?v" -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" -H "Authorization: Bearer $TOKEN"
|
||||
|
||||
- name: Check Wazuh dashboard service URL
|
||||
uses: jtalk/url-health-check-action@v2
|
||||
with:
|
||||
url: https://0.0.0.0:443
|
||||
follow-redirect: true
|
||||
max-attempts: 3
|
||||
retry-delay: 10s
|
||||
retry-all: false
|
||||
|
Reference in New Issue
Block a user