ademakov commented on code in PR #1779:
URL: https://github.com/apache/ignite-3/pull/1779#discussion_r1133976542
##########
modules/runner/src/integrationTest/java/org/apache/ignite/internal/rest/RestNode.java:
##########
@@ -128,29 +133,35 @@ private String bootstrapCfg() {
+ " ssl: {\n"
+ " enabled: " + sslEnabled + ",\n"
+ " clientAuth: " + (sslClientAuthEnabled ? "require" :
"none") + ",\n"
+ + " ciphers: \"" + ciphers + "\",\n"
+ " port: " + httpsPort + ",\n"
+ " keyStore: {\n"
- + " path: \"" + getResourcePath(keyStorePath) + "\",\n"
+ + " path: \"" + escapeWindowsPath(keyStoreFilePath) +
"\",\n"
+ " password: " + keyStorePassword + "\n"
+ " }, \n"
+ " trustStore: {\n"
+ " type: JKS,\n"
- + " path: \"" + getResourcePath(trustStorePath) +
"\",\n"
+ + " path: \"" + escapeWindowsPath(trustStoreFilePath) +
"\",\n"
+ " password: " + trustStorePassword + "\n"
+ " }\n"
+ " }\n"
+ " }\n"
+ "}";
}
- private static String getResourcePath(String resource) {
+ /** Converts URL gotten from classloader to proper file system path and
escape backslashes so it could be used in the config. */
Review Comment:
The part of the comment about escaping is no longer valid.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]