Skip to content

Commit

Permalink
Test option to set SSLContext protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Nov 25, 2024
1 parent 4e0173c commit dcabe80
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/java/redis/clients/jedis/SSLOptionsJedisTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ public void connectWithSslInsecure() {
}
}

@Test
public void connectWithSslContextProtocol() {
try (Jedis jedis = new Jedis(endpoint.getHostAndPort(),
endpoint.getClientConfigBuilder()
.sslOptions(SslOptions.builder()
.sslContextProtocol("SSL")
.truststore(new File("src/test/resources/truststore.jceks"))
.trustStoreType("jceks")
.build()).build())) {
assertEquals("PONG", jedis.ping());
}
}

@Test
public void connectWithAcl() {
try (Jedis jedis = new Jedis(aclEndpoint.getHostAndPort(),
Expand Down

0 comments on commit dcabe80

Please sign in to comment.