diff --git a/src/test/java/org/opensearch/search/asynchronous/SecurityEnabledRestTestCase.java b/src/test/java/org/opensearch/search/asynchronous/SecurityEnabledRestTestCase.java index 39ff95f..5e5d5e3 100644 --- a/src/test/java/org/opensearch/search/asynchronous/SecurityEnabledRestTestCase.java +++ b/src/test/java/org/opensearch/search/asynchronous/SecurityEnabledRestTestCase.java @@ -99,7 +99,7 @@ protected RestClient buildClient(Settings settings, HttpHost[] hosts) throws IOE } catch (URISyntaxException e) { throw new RuntimeException(e); } - Path configPath = PathUtils.get(uri).toAbsolutePath(); + Path configPath = PathUtils.get(uri).getParent().toAbsolutePath(); return new SecureRestClientBuilder(settings, configPath).build(); } else { configureHttpsClient(builder, settings);