use of com.facebook.presto.verifier.framework.VerifierConfig in project presto by prestodb.
the class TestJdbcPrestoAction method setup.
@BeforeMethod
public void setup() {
QueryActionsConfig queryActionsConfig = new QueryActionsConfig();
verificationContext = VerificationContext.create(SUITE, NAME);
PrestoActionConfig prestoActionConfig = new PrestoActionConfig().setHosts(queryRunner.getServer().getAddress().getHost()).setJdbcPort(queryRunner.getServer().getAddress().getPort());
prestoAction = new JdbcPrestoAction(PrestoExceptionClassifier.defaultBuilder().build(), CONFIGURATION, verificationContext, new JdbcUrlSelector(prestoActionConfig.getJdbcUrls()), prestoActionConfig, queryActionsConfig.getMetadataTimeout(), queryActionsConfig.getChecksumTimeout(), new RetryConfig(), new RetryConfig(), new VerifierConfig().setTestId("test"));
}
use of com.facebook.presto.verifier.framework.VerifierConfig in project presto by prestodb.
the class TestQueryRewriter method setup.
@BeforeClass
public void setup() throws Exception {
queryRunner = setupPresto();
queryRunner.execute("CREATE TABLE test_table (a bigint, b varchar)");
PrestoActionConfig prestoActionConfig = new PrestoActionConfig().setHosts(queryRunner.getServer().getAddress().getHost()).setJdbcPort(queryRunner.getServer().getAddress().getPort());
prestoAction = new JdbcPrestoAction(PrestoExceptionClassifier.defaultBuilder().build(), CONFIGURATION, VerificationContext.create(SUITE, NAME), new JdbcUrlSelector(prestoActionConfig.getJdbcUrls()), prestoActionConfig, new QueryActionsConfig().getMetadataTimeout(), new QueryActionsConfig().getChecksumTimeout(), new RetryConfig(), new RetryConfig(), new VerifierConfig().setTestId("test"));
}
Aggregations