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>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
  • Loading branch information
2 people authored and AWSHurneyt committed Apr 12, 2024
1 parent 064c0c4 commit f0eed9f
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 f0eed9f

Please sign in to comment.