Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <tsfarr@amazon.com>
  • Loading branch information
Xtansia committed Jan 7, 2025
1 parent 2580e8f commit 3666af9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.opensearch.client.opensearch._types.Result;
import org.opensearch.client.opensearch._types.Time;
import org.opensearch.client.opensearch.cat.AliasesResponse;
import org.opensearch.client.opensearch.cat.AllPitSegmentsResponse;
import org.opensearch.client.opensearch.cat.AllocationResponse;
import org.opensearch.client.opensearch.cat.IndicesResponse;
import org.opensearch.client.opensearch.cat.NodesResponse;
Expand Down Expand Up @@ -237,7 +238,7 @@ public void testCatSegments() throws Exception {
}

@Test
public void testCatPitSegments() throws Exception {
public void testCatAllPitSegments() throws Exception {
final Version version = getServerVersion();
assumeTrue("The PIT is supported in OpenSearch 2.4.0 and later", version.onOrAfter(Version.V_2_4_0));
createIndex("cat-pit-segments-test-index");
Expand All @@ -253,7 +254,7 @@ public void testCatPitSegments() throws Exception {

createPit("cat-pit-segments-test-index");

PitSegmentsResponse pitSegmentsResponse = javaClient().cat().pitSegments(r -> r.headers("index,shard,id,segment,size"));
AllPitSegmentsResponse pitSegmentsResponse = javaClient().cat().allPitSegments(r -> r.headers("index,shard,id,segment,size"));

assertNotNull("pitSegmentsResponse.segments() is null", pitSegmentsResponse.valueBody());

Expand Down

0 comments on commit 3666af9

Please sign in to comment.