From 7489a35f96a78aefa438ad84888c1d2d57645d27 Mon Sep 17 00:00:00 2001 From: Thomas Farr Date: Tue, 7 Jan 2025 23:14:17 +1300 Subject: [PATCH] Fix tests Signed-off-by: Thomas Farr --- .../opensearch/integTest/AbstractCatClientIT.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/java-client/src/test/java11/org/opensearch/client/opensearch/integTest/AbstractCatClientIT.java b/java-client/src/test/java11/org/opensearch/client/opensearch/integTest/AbstractCatClientIT.java index dcc626fe44..895ac297b5 100644 --- a/java-client/src/test/java11/org/opensearch/client/opensearch/integTest/AbstractCatClientIT.java +++ b/java-client/src/test/java11/org/opensearch/client/opensearch/integTest/AbstractCatClientIT.java @@ -22,6 +22,7 @@ import org.opensearch.client.opensearch.cat.AllocationResponse; import org.opensearch.client.opensearch.cat.IndicesResponse; import org.opensearch.client.opensearch.cat.NodesResponse; +import org.opensearch.client.opensearch.cat.PitSegmentsResponse; import org.opensearch.client.opensearch.cat.PluginsResponse; import org.opensearch.client.opensearch.cat.RecoveryResponse; import org.opensearch.client.opensearch.cat.SegmentsResponse; @@ -252,14 +253,14 @@ public void testCatPitSegments() throws Exception { createPit("cat-pit-segments-test-index"); - SegmentsResponse PitSegmentsResponse = javaClient().cat().pitSegments(r -> r.headers("index,shard,id,segment,size")); + PitSegmentsResponse pitSegmentsResponse = javaClient().cat().pitSegments(r -> r.headers("index,shard,id,segment,size")); - assertNotNull("PitSegmentsResponse.segments() is null", PitSegmentsResponse.valueBody()); + assertNotNull("pitSegmentsResponse.segments() is null", pitSegmentsResponse.valueBody()); if (version.onOrAfter(Version.V_2_10_0)) { - assertTrue("PitSegmentsResponse.segments().size() == 0", PitSegmentsResponse.valueBody().isEmpty()); + assertTrue("pitSegmentsResponse.segments().size() == 0", pitSegmentsResponse.valueBody().isEmpty()); } else { - assertTrue("PitSegmentsResponse.segments().size() == 0", PitSegmentsResponse.valueBody().size() > 0); + assertTrue("pitSegmentsResponse.segments().size() > 0", pitSegmentsResponse.valueBody().size() > 0); } } @@ -276,5 +277,4 @@ private void createPit(String indexName) throws Exception { assertNotNull(createPitResponse); assertNotNull(createPitResponse.pitId()); } - }