
net.snowflake.client.IngestFilesTestIT Maven / Gradle / Ivy
/*
* Copyright (c) 2012, 2013 Snowflake Computing Inc. All right reserved.
*/
package net.snowflake.client;
import org.junit.Assert;
import org.junit.Test;
public class IngestFilesTestIT
{
@Test
public void testBasicsShort() throws Exception
{
final int inter_batch_delay = 250;
final int history_poll_interval = 2000;
final int batch_size = 2;
final int max_rows_per_file = 5;
final int push_threads = 2;
final int batch_count = push_threads * 10;
//disabled for now. I am worried about test side effects
//Ideally we'd use another account.
final boolean encrypt_fdn_files = false;
final boolean success =
IngestFilesTester.fullTest(inter_batch_delay, history_poll_interval,
batch_size, max_rows_per_file, push_threads,
batch_count, encrypt_fdn_files);
Assert.assertTrue(success);
}
//@Test
public void testBasicsLong() throws Exception
{
final int inter_batch_delay = 60;
final int history_poll_interval = 2000;
final int batch_size = 1;
final int max_rows_per_file = 1500;
final int push_threads = 1;
final int batch_count = push_threads * 60 * 60;
final boolean encrypt_fdn_files = true;
final boolean success =
IngestFilesTester.fullTest(inter_batch_delay,
history_poll_interval, batch_size,
max_rows_per_file, push_threads,
batch_count, encrypt_fdn_files);
Assert.assertTrue(success);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy