Skip to content

Commit 4a5de14

Browse files
committed
Use openssl
1 parent f490913 commit 4a5de14

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

http-clients/aws-crt-client/src/test/java/software/amazon/awssdk/http/crt/H1ServerBehaviorTest.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
import static software.amazon.awssdk.http.SdkHttpConfigurationOption.TRUST_ALL_CERTIFICATES;
1919

20-
import org.junit.AfterClass;
21-
import org.junit.BeforeClass;
2220
import software.amazon.awssdk.http.SdkAsyncHttpClientH1TestSuite;
2321
import software.amazon.awssdk.http.async.SdkAsyncHttpClient;
2422
import software.amazon.awssdk.utils.AttributeMap;
@@ -28,19 +26,6 @@
2826
*/
2927
public class H1ServerBehaviorTest extends SdkAsyncHttpClientH1TestSuite {
3028

31-
private static final String JDK_TLS_CLIENT_PROTOCOLS = "jdk.tls.client.protocols";
32-
33-
@BeforeClass
34-
public static void setUp() {
35-
// TODO: remove this once the dependency is fixed
36-
System.setProperty(JDK_TLS_CLIENT_PROTOCOLS, "TLSv1.2");
37-
}
38-
39-
@AfterClass
40-
public static void cleanUp() {
41-
System.clearProperty(JDK_TLS_CLIENT_PROTOCOLS);
42-
}
43-
4429
@Override
4530
protected SdkAsyncHttpClient setupClient() {
4631
return AwsCrtAsyncHttpClient.builder()

test/http-client-tests/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@
103103
<groupId>io.netty</groupId>
104104
<artifactId>netty-handler</artifactId>
105105
</dependency>
106+
<dependency>
107+
<groupId>io.netty</groupId>
108+
<artifactId>netty-tcnative-boringssl-static</artifactId>
109+
<scope>compile</scope>
110+
</dependency>
106111
</dependencies>
107112

108113
<!-- Disable spotbugs for this test module to speed up the build. -->
@@ -115,6 +120,13 @@
115120
<skip>true</skip>
116121
</configuration>
117122
</plugin>
123+
<plugin>
124+
<groupId>org.apache.maven.plugins</groupId>
125+
<artifactId>maven-dependency-plugin</artifactId>
126+
<configuration>
127+
<skip>true</skip>
128+
</configuration>
129+
</plugin>
118130
</plugins>
119131
</build>
120132
</project>

0 commit comments

Comments
 (0)