File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
modules/elasticsearch/src/test/java/org/testcontainers/elasticsearch Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -122,8 +122,10 @@ public void restClientClusterHealth() throws IOException {
122
122
.build ();
123
123
124
124
Response response = client .performRequest (new Request ("GET" , "/_cluster/health" ));
125
+ // }}
125
126
assertThat (response .getStatusLine ().getStatusCode (), is (200 ));
126
127
assertThat (EntityUtils .toString (response .getEntity ()), containsString ("cluster_name" ));
128
+ // httpClientContainer {{
127
129
}
128
130
// }
129
131
}
@@ -133,7 +135,6 @@ public void transportClientClusterHealth() {
133
135
// transportClientContainer {
134
136
// Create the elasticsearch container.
135
137
try (ElasticsearchContainer container = new ElasticsearchContainer ()) {
136
-
137
138
// Start the container. This step might take some time...
138
139
container .start ();
139
140
@@ -145,7 +146,9 @@ public void transportClientClusterHealth() {
145
146
.addTransportAddress (transportAddress )) {
146
147
ClusterHealthResponse healths = transportClient .admin ().cluster ().prepareHealth ().get ();
147
148
String clusterName = healths .getClusterName ();
149
+ // }}}
148
150
assertThat (clusterName , is (expectedClusterName ));
151
+ // transportClientContainer {{{
149
152
}
150
153
}
151
154
// }
You can’t perform that action at this time.
0 commit comments