Skip to content

Commit

Permalink
Read keyStore files with getResources
Browse files Browse the repository at this point in the history
  • Loading branch information
jcralmeida authored and rafael-telles committed Dec 6, 2021
1 parent 7d5cb74 commit 5ee473b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public class ConnectionTlsTest {
private String serverUrl;
private BufferAllocator allocator;
private FlightTestUtils flightTestUtils;
private final String keyStorePath = "src/test/resources/keys/keyStore.jks";
private final String keyStorePath = this.getClass().getResource("/keys/keyStore.jks")
.getPath();
private final String noCertificateKeyStorePath = this.getClass().getResource("/keys/noCertificate.jks")
.getPath();
private final String keyStorePass = "flight";

@Before
Expand Down Expand Up @@ -152,7 +155,6 @@ public void testGetEncryptedClientAuthenticated() throws Exception {
*/
@Test(expected = SQLException.class)
public void testGetEncryptedClientWithNoCertificateOnKeyStore() throws Exception {
final String noCertificateKeyStorePath = "src/test/resources/keys/noCertificate.jks";
final String noCertificateKeyStorePassword = "flight1";

try (ArrowFlightClient client = ArrowFlightClient
Expand Down

0 comments on commit 5ee473b

Please sign in to comment.