mirror of https://github.com/apache/druid.git
cleanup
This commit is contained in:
parent
e81591499c
commit
75c578ae33
|
@ -1,2 +0,0 @@
|
|||
#started
|
||||
!connect druidtest:///
|
|
@ -44,6 +44,7 @@ public class QuidemRecorder implements AutoCloseable, DruidHook<String>
|
|||
}
|
||||
printStream.println("#started " + new Date());
|
||||
printStream.println("!use " + quidemURI.toString());
|
||||
printStream.println("!set outputformat mysql");
|
||||
DruidHook.register(DruidHook.SQL, this);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,16 +22,16 @@ package org.apache.druid.quidem;
|
|||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.fail;
|
||||
|
||||
public class QTest extends DruidQuidemTestBase
|
||||
{
|
||||
public QTest()
|
||||
{
|
||||
super();
|
||||
assertEquals(QuidemCaptureResource.RECORD_PATH, getTestRoot());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -41,11 +41,14 @@ public class QTest extends DruidQuidemTestBase
|
|||
}
|
||||
|
||||
@Test
|
||||
public void aa() {
|
||||
|
||||
List<String> n = getFileNames();
|
||||
for(String name : n) {
|
||||
run(name);
|
||||
public void ensureNoRecordFilesPresent() throws IOException
|
||||
{
|
||||
// ensure that the captured ones are saved into this test's input path
|
||||
assertEquals(QuidemCaptureResource.RECORD_PATH, getTestRoot());
|
||||
for (String name : getFileNames()) {
|
||||
if (name.startsWith("record-")) {
|
||||
fail("Record file found: " + name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue