Skip to content

Commit

Permalink
Travis fix (#51)
Browse files Browse the repository at this point in the history
Fix Travis Check (Disk Check, do not focus on static sizes)
  • Loading branch information
Napsty authored Sep 29, 2023
1 parent 40f1200 commit 9e39eea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ before_script:

script:
- ./check_es_system.sh --help || true
- |
test/test_status.sh
test/test_readonly.sh
test/test_disk.sh
- test/test_status.sh
- test/test_readonly.sh
- test/test_disk.sh


3 changes: 2 additions & 1 deletion test/test_disk.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
echo "Test Elasticsearch status"
./check_es_system.sh -H 127.0.0.1 -P 9200 -t disk
output=$(./check_es_system.sh -H 127.0.0.1 -P 9200 -t disk)

if [[ $? -eq 0 ]]; then
Expand All @@ -10,7 +11,7 @@ else
exitcode=1
fi

if [[ "${output}" != "ES SYSTEM OK - Disk usage is at 0% (0 G from 67 G)|es_disk=648B;58128941056;69028117504;0;72661176320" ]]; then
if ! [[ "${output}" =~ "ES SYSTEM OK - Disk usage is at 0%" ]]; then
exitcode=1
fi

Expand Down

0 comments on commit 9e39eea

Please sign in to comment.