Search in sources :

Example 6 with Connector

use of com.thinkbiganalytics.metadata.api.catalog.Connector in project kylo by Teradata.

the class JcrConnectorProviderTest method testFindPage.

@Test(dependsOnMethods = "testDelete")
public void testFindPage() {
    metadata.read(() -> {
        Page<Connector> conns = this.connectorProvider.findPage(new PageRequest(0, 5), null);
        assertThat(conns).isNotNull();
        assertThat(conns).hasSize(5);
        assertThat(conns).extracting("pluginId", "systemName", "title", "description").contains(connectorTuple("1"), connectorTuple("2"), connectorTuple("3"), connectorTuple("4"), connectorTuple("5"));
    }, MetadataAccess.SERVICE);
}
Also used : Connector(com.thinkbiganalytics.metadata.api.catalog.Connector) PageRequest(org.springframework.data.domain.PageRequest) Test(org.testng.annotations.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Example 7 with Connector

use of com.thinkbiganalytics.metadata.api.catalog.Connector in project kylo by Teradata.

the class JcrConnectorProviderTest method createConnector.

protected Connector createConnector(String tag) {
    Connector conn1 = this.connectorProvider.create("plugin" + tag, "Test " + tag + " Connector");
    conn1.setDescription("Test description " + tag);
    return conn1;
}
Also used : Connector(com.thinkbiganalytics.metadata.api.catalog.Connector)

Aggregations

Connector (com.thinkbiganalytics.metadata.api.catalog.Connector)7 ConnectorPluginManager (com.thinkbiganalytics.kylo.catalog.ConnectorPluginManager)2 ConnectorPlugin (com.thinkbiganalytics.kylo.catalog.spi.ConnectorPlugin)2 ConnectorProvider (com.thinkbiganalytics.metadata.api.catalog.ConnectorProvider)2 DataSetSparkParameters (com.thinkbiganalytics.metadata.api.catalog.DataSetSparkParameters)2 DataSource (com.thinkbiganalytics.metadata.api.catalog.DataSource)2 JcrMetadataAccess (com.thinkbiganalytics.metadata.modeshape.JcrMetadataAccess)2 JcrDataSetProvider (com.thinkbiganalytics.metadata.modeshape.catalog.dataset.JcrDataSetProvider)2 JcrDataSource (com.thinkbiganalytics.metadata.modeshape.catalog.datasource.JcrDataSource)2 JcrDataSourceProvider (com.thinkbiganalytics.metadata.modeshape.catalog.datasource.JcrDataSourceProvider)2 JcrAllowedActions (com.thinkbiganalytics.metadata.modeshape.security.action.JcrAllowedActions)2 AllowedActions (com.thinkbiganalytics.security.action.AllowedActions)2 SecurityRole (com.thinkbiganalytics.security.role.SecurityRole)2 List (java.util.List)2 Map (java.util.Map)2 Collectors (java.util.stream.Collectors)2 StringUtils (org.apache.commons.lang3.StringUtils)2 Workspace (org.modeshape.jcr.api.Workspace)2 Logger (org.slf4j.Logger)2 LoggerFactory (org.slf4j.LoggerFactory)2