diff --git a/build.gradle b/build.gradle index 6e362d85c4..4bb9e8dc09 100644 --- a/build.gradle +++ b/build.gradle @@ -737,6 +737,7 @@ dependencies { } integrationTestImplementation 'com.unboundid:unboundid-ldapsdk:4.0.14' integrationTestImplementation "org.opensearch.plugin:mapper-size:${opensearch_version}" + integrationTestImplementation "org.opensearch.plugin:transport-nio-client:${opensearch_version}" integrationTestImplementation "org.apache.httpcomponents:httpclient-cache:4.5.14" integrationTestImplementation "org.apache.httpcomponents:httpclient:4.5.14" integrationTestImplementation "org.apache.httpcomponents:fluent-hc:4.5.14" diff --git a/src/integrationTest/java/org/opensearch/security/ResourceFocusedTests.java b/src/integrationTest/java/org/opensearch/security/ResourceFocusedTests.java index 7264a33542..fdca308427 100644 --- a/src/integrationTest/java/org/opensearch/security/ResourceFocusedTests.java +++ b/src/integrationTest/java/org/opensearch/security/ResourceFocusedTests.java @@ -40,6 +40,7 @@ import org.opensearch.test.framework.cluster.ClusterManager; import org.opensearch.test.framework.cluster.LocalCluster; import org.opensearch.test.framework.cluster.TestRestClient; +import org.opensearch.transport.nio.NioTransportPlugin; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; @@ -73,6 +74,8 @@ public class ResourceFocusedTests { public static LocalCluster cluster = new LocalCluster.Builder().clusterManager(ClusterManager.THREE_CLUSTER_MANAGERS) .authc(AUTHC_HTTPBASIC_INTERNAL) .users(ADMIN_USER, LIMITED_USER) + .nodeSettings(Map.of("http.type", "nio-http-transport-secure")) + .plugin(NioTransportPlugin.class) .anonymousAuth(false) .doNotFailOnForbidden(true) .build();