helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hu...@apache.org
Subject [helix] 02/11: Enable two test runs with multiZk system property (#710)
Date Wed, 12 Feb 2020 02:52:22 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 9c14eeb1513b4e70d6dafad553d610020b4673a3
Author: Hunter Lee <hulee@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>


Mime
View raw message