rename module

(cherry picked from commit 8d40cca50a3e4c8098f49f5d588c7b7220b76788)
This commit is contained in:
Zoltan Haindrich 2024-07-30 13:30:52 +00:00
parent 7f99ee24d7
commit 57980066b3
12 changed files with 11 additions and 11 deletions

View File

@ -28,7 +28,7 @@ OPTS+=" -Dsurefire.rerunFailingTestsCount=0"
OPTS+=" -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugin.surefire.SurefirePlugin=INFO"
[[ $@ =~ "-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"
case "$1" in

View File

@ -242,7 +242,7 @@
<module>integration-tests-ex/tools</module>
<module>integration-tests-ex/image</module>
<module>integration-tests-ex/cases</module>
<module>quidem-it</module>
<module>quidem-ut</module>
</modules>
<repositories>

View File

@ -17,7 +17,7 @@
~ under the License.
-->
# Quidem IT
# Quidem UT
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.
@ -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:
```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:
```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 used test configuration backend can configured by supplying `quidem.uri`
```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
* if `quidem.record.autostart` is omitted recording will not start

View File

@ -23,9 +23,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>druid-quidem-it</artifactId>
<name>druid-quidem-it</name>
<description>druid-quidem-it</description>
<artifactId>druid-quidem-ut</artifactId>
<name>druid-quidem-ut</name>
<description>druid-quidem-ut</description>
<parent>
<groupId>org.apache.druid</groupId>

View File

@ -38,7 +38,7 @@ import java.net.URI;
public class QuidemCaptureResource
{
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 QuidemRecorder recorder = null;
private DruidHookDispatcher hookDispatcher;

View File

@ -37,7 +37,7 @@ public class QTest extends DruidQuidemTestBase
@Override
protected File getTestRoot()
{
return ProjectPathUtils.getPathFromProjectRoot("quidem-it/src/test/quidem/" + getClass().getName());
return ProjectPathUtils.getPathFromProjectRoot("quidem-ut/src/test/quidem/" + getClass().getName());
}
@Test