Integration test for the mpp architecture are in this module.
Now integration testing supports the Cluster mode and the Local Standalone mode.
You can run the integration test in cluster mode. At present, we have implemented a pseudo cluster with 1 config nodes and 3 data nodes. (As the test cases and the test environment are decoupled, we can easily implement other pseudo cluster or even a docker-based cluster later.)
The maven command is:
mvn clean verify -DskipUTs -pl integration-test -am -PClusterIT
Notice that, this above maven command only run IT.
Run in IntelliJ in cluster mode is so easy,
- Step 0. Optionally, when you run the test for the first time, or when you change the code of the module that the integration test module depends on, you may need to use the following command to generate
integration-test/target/template-nodefor nodes of the pseudo cluster.
mvn clean package -DskipTests -pl integration-test -am -PClusterIT
Integration testing with local standalone mode can be run with both maven and IDEs like IntelliJ.
The maven command is:
mvn clean verify -DskipUTs -pl integration-test -am -PLocalStandaloneOnMppIT
And if you want to run IT in the IDE like IntelliJ, you need to achieve the effect as the LocalStandaloneOnMppIT profile in maven. Follow Steps 1-4 to achieve it.
- Step 0. Optionally, when you run the test for the first time, or when you change the code of the module that the integration test module depends on, you may need to use the following command to generate
integration-test/target/template-nodefor the node of the local standalone.
It has the same effect as step 0 of the cluster mode counterpart; these two command's generations are the same content.
mvn clean package -DskipTests -pl integration-test -am -PLocalStandaloneOnMppIT
.png?raw=true)


