Skip to content

Commit

Permalink
travis: Silence curl
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineco committed Feb 26, 2020
1 parent 0291e8c commit fa5b924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ curl -X POST -D- 'http:https://localhost:5601/api/saved_objects/index-pattern' \
-d '{"attributes":{"title":"logstash-*","timeFieldName":"@timestamp"}}'

log 'Searching index pattern via Kibana API'
response="$(curl 'http:https://localhost:5601/api/saved_objects/_find?type=index-pattern' -u elastic:changeme)"
response="$(curl 'http:https://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
Expand All @@ -92,7 +92,7 @@ curl -X POST 'http:https://localhost:9200/_refresh' -u elastic:changeme \
-s -w '\n'

log 'Searching message in Elasticsearch'
response="$(curl 'http:https://localhost:9200/_count?q=message:dockerelk&pretty' -u elastic:changeme)"
response="$(curl 'http:https://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
Expand Down

0 comments on commit fa5b924

Please sign in to comment.