travis: Silence curl

parent 0291e8c8
...@@ -76,7 +76,7 @@ curl -X POST -D- 'http://localhost:5601/api/saved_objects/index-pattern' \ ...@@ -76,7 +76,7 @@ curl -X POST -D- 'http://localhost:5601/api/saved_objects/index-pattern' \
-d '{"attributes":{"title":"logstash-*","timeFieldName":"@timestamp"}}' -d '{"attributes":{"title":"logstash-*","timeFieldName":"@timestamp"}}'
log 'Searching index pattern via Kibana API' 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" echo "$response"
count="$(jq -rn --argjson data "${response}" '$data.total')" count="$(jq -rn --argjson data "${response}" '$data.total')"
if [[ $count -ne 1 ]]; then if [[ $count -ne 1 ]]; then
...@@ -92,7 +92,7 @@ curl -X POST 'http://localhost:9200/_refresh' -u elastic:changeme \ ...@@ -92,7 +92,7 @@ curl -X POST 'http://localhost:9200/_refresh' -u elastic:changeme \
-s -w '\n' -s -w '\n'
log 'Searching message in Elasticsearch' 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" echo "$response"
count="$(jq -rn --argjson data "${response}" '$data.count')" count="$(jq -rn --argjson data "${response}" '$data.count')"
if [[ $count -ne 1 ]]; then if [[ $count -ne 1 ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment