public class IngestTester extends IngestFilesTester
IngestFilesTester.FileFormat, IngestFilesTester.IngestPushFilesRequest, IngestFilesTester.SecurityState| Modifier and Type | Field and Description |
|---|---|
String |
CREATE_INGEST_TABLE |
String |
CREATE_INGEST_TABLE_TRUTH |
String |
CREATE_INGEST_TABLE_VAR |
String |
CREATE_INGEST_TABLE_VAR_TRUTH |
String |
CREATE_INT_STAGE_S3 |
String |
CREATE_STAGE |
String |
CREATE_STAGE_S3 |
String |
insert_role |
connection, DATABASE, fqStageName, fqTableName, httpClient, INGEST_TBL, objectMapper, RND_PAD, SCHEMA, STAGE_NAME, tmpIngestStage| Constructor and Description |
|---|
IngestTester(Connection connection,
org.apache.http.impl.client.CloseableHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
List<Path> |
createCsvs(int numOfFiles,
int rows) |
Path |
createLargeCSV(int rows,
int numCol) |
List<Path> |
createMalformedCSVs(int numOfFiles,
int rows) |
void |
createTableWithWideColumns(int columnNum) |
String |
createUserAndAuthenticate(String userName) |
String |
getFqStageName() |
String |
getFqTableName() |
org.apache.http.impl.client.CloseableHttpClient |
getHttpClient() |
String |
getJwtToken() |
String |
getQuotedStageName() |
String |
getTruthTable() |
void |
grantPriviOnTableToRole() |
void |
grantPriviOnTableToRoleInternal() |
void |
testSetUp() |
void |
testTearDown() |
checkWithCopy, createHttpClient, createTempCsv, createTempFiles, createTempStageDir, disableIngestService, disableIngestServiceOld, doQuery, enableEncryption, enableIngestForAccount, enableIngestService, enableIngestServiceOld, enableKeyPairAuthn, main, quote, saypublic final String insert_role
public final String CREATE_STAGE
public final String CREATE_STAGE_S3
public final String CREATE_INT_STAGE_S3
public final String CREATE_INGEST_TABLE
public final String CREATE_INGEST_TABLE_TRUTH
public final String CREATE_INGEST_TABLE_VAR
public final String CREATE_INGEST_TABLE_VAR_TRUTH
public IngestTester(Connection connection, org.apache.http.impl.client.CloseableHttpClient httpClient)
public String createUserAndAuthenticate(String userName) throws Exception
Exceptionpublic void grantPriviOnTableToRole()
throws SQLException
SQLExceptionpublic void grantPriviOnTableToRoleInternal()
throws SQLException
SQLExceptionpublic void createTableWithWideColumns(int columnNum)
throws Exception
Exceptionpublic void testTearDown()
throws SQLException,
IOException
SQLExceptionIOExceptionpublic List<Path> createMalformedCSVs(int numOfFiles, int rows) throws IOException
IOExceptionpublic List<Path> createCsvs(int numOfFiles, int rows) throws IOException
IOExceptionpublic Path createLargeCSV(int rows, int numCol) throws IOException
IOExceptionpublic String getJwtToken()
public org.apache.http.impl.client.CloseableHttpClient getHttpClient()
public String getFqTableName()
public String getFqStageName()
public String getTruthTable()
public String getQuotedStageName()
Copyright © 2017. All rights reserved.