Uploaded image for project: 'Hibernate OGM'
  1. OGM-1540

Test remote procedure on Neo4j server

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 6
    • Component/s: tests
    • Labels:
      None
    • Suitable for new contributors:
      Yes, likely
    • Last commented by a user?:
      true
    • Sprint:

      Description

      the Neo4j dialect supports calls to remote procedures but we are only testing on the embedded dialect.

      We need to test also tests for the remote dialects.
      This means that we need to create a jar containing the classes we use for the tests and deploy it on the remote server before it starts.

      On CI, we use docker and to do this we can generate the jar before starting the docker instance and then mount the folder with the jar on the `/plugins` folder of the docker instance. It should look like:

      docker run --rm -v hibernate-ogm/neo4j-procedures/target:/plugins -d -p $BOLT_NEO4J_PORT:7687 -p $HTTP_NEO4J_PORT:7474 --name Neo4j neo4j:$NEO4J_VERSION
      

      I've created a branch containing a module for the generation of the JAR as a POC: https://github.com/DavideD/hibernate-ogm/tree/neo4j-procedures/neo4j-procedures

      Not sure if there is a simple solution for this right now with our current building process. We might also decide to add the tests in the integration-test module if it makes it easier

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                davided Davide D'Alto
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: