travis: Silence curl
This commit is contained in:
parent
0291e8c84d
commit
fa5b924656
|
@ -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 \
|
||||||
-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
|
||||||
|
|
Loading…
Reference in New Issue