Skip to content

Commit

Permalink
More travis2 (#47)
Browse files Browse the repository at this point in the history
* more travis

* more travis

* more travis

* more travis

* more travis
  • Loading branch information
Napsty authored May 13, 2022
1 parent 912930a commit 40f1200
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test_disk.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
set -e
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
echo -e "\e[1m\e[32m✔ Test 3.1 OK: Disk check worked and shows green\e[0m"
Expand All @@ -11,4 +10,8 @@ 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
exitcode=1
fi

exit $exitcode

0 comments on commit 40f1200

Please sign in to comment.