Search in sources :

Example 1 with VerifierConfig

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"));
}
Also used : RetryConfig(com.facebook.presto.verifier.retry.RetryConfig) VerifierConfig(com.facebook.presto.verifier.framework.VerifierConfig) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 2 with VerifierConfig

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"));
}
Also used : QueryActionsConfig(com.facebook.presto.verifier.prestoaction.QueryActionsConfig) PrestoActionConfig(com.facebook.presto.verifier.prestoaction.PrestoActionConfig) RetryConfig(com.facebook.presto.verifier.retry.RetryConfig) JdbcPrestoAction(com.facebook.presto.verifier.prestoaction.JdbcPrestoAction) VerifierConfig(com.facebook.presto.verifier.framework.VerifierConfig) JdbcUrlSelector(com.facebook.presto.verifier.prestoaction.JdbcUrlSelector) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

VerifierConfig (com.facebook.presto.verifier.framework.VerifierConfig)2 RetryConfig (com.facebook.presto.verifier.retry.RetryConfig)2 JdbcPrestoAction (com.facebook.presto.verifier.prestoaction.JdbcPrestoAction)1 JdbcUrlSelector (com.facebook.presto.verifier.prestoaction.JdbcUrlSelector)1 PrestoActionConfig (com.facebook.presto.verifier.prestoaction.PrestoActionConfig)1 QueryActionsConfig (com.facebook.presto.verifier.prestoaction.QueryActionsConfig)1 BeforeClass (org.testng.annotations.BeforeClass)1 BeforeMethod (org.testng.annotations.BeforeMethod)1