forked from wazuh/wazuh-docker
Test CI
This commit is contained in:
+12
-13
@@ -10,22 +10,22 @@ jobs:
|
|||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build Wazuh images
|
#- name: Build Wazuh images
|
||||||
run: build-docker-images/build-images.sh
|
# run: build-docker-images/build-images.sh
|
||||||
|
|
||||||
- name: Create enviroment variables
|
- name: Create enviroment variables
|
||||||
run: cat .env > $GITHUB_ENV
|
run: cat .env > $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install Goss
|
#- name: Install Goss
|
||||||
uses: e1himself/goss-installation-action@v1.0.3
|
# uses: e1himself/goss-installation-action@v1.0.3
|
||||||
with:
|
# with:
|
||||||
version: v0.3.16
|
# version: v0.3.16
|
||||||
|
|
||||||
- name: Execute Goss tests (wazuh-manager)
|
#- name: Execute Goss tests (wazuh-manager)
|
||||||
run: dgoss run wazuh/wazuh-manager:${{env.WAZUH_IMAGE_VERSION}}
|
# run: dgoss run wazuh/wazuh-manager:${{env.WAZUH_IMAGE_VERSION}}
|
||||||
env:
|
# env:
|
||||||
GOSS_SLEEP: 30
|
# GOSS_SLEEP: 30
|
||||||
GOSS_FILE: .github/.goss.yaml
|
# GOSS_FILE: .github/.goss.yaml
|
||||||
|
|
||||||
- name: Create single node certficates
|
- name: Create single node certficates
|
||||||
run: docker-compose -f single-node/generate-indexer-certs.yml run --rm generator
|
run: docker-compose -f single-node/generate-indexer-certs.yml run --rm generator
|
||||||
@@ -36,9 +36,8 @@ jobs:
|
|||||||
- name: Check Wazuh indexer start
|
- name: Check Wazuh indexer start
|
||||||
run: |
|
run: |
|
||||||
sleep 60
|
sleep 60
|
||||||
status="`curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s | wc -l`"
|
|
||||||
status_green="`curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s | grep green | wc -l`"
|
status_green="`curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s | grep green | wc -l`"
|
||||||
if [[ $status_green -eq $status ]]; then
|
if [[ $status_green -eq 1 ]]; then
|
||||||
curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s
|
curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s
|
||||||
else
|
else
|
||||||
curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s
|
curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s
|
||||||
|
|||||||
Reference in New Issue
Block a user