Search in sources :

Example 6 with JdbcDatasource

use of com.thinkbiganalytics.metadata.rest.model.data.JdbcDatasource in project kylo by Teradata.

the class IntegrationTestBase method getDatasources.

protected JdbcDatasource[] getDatasources() {
    LOG.info("Getting datasources");
    Response response = given(DatasourceController.BASE).when().get("?type=UserDatasource");
    response.then().statusCode(HTTP_OK);
    return response.as(JdbcDatasource[].class);
}
Also used : Response(com.jayway.restassured.response.Response) JdbcDatasource(com.thinkbiganalytics.metadata.rest.model.data.JdbcDatasource)

Aggregations

JdbcDatasource (com.thinkbiganalytics.metadata.rest.model.data.JdbcDatasource)6 Datasource (com.thinkbiganalytics.metadata.rest.model.data.Datasource)3 QueryResult (com.thinkbiganalytics.discovery.schema.QueryResult)2 TableSchema (com.thinkbiganalytics.discovery.schema.TableSchema)2 DatasourceModelTransform (com.thinkbiganalytics.feedmgr.service.datasource.DatasourceModelTransform)2 MetadataAccess (com.thinkbiganalytics.metadata.api.MetadataAccess)2 DatasourceProvider (com.thinkbiganalytics.metadata.api.datasource.DatasourceProvider)2 JdbcDatasourceDetails (com.thinkbiganalytics.metadata.api.datasource.JdbcDatasourceDetails)2 UserDatasource (com.thinkbiganalytics.metadata.rest.model.data.UserDatasource)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 Collections2 (com.google.common.collect.Collections2)1 Response (com.jayway.restassured.response.Response)1 Formatters (com.thinkbiganalytics.Formatters)1 PoolingDataSourceService (com.thinkbiganalytics.db.PoolingDataSourceService)1 DefaultDatabaseMetadata (com.thinkbiganalytics.discovery.model.DefaultDatabaseMetadata)1 DatabaseMetadata (com.thinkbiganalytics.discovery.schema.DatabaseMetadata)1 NifiControllerServiceProperties (com.thinkbiganalytics.feedmgr.nifi.NifiControllerServiceProperties)1 DBCPConnectionPoolService (com.thinkbiganalytics.feedmgr.nifi.controllerservice.DBCPConnectionPoolService)1 DescribeTableControllerServiceRequestBuilder (com.thinkbiganalytics.feedmgr.nifi.controllerservice.DescribeTableControllerServiceRequest.DescribeTableControllerServiceRequestBuilder)1 ExecuteQueryControllerServiceRequestBuilder (com.thinkbiganalytics.feedmgr.nifi.controllerservice.ExecuteQueryControllerServiceRequest.ExecuteQueryControllerServiceRequestBuilder)1