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,
integration-test/target/template-node
for nodes of the pseudo cluster.mvn clean package -DskipTests -pl integration-test -am -PClusterIT
Step 1. Run(Menu) -> Edit Configurations...
Step 2. Add New Configuration -> JUnit
Step 3. Input some fields as the following picture
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.
integration-test/target/template-node
for the node of the local standalone.mvn clean package -DskipTests -pl integration-test -am -PLocalStandaloneOnMppIT
Step 1. Run(Menu) -> Edit Configurations...
Step 2. Add New Configuration -> JUnit
Step 3. Input some fields as the following picture