Skip to content

Commit

Permalink
Moved Elasticsearch dependencies to generic dependencies
Browse files Browse the repository at this point in the history
Omitting waiting for Elasticsearch as it should be started at this time.
  • Loading branch information
thomaspatzke authored Mar 29, 2020
1 parent 5e258ef commit 4dbe5e2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/sigma-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r tools/requirements.txt -r tools/requirements-devel.txt -r tools/requirements-misp.txt -r tests/requirements-test.txt
- name: Test Sigma Tools and Rules
run: |
make test
- name: Test Generated Elasticsearch Query Strings
run: |
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt install -y apt-transport-https
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic.list
sudo apt update
sudo apt install -y elasticsearch curl jq
sudo apt install -y elasticsearch
sudo systemctl start elasticsearch
until curl -s elasticsearch:9200; do echo "Waiting for Elasticsearch server..."; sleep 10; done
until curl -s elasticsearch:9200/_cluster/health | jq -e '.status != "red"'; do echo "Waiting for Elasticsearch cluster to become ready..."; sleep 10; done
- name: Test Sigma Tools and Rules
run: |
make test
- name: Test Generated Elasticsearch Query Strings
run: |
make test-backend-es-qs

0 comments on commit 4dbe5e2

Please sign in to comment.