Skip to content

Commit

Permalink
Fix ClusterRerouteResponseTests
Browse files Browse the repository at this point in the history
Signed-off-by: Tianli Feng <[email protected]>
  • Loading branch information
Tianli Feng committed Mar 9, 2022
1 parent e8dbdf2 commit 9bc6994
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public void testToXContent() throws IOException {
+ clusterState.stateUUID()
+ "\",\n"
+ " \"master_node\" : \"node0\",\n"
+ " \"cluster_manager_node\" : \"node0\",\n"
+ " \"blocks\" : { },\n"
+ " \"nodes\" : {\n"
+ " \"node0\" : {\n"
Expand Down Expand Up @@ -173,7 +174,7 @@ public void testToXContent() throws IOException {
XContentBuilder builder = JsonXContent.contentBuilder().prettyPrint();
Map<String, String> params = new HashMap<>();
params.put("explain", "true");
params.put("metric", "version,master_node");
params.put("metric", "version,cluster_manager_node");
clusterRerouteResponse.toXContent(builder, new ToXContent.MapParams(params));
assertEquals(
"{\n"
Expand All @@ -184,7 +185,7 @@ public void testToXContent() throws IOException {
+ " \"state_uuid\" : \""
+ clusterState.stateUUID()
+ "\",\n"
+ " \"master_node\" : \"node0\"\n"
+ " \"cluster_manager_node\" : \"node0\"\n"
+ " },\n"
+ " \"explanations\" : [\n"
+ " {\n"
Expand Down

0 comments on commit 9bc6994

Please sign in to comment.