use of com.amazonaws.athena.connector.lambda.metadata.ListSchemasRequest in project aws-athena-query-federation by awslabs.
the class MySqlMuxJdbcMetadataHandlerTest method doListSchemaNames.
@Test
public void doListSchemaNames() {
ListSchemasRequest listSchemasRequest = Mockito.mock(ListSchemasRequest.class);
Mockito.when(listSchemasRequest.getCatalogName()).thenReturn("fakedatabase");
this.jdbcMetadataHandler.doListSchemaNames(this.allocator, listSchemasRequest);
Mockito.verify(this.mySqlMetadataHandler, Mockito.times(1)).doListSchemaNames(Mockito.eq(this.allocator), Mockito.eq(listSchemasRequest));
}
use of com.amazonaws.athena.connector.lambda.metadata.ListSchemasRequest in project aws-athena-query-federation by awslabs.
the class RedshiftMuxJdbcMetadataHandlerTest method doListSchemaNames.
@Test
public void doListSchemaNames() {
ListSchemasRequest listSchemasRequest = Mockito.mock(ListSchemasRequest.class);
Mockito.when(listSchemasRequest.getCatalogName()).thenReturn("redshift");
this.jdbcMetadataHandler.doListSchemaNames(this.allocator, listSchemasRequest);
Mockito.verify(this.redshiftMetadataHandler, Mockito.times(1)).doListSchemaNames(Mockito.eq(this.allocator), Mockito.eq(listSchemasRequest));
}
use of com.amazonaws.athena.connector.lambda.metadata.ListSchemasRequest in project aws-athena-query-federation by awslabs.
the class SynapseMuxMetadataHandlerTest method doListSchemaNames.
@Test
public void doListSchemaNames() {
ListSchemasRequest listSchemasRequest = Mockito.mock(ListSchemasRequest.class);
Mockito.when(listSchemasRequest.getCatalogName()).thenReturn("fakedatabase");
this.jdbcMetadataHandler.doListSchemaNames(this.allocator, listSchemasRequest);
Mockito.verify(this.synapseMetadataHandler, Mockito.times(1)).doListSchemaNames(Mockito.eq(this.allocator), Mockito.eq(listSchemasRequest));
}
use of com.amazonaws.athena.connector.lambda.metadata.ListSchemasRequest in project aws-athena-query-federation by awslabs.
the class SqlServerMuxMetadataHandlerTest method doListSchemaNames.
@Test
public void doListSchemaNames() {
ListSchemasRequest listSchemasRequest = Mockito.mock(ListSchemasRequest.class);
Mockito.when(listSchemasRequest.getCatalogName()).thenReturn("fakedatabase");
this.jdbcMetadataHandler.doListSchemaNames(this.allocator, listSchemasRequest);
Mockito.verify(this.sqlServerMetadataHandler, Mockito.times(1)).doListSchemaNames(Mockito.eq(this.allocator), Mockito.eq(listSchemasRequest));
}
use of com.amazonaws.athena.connector.lambda.metadata.ListSchemasRequest in project aws-athena-query-federation by awslabs.
the class TPCDSMetadataHandlerTest method doListSchemaNames.
@Test
public void doListSchemaNames() {
logger.info("doListSchemas - enter");
ListSchemasRequest req = new ListSchemasRequest(identity, "queryId", "default");
ListSchemasResponse res = handler.doListSchemaNames(allocator, req);
logger.info("doListSchemas - {}", res.getSchemas());
assertTrue(res.getSchemas().size() == 5);
logger.info("doListSchemas - exit");
}
Aggregations