You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "Flaugh24 (via GitHub)" <gi...@apache.org> on 2023/05/04 12:54:20 UTC

[GitHub] [ignite-3] Flaugh24 commented on a diff in pull request #1991: IGNITE-19077 Apply custom cluster config on cluster init

Flaugh24 commented on code in PR #1991:
URL: https://github.com/apache/ignite-3/pull/1991#discussion_r1184973774


##########
modules/cli/src/testFixtures/java/org/apache/ignite/internal/cli/commands/cliconfig/TestConfigManagerHelper.java:
##########
@@ -97,6 +97,14 @@ public static File createClusterUrlSslConfig() {
         return copyResourceToTempFile(CLUSTER_URL_SSL);
     }
 
+    public static String readResourceToString(String resource) throws IOException {
+        byte[] bytes = TestConfigManagerHelper.class
+                .getClassLoader()
+                .getResourceAsStream(resource)
+                .readAllBytes();

Review Comment:
   after moving the config file to the testFixtures, it can only be read as a stream. 



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org