You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by hu...@apache.org on 2020/04/08 22:53:32 UTC

[helix] 02/50: Enable two test runs with multiZk system property (#710)

This is an automated email from the ASF dual-hosted git repository.

hulee pushed a commit to branch zooscalability_merge
in repository https://gitbox.apache.org/repos/asf/helix.git

commit 8239361a51c9a0372eaf9c83856045e87ece3bcf
Author: Hunter Lee <hu...@linkedin.com>
AuthorDate: Fri Jan 31 16:53:45 2020 -0800

    Enable two test runs with multiZk system property (#710)
    
    We want to achieve horizontal scalability for ZK, meaning we want to allow users to add more ZK deployments and shard based on the ZK read/write path. To test this going forward, we want to be able to execute existing tests in two different environments: 1. single-ZK env, and 2. multi-ZK env.
    Changelist:
    1. Create two executions for maven-surefire-plugin with multiZk system property
---
 pom.xml | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index c131ce8..e773d07 100644
--- a/pom.xml
+++ b/pom.xml
@@ -628,7 +628,39 @@ under the License.
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-surefire-plugin</artifactId>
-          <version>2.18.1</version>
+          <version>3.0.0-M3</version>
+          <executions>
+            <!--
+            "executions" enables multiple runs of integration test suites. This is to enable two
+            runs: 1. run in a single-ZK environment, 2. run in a multi-ZK environment.
+            "multiZk" is the config accessible via Systems.Properties so that the two runs could be
+            differentiated.
+            -->
+            <execution>
+              <goals>
+                <goal>test</goal>
+              </goals>
+              <id>default-test</id>
+              <phase>test</phase>
+              <configuration>
+                <systemPropertyVariables>
+                  <multiZk>false</multiZk>
+                </systemPropertyVariables>
+              </configuration>
+            </execution>
+            <execution>
+              <goals>
+                <goal>test</goal>
+              </goals>
+              <id>multi-zk</id>
+              <phase>test</phase>
+              <configuration>
+                <systemPropertyVariables>
+                  <multiZk>true</multiZk>
+                </systemPropertyVariables>
+              </configuration>
+            </execution>
+          </executions>
         </plugin>
         <plugin>
           <groupId>org.apache.rat</groupId>