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

[GitHub] [ignite-3] valepakh commented on a diff in pull request #1907: IGNITE-19191 Optimize integration tests

valepakh commented on code in PR #1907:
URL: https://github.com/apache/ignite-3/pull/1907#discussion_r1159586207


##########
modules/cli/src/integrationTest/java/org/apache/ignite/internal/rest/ItGeneratedRestClientTest.java:
##########
@@ -72,31 +72,35 @@
 import org.apache.ignite.rest.client.model.NodeState;
 import org.apache.ignite.rest.client.model.Problem;
 import org.apache.ignite.rest.client.model.UnitStatus;
-import org.junit.jupiter.api.AfterEach;
-import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.TestInfo;
+import org.junit.jupiter.api.TestInstance;
+import org.junit.jupiter.api.TestInstance.Lifecycle;
 import org.junit.jupiter.api.extension.ExtendWith;
 
 /**
  * Test for autogenerated ignite rest client.
  */
 @ExtendWith(WorkDirectoryExtension.class)
 @MicronautTest(rebuildContext = true)
+@TestInstance(Lifecycle.PER_CLASS)
 public class ItGeneratedRestClientTest {
     /** Start network port for test nodes. */
     private static final int BASE_PORT = 3344;
 
     /** Start rest server port. */
     private static final int BASE_REST_PORT = 10300;
 
+    @WorkDirectory
+    private static Path workDir;

Review Comment:
   ```suggestion
       private static Path WORK_DIR;
   ```



##########
modules/runner/src/integrationTest/java/org/apache/ignite/internal/ssl/ItSslTest.java:
##########
@@ -45,34 +45,41 @@
 import org.apache.ignite.internal.app.IgniteImpl;
 import org.apache.ignite.internal.testframework.WorkDirectory;
 import org.intellij.lang.annotations.Language;
-import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.DisplayName;
 import org.junit.jupiter.api.Nested;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.TestInfo;
+import org.junit.jupiter.api.TestInstance;
+import org.junit.jupiter.api.TestInstance.Lifecycle;
 
 /** SSL support integration test. */
+@TestInstance(Lifecycle.PER_CLASS)
 public class ItSslTest extends IgniteIntegrationTest {
 
     private static String password;
 
-    private static String trustStorePath;
+    private String trustStorePath;
 
-    private static String keyStorePath;
+    private String keyStorePath;
+
+    private Cluster cluster;
+
+    @WorkDirectory
+    private static Path workDir;

Review Comment:
   ```suggestion
       private static Path WORK_DIR;
   ```



-- 
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