From fa5b924656b67f377db77c982e623b534d39bf80 Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Wed, 26 Feb 2020 15:35:02 +0100 Subject: [PATCH] travis: Silence curl --- .travis/run-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis/run-tests.sh b/.travis/run-tests.sh index c7040da..26e24a8 100755 --- a/.travis/run-tests.sh +++ b/.travis/run-tests.sh @@ -76,7 +76,7 @@ curl -X POST -D- 'http://localhost:5601/api/saved_objects/index-pattern' \ -d '{"attributes":{"title":"logstash-*","timeFieldName":"@timestamp"}}' log 'Searching index pattern via Kibana API' -response="$(curl 'http://localhost:5601/api/saved_objects/_find?type=index-pattern' -u elastic:changeme)" +response="$(curl 'http://localhost:5601/api/saved_objects/_find?type=index-pattern' -s -u elastic:changeme)" echo "$response" count="$(jq -rn --argjson data "${response}" '$data.total')" if [[ $count -ne 1 ]]; then @@ -92,7 +92,7 @@ curl -X POST 'http://localhost:9200/_refresh' -u elastic:changeme \ -s -w '\n' log 'Searching message in Elasticsearch' -response="$(curl 'http://localhost:9200/_count?q=message:dockerelk&pretty' -u elastic:changeme)" +response="$(curl 'http://localhost:9200/_count?q=message:dockerelk&pretty' -s -u elastic:changeme)" echo "$response" count="$(jq -rn --argjson data "${response}" '$data.count')" if [[ $count -ne 1 ]]; then