From 4dfdb2c854b93856245050bf7df8985300e0bb9b Mon Sep 17 00:00:00 2001 From: Paras Jain Date: Thu, 28 Sep 2023 12:00:10 +0530 Subject: [PATCH] fixed URL and client for testNodeStats in BWC tests Signed-off-by: Paras Jain --- .../security/bwc/SecurityBackwardsCompatibilityIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bwc-test/src/test/java/org/opensearch/security/bwc/SecurityBackwardsCompatibilityIT.java b/bwc-test/src/test/java/org/opensearch/security/bwc/SecurityBackwardsCompatibilityIT.java index 702f04c2e0..1647dbb132 100644 --- a/bwc-test/src/test/java/org/opensearch/security/bwc/SecurityBackwardsCompatibilityIT.java +++ b/bwc-test/src/test/java/org/opensearch/security/bwc/SecurityBackwardsCompatibilityIT.java @@ -197,7 +197,7 @@ public void testDataIngestionAndSearchBackwardsCompatibility() throws Exception } public void testNodeStats() throws IOException { - List responses = RestHelper.requestAgainstAllNodes(testUserRestClient, "GET", "_node/stats", null); + List responses = RestHelper.requestAgainstAllNodes(client(), "GET", "_nodes/stats", null); responses.forEach(r -> Assert.assertEquals(200, r.getStatusLine().getStatusCode())); }