mirror of https://github.com/apache/druid.git
rename module
(cherry picked from commit 8d40cca50a3e4c8098f49f5d588c7b7220b76788)
This commit is contained in:
parent
7f99ee24d7
commit
57980066b3
|
@ -28,7 +28,7 @@ OPTS+=" -Dsurefire.rerunFailingTestsCount=0"
|
||||||
OPTS+=" -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugin.surefire.SurefirePlugin=INFO"
|
OPTS+=" -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugin.surefire.SurefirePlugin=INFO"
|
||||||
[[ $@ =~ "-q" ]] && OPTS+=" -Dsurefire.trimStackTrace=true"
|
[[ $@ =~ "-q" ]] && OPTS+=" -Dsurefire.trimStackTrace=true"
|
||||||
|
|
||||||
OPTS+=" -pl quidem-it -Dtest=QTest"
|
OPTS+=" -pl quidem-ut -Dtest=QTest"
|
||||||
OPTS+=" org.apache.maven.plugins:maven-surefire-plugin:test"
|
OPTS+=" org.apache.maven.plugins:maven-surefire-plugin:test"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -242,7 +242,7 @@
|
||||||
<module>integration-tests-ex/tools</module>
|
<module>integration-tests-ex/tools</module>
|
||||||
<module>integration-tests-ex/image</module>
|
<module>integration-tests-ex/image</module>
|
||||||
<module>integration-tests-ex/cases</module>
|
<module>integration-tests-ex/cases</module>
|
||||||
<module>quidem-it</module>
|
<module>quidem-ut</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
~ under the License.
|
~ under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
# Quidem IT
|
# Quidem UT
|
||||||
|
|
||||||
Enables to write sql level tests easily.
|
Enables to write sql level tests easily.
|
||||||
Can be used to write tests against existing test backends (ComponentSupplier) - by doing so the testcases can be moved closer to the excercised codes.
|
Can be used to write tests against existing test backends (ComponentSupplier) - by doing so the testcases can be moved closer to the excercised codes.
|
||||||
|
@ -55,16 +55,16 @@ git clone --branch quidem-record https://github.com/kgyrtkirk/druid
|
||||||
|
|
||||||
* make sure to build the project first; one way to do that is:
|
* make sure to build the project first; one way to do that is:
|
||||||
```bash
|
```bash
|
||||||
mvn install -pl quidem-it/ -am -DskipTests -Pskip-static-checks
|
mvn install -pl quidem-ut/ -am -DskipTests -Pskip-static-checks
|
||||||
```
|
```
|
||||||
* launch the broker instance with:
|
* launch the broker instance with:
|
||||||
```bash
|
```bash
|
||||||
mvn exec:exec -pl quidem-it -Dquidem.record.autostart=true
|
mvn exec:exec -pl quidem-ut -Dquidem.record.autostart=true
|
||||||
```
|
```
|
||||||
* the broker will be running at http://localhost:12345
|
* the broker will be running at http://localhost:12345
|
||||||
* the used test configuration backend can configured by supplying `quidem.uri`
|
* the used test configuration backend can configured by supplying `quidem.uri`
|
||||||
```bash
|
```bash
|
||||||
mvn exec:exec -pl quidem-it -Dquidem.uri=druidtest:///?componentSupplier=ThetaSketchComponentSupplier
|
mvn exec:exec -pl quidem-ut -Dquidem.uri=druidtest:///?componentSupplier=ThetaSketchComponentSupplier
|
||||||
```
|
```
|
||||||
* new record files can be started by calling http://localhost:12345/quidem/start
|
* new record files can be started by calling http://localhost:12345/quidem/start
|
||||||
* if `quidem.record.autostart` is omitted recording will not start
|
* if `quidem.record.autostart` is omitted recording will not start
|
|
@ -23,9 +23,9 @@
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>druid-quidem-it</artifactId>
|
<artifactId>druid-quidem-ut</artifactId>
|
||||||
<name>druid-quidem-it</name>
|
<name>druid-quidem-ut</name>
|
||||||
<description>druid-quidem-it</description>
|
<description>druid-quidem-ut</description>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.apache.druid</groupId>
|
<groupId>org.apache.druid</groupId>
|
|
@ -38,7 +38,7 @@ import java.net.URI;
|
||||||
public class QuidemCaptureResource
|
public class QuidemCaptureResource
|
||||||
{
|
{
|
||||||
public static final File RECORD_PATH = ProjectPathUtils
|
public static final File RECORD_PATH = ProjectPathUtils
|
||||||
.getPathFromProjectRoot("quidem-it/src/test/quidem/org.apache.druid.quidem.QTest");
|
.getPathFromProjectRoot("quidem-ut/src/test/quidem/org.apache.druid.quidem.QTest");
|
||||||
private URI quidemURI;
|
private URI quidemURI;
|
||||||
private QuidemRecorder recorder = null;
|
private QuidemRecorder recorder = null;
|
||||||
private DruidHookDispatcher hookDispatcher;
|
private DruidHookDispatcher hookDispatcher;
|
|
@ -37,7 +37,7 @@ public class QTest extends DruidQuidemTestBase
|
||||||
@Override
|
@Override
|
||||||
protected File getTestRoot()
|
protected File getTestRoot()
|
||||||
{
|
{
|
||||||
return ProjectPathUtils.getPathFromProjectRoot("quidem-it/src/test/quidem/" + getClass().getName());
|
return ProjectPathUtils.getPathFromProjectRoot("quidem-ut/src/test/quidem/" + getClass().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
Loading…
Reference in New Issue