This directory builds a Docker image for Druid, then uses that image, along with test configuration to run tests. This version greatly evolves the integration tests from the earlier form. See the History section for details.
List of the most common commands once you're familiar with the framework. If you are new to the framework, see Quickstart for an explanation.
./it.sh build
./it.sh image
Note: If you are running it on Apple Silicon processors, you would also need to uncomment all occurrences of platform: linux/x86_64
in dependencies.yaml.
./it.sh test <category>
Where <category>
is one of the test categories. You can see the list of test categories at src/test/java/org/apache/druid/testsEx/categories
. The corresponding test classes are also annotated with @Category
like @Category(HighAvailability.class)
.
For example, a sample command for running IT for @Category(HighAvailability.class)
would be:
./it.sh test HighAvailability
Start the cluster:
./it.sh up <category>
Where <category>
is one of the test categories. Then launch the test as a JUnit test.
Background information
The goal of the present version is to simplify development.
distribution
so we know what is tested.By meeting these goals, you can quickly:
The result is that the fastest path to develop a Druid patch or feature is: