Skip to content

Commit

Permalink
Change TrustStoreTest to use File.separator to support Windows path (o…
Browse files Browse the repository at this point in the history
…pensearch-project#258) (opensearch-project#261)

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
(cherry picked from commit 7dcb3a0)

Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
1 parent 3e4af6c commit 572c301
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class TrustStoreTest {
public void testCreate() throws Exception {
String resourceName = "sample.pem";
String absolutePath = new File(getClass().getClassLoader().getResource(resourceName).getFile()).getAbsolutePath();
assertTrue(absolutePath.endsWith("/sample.pem"));
assertTrue(absolutePath.endsWith(File.separator + "sample.pem"));

KeyStore store = new TrustStore(absolutePath).create();
assertNotNull(store);
Expand Down

0 comments on commit 572c301

Please sign in to comment.