Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 1f13625

Browse files
author
Chris Wiechmann
committed
Update metricbeat-entrypoint-test.bats
1 parent 434a3cb commit 1f13625

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

metricbeat/scripts/metricbeat-entrypoint-test.bats

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,15 @@ setup() {
3030
export METRICBEAT_MODULES="kibana,elasticsearch"
3131
run metricbeat/scripts/metricbeat-entrypoint.sh
3232
[ "$status" -eq 0 ]
33-
[ "${lines[2]}" = 'Elasticsearch hosts: ["https://elasticsearch1.host:9200","https://elasticsearch1.host:9201"] will be monitored by Metricbeat' ]
33+
[ "${lines[4]}" = 'Elasticsearch hosts: ["https://elasticsearch1.host:9200","https://elasticsearch1.host:9201"] will be monitored by Metricbeat' ]
3434
}
3535

3636
@test "invoke metric-entrypoint with ELASTICSEARCH_HOSTS including spaces prints adjusted hosts" {
3737
export ELASTICSEARCH_HOSTS="https://elasticsearch1.host:9200 , https://elasticsearch2.host:9202, https://elasticsearch3.host:9203"
3838
export METRICBEAT_MODULES="kibana,elasticsearch"
3939
run metricbeat/scripts/metricbeat-entrypoint.sh
40-
echo "Line 0: ${lines[0]}"
41-
echo "Line 1: ${lines[1]}"
42-
echo "Line 2: ${lines[2]}"
43-
echo "Line 3: ${lines[3]}"
4440
[ "$status" -eq 0 ]
45-
[ "${lines[2]}" = 'Elasticsearch hosts: ["https://elasticsearch1.host:9200","https://elasticsearch2.host:9202","https://elasticsearch3.host:9203"] will be monitored by Metricbeat' ]
41+
[ "${lines[4]}" = 'Elasticsearch hosts: ["https://elasticsearch1.host:9200","https://elasticsearch2.host:9202","https://elasticsearch3.host:9203"] will be monitored by Metricbeat' ]
4642
}
4743

4844
@test "invoke metric-entrypoint without KIBANA_HOST - First Elasticsearch host should be used as KIBANA_HOST" {

0 commit comments

Comments
 (0)