use of com.amazonaws.athena.connector.lambda.metadata.ListTablesRequest in project aws-athena-query-federation by awslabs.
the class OracleMuxJdbcMetadataHandlerTest method doListTables.
@Test
public void doListTables() {
ListTablesRequest listTablesRequest = Mockito.mock(ListTablesRequest.class);
Mockito.when(listTablesRequest.getCatalogName()).thenReturn("fakedatabase");
this.jdbcMetadataHandler.doListTables(this.allocator, listTablesRequest);
Mockito.verify(this.oracleMetadataHandler, Mockito.times(1)).doListTables(Mockito.eq(this.allocator), Mockito.eq(listTablesRequest));
}
use of com.amazonaws.athena.connector.lambda.metadata.ListTablesRequest in project aws-athena-query-federation by awslabs.
the class RedshiftMuxJdbcMetadataHandlerTest method doListTables.
@Test
public void doListTables() {
ListTablesRequest listTablesRequest = Mockito.mock(ListTablesRequest.class);
Mockito.when(listTablesRequest.getCatalogName()).thenReturn("redshift");
this.jdbcMetadataHandler.doListTables(this.allocator, listTablesRequest);
Mockito.verify(this.redshiftMetadataHandler, Mockito.times(1)).doListTables(Mockito.eq(this.allocator), Mockito.eq(listTablesRequest));
}
use of com.amazonaws.athena.connector.lambda.metadata.ListTablesRequest in project aws-athena-query-federation by awslabs.
the class SynapseMuxMetadataHandlerTest method doListTables.
@Test
public void doListTables() {
ListTablesRequest listTablesRequest = Mockito.mock(ListTablesRequest.class);
Mockito.when(listTablesRequest.getCatalogName()).thenReturn("fakedatabase");
this.jdbcMetadataHandler.doListTables(this.allocator, listTablesRequest);
Mockito.verify(this.synapseMetadataHandler, Mockito.times(1)).doListTables(Mockito.eq(this.allocator), Mockito.eq(listTablesRequest));
}
use of com.amazonaws.athena.connector.lambda.metadata.ListTablesRequest in project aws-athena-query-federation by awslabs.
the class SqlServerMuxMetadataHandlerTest method doListTables.
@Test
public void doListTables() {
ListTablesRequest listTablesRequest = Mockito.mock(ListTablesRequest.class);
Mockito.when(listTablesRequest.getCatalogName()).thenReturn("fakedatabase");
this.jdbcMetadataHandler.doListTables(this.allocator, listTablesRequest);
Mockito.verify(this.sqlServerMetadataHandler, Mockito.times(1)).doListTables(Mockito.eq(this.allocator), Mockito.eq(listTablesRequest));
}
use of com.amazonaws.athena.connector.lambda.metadata.ListTablesRequest in project aws-athena-query-federation by awslabs.
the class TPCDSMetadataHandlerTest method doListTables.
@Test
public void doListTables() {
logger.info("doListTables - enter");
ListTablesRequest req = new ListTablesRequest(identity, "queryId", "default", "tpcds1", null, UNLIMITED_PAGE_SIZE_VALUE);
ListTablesResponse res = handler.doListTables(allocator, req);
logger.info("doListTables - {}", res.getTables());
assertTrue(res.getTables().contains(new TableName("tpcds1", "customer")));
assertTrue(res.getTables().size() == 25);
logger.info("doListTables - exit");
}
Aggregations