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
The following commit(s) were added to refs/heads/zooscalability by this push:
new 643f154 Enable two test runs with multiZk system property (#710)
643f154 is described below
commit 643f15423dc47eb95f7da8af2b9c6bbec09489e9
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 | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/pom.xml b/pom.xml
index 29308c1..198bf6d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -620,6 +620,38 @@ under the License.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<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>
|