From 182029155e0ba2e77b6a6a1b275ffe682faaac00 Mon Sep 17 00:00:00 2001 From: vcerenu Date: Thu, 26 May 2022 15:59:21 -0300 Subject: [PATCH] test CI --- .github/workflows/push.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index a4ac155f..be6da63a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -44,9 +44,9 @@ jobs: 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" + run: curl -k -X GET "https://0.0.0.0:55000" -H "Authorization: Bearer $TOKEN" + env: + TOKEN: $(curl -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true") - name: Stop single node stack run: docker-compose -f single-node/docker-compose.yml down @@ -54,7 +54,7 @@ jobs: - name: Check Wazuh dashboard service URL uses: jtalk/url-health-check-action@v2 with: - url: https://0.0.0.0:443 + url: https://127.0.0.1:443 follow-redirect: true max-attempts: 3 retry-delay: 10s @@ -77,14 +77,15 @@ jobs: 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" + run: curl -k -X GET "https://0.0.0.0:55000/cluster/status" -H "Authorization: Bearer $TOKEN" + env: + TOKEN: $(curl -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true") + - name: Check Wazuh dashboard service URL uses: jtalk/url-health-check-action@v2 with: - url: https://0.0.0.0:443 + url: https://127.0.0.1:443 follow-redirect: true max-attempts: 3 retry-delay: 10s