forked from wazuh/wazuh-docker
test CI
This commit is contained in:
@@ -38,15 +38,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
time: '60s'
|
time: '60s'
|
||||||
|
|
||||||
- name: Check Wazuh manager start
|
- name: Check Wazuh indexer start
|
||||||
run: |
|
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/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/_cluster/nodes -u admin:SecretPassword -k
|
||||||
|
|
||||||
- name: Check Wazuh indexer start
|
- name: Check Wazuh manager start
|
||||||
run: |
|
run: |
|
||||||
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")
|
||||||
curl -k -X GET "https://0.0.0.0:55000/agents/outdated?pretty=true" -H "Authorization: Bearer $TOKEN"
|
curl -k -X GET "https://0.0.0.0:55000" -H "Authorization: Bearer $TOKEN"
|
||||||
|
|
||||||
- name: Stop single node stack
|
- name: Stop single node stack
|
||||||
run: docker-compose -f single-node/docker-compose.yml down
|
run: docker-compose -f single-node/docker-compose.yml down
|
||||||
@@ -70,4 +70,4 @@ jobs:
|
|||||||
- name: Check Wazuh manager start
|
- name: Check Wazuh manager start
|
||||||
run: |
|
run: |
|
||||||
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")
|
||||||
curl -k -X GET "https://0.0.0.0:55000/agents/outdated?pretty=true" -H "Authorization: Bearer $TOKEN"
|
curl -k -X GET "https://0.0.0.0:55000" -H "Authorization: Bearer $TOKEN"
|
||||||
Reference in New Issue
Block a user