From 28f4c4665bc89c82aface3872e51d5b620592813 Mon Sep 17 00:00:00 2001 From: augustearth Date: Mon, 27 Sep 2021 16:32:41 -0400 Subject: [PATCH] For #65. Leaving commented code in place for future reference... --- app/build.gradle | 3 +++ .../core/graph/CoreGraphNeo4jSpec.groovy | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 44366e96..c5cc621a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -88,6 +88,9 @@ subprojects { implementation "org.apache.tinkerpop:neo4j-gremlin:${gremlinVersion}" implementation "org.neo4j:neo4j-tinkerpop-api-impl:${neo4jTinkerpopVersion}" implementation "org.neo4j.driver:neo4j-java-driver:${neo4JavaDriverVersion}" + //implementation "org.neo4j:parent:${neo4JavaDriverVersion}" + //implementation "org.neo4j:neo4j-community:${neo4JavaDriverVersion}" + //implementation "org.neo4j:neo4j-bolt:${neo4JavaDriverVersion}" // Testing // there are test helpers implemented in the source tree, so the diff --git a/app/carnival-core/src/test/groovy/carnival/core/graph/CoreGraphNeo4jSpec.groovy b/app/carnival-core/src/test/groovy/carnival/core/graph/CoreGraphNeo4jSpec.groovy index 579ea7c8..398511da 100644 --- a/app/carnival-core/src/test/groovy/carnival/core/graph/CoreGraphNeo4jSpec.groovy +++ b/app/carnival-core/src/test/groovy/carnival/core/graph/CoreGraphNeo4jSpec.groovy @@ -12,6 +12,11 @@ import org.apache.tinkerpop.gremlin.process.traversal.Traversal import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource import static org.apache.tinkerpop.gremlin.neo4j.process.traversal.LabelP.of +/*import org.neo4j.dbms.api.DatabaseManagementService +import org.neo4j.dbms.api.DatabaseManagementServiceBuilder +import org.neo4j.configuration.connectors.BoltConnector +import org.neo4j.configuration.helpers.SocketAddress*/ + import carnival.graph.* import carnival.util.Defaults @@ -71,6 +76,20 @@ class CoreGraphNeo4jSpec extends Specification { /////////////////////////////////////////////////////////////////////////// // TESTS /////////////////////////////////////////////////////////////////////////// + + /*def "test expose Bolt port"() { + when: + // expose Bolt port + DatabaseManagementService managementService = new DatabaseManagementServiceBuilder( Defaults.getDataGraphDirectoryPath() ) + .setConfig( BoltConnector.enabled, true ) + .setConfig( BoltConnector.listen_address, new SocketAddress( "localhost", 7687 ) ) + .build(); + + then: + managementService != null + }*/ + + @IgnoreIf({ !Defaults.getConfigValue('carnival.gremlin.conf.dbms.directories.plugins') }) def "test apoc"() {