Search in sources :

Example 1 with MongoDbDatasourceNode

use of org.pentaho.metaverse.frames.MongoDbDatasourceNode in project pentaho-metaverse by pentaho.

the class MetaverseValidationIT method testMongoDbConnections.

@Test
public void testMongoDbConnections() throws Exception {
    int countMongoConnections = getIterableSize(root.getMongoDbDatasourceNodes());
    for (MongoDbDatasourceNode ds : root.getMongoDbDatasourceNodes()) {
        // make sure at least one step uses the connection
        int countUsedSteps = getIterableSize(ds.getTransformationStepNodes());
        assertTrue(countUsedSteps > 0);
        assertEquals(DictionaryConst.NODE_TYPE_MONGODB_CONNECTION, ds.getEntity().getName());
        assertNotNull(ds.getName());
        assertNotNull(ds.getDatabaseName());
        assertNotNull(ds.getPort());
    }
    assertTrue(countMongoConnections > 0);
}
Also used : MongoDbDatasourceNode(org.pentaho.metaverse.frames.MongoDbDatasourceNode) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 MongoDbDatasourceNode (org.pentaho.metaverse.frames.MongoDbDatasourceNode)1