File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ test_elasticsearch(){
43
43
local version=" $1 "
44
44
section2 " Setting up Elasticsearch $version test container"
45
45
VERSION=" $version " docker-compose up -d
46
+ hr
46
47
echo " getting Elasticsearch dynamic port mapping:"
47
48
docker_compose_port " Elasticsearch"
48
49
hr
@@ -55,11 +56,12 @@ test_elasticsearch(){
55
56
fi
56
57
non_es_node1=" 127.0.0.1:1025"
57
58
non_es_node2=" 127.0.0.1:1026"
58
- hr
59
- ELASTICSEARCH_PORT=" $ELASTICSEARCH_PORT_DEFAULT " run_output " NO_AVAILABLE_SERVER" ./find_active_elasticsearch_node.py $non_es_node1 $non_es_node2
60
- hr
61
- ELASTICSEARCH_PORT=" $ELASTICSEARCH_PORT_DEFAULT " run_output " $ELASTICSEARCH_HOST :$ELASTICSEARCH_PORT " ./find_active_elasticsearch_node.py $non_es_node1 $non_es_node2 " $ELASTICSEARCH_HOST :$ELASTICSEARCH_PORT "
62
- hr
59
+ ELASTICSEARCH_PORT=" $ELASTICSEARCH_PORT_DEFAULT " \
60
+ ERRCODE=1 run_grep " ^NO_AVAILABLE_SERVER$" ./find_active_elasticsearch_node.py $non_es_node1 $non_es_node2
61
+
62
+ ELASTICSEARCH_PORT=" $ELASTICSEARCH_PORT_DEFAULT " \
63
+ run_grep " ^$ELASTICSEARCH_HOST :$ELASTICSEARCH_PORT $" ./find_active_elasticsearch_node.py $non_es_node1 $non_es_node2 " $ELASTICSEARCH_HOST :$ELASTICSEARCH_PORT "
64
+
63
65
docker-compose down
64
66
}
65
67
You can’t perform that action at this time.
0 commit comments