Example #1
0
 def test_instance_gdb_neo4j(self):
     """
     Tests that a neo4j instance has a graph database.
     """
     instance = Instance(name=self.instanceName, engine=self.instanceEngine, port="7373", path="db/sylva", owner=self.u)
     instance.save()
     self.assertIsNotNone(instance)
     self.assertIsNotNone(self.sylva_graph)
     gdb = instance.get_gdb(self.sylva_graph)
     self.assertIsNotNone(gdb)
Example #2
0
def create_and_get_gdb(test):
    port = test.instancePort
    path = test.instancePath
    instance = Instance(name=test.instanceName, engine=test.instanceEngine,
                        port=port, path=path, owner=test.user)
    instance.save()
    test.assertIsNotNone(instance)
    test.assertIsNotNone(test.graph)
    gdb = instance.get_gdb(test.graph)
    test.assertIsNotNone(gdb)
    return gdb
Example #3
0
 def test_instance_gdb_neo4j(self):
     """
     Tests that a neo4j instance has a graph database.
     """
     port = settings.GRAPHDATABASES["default"]["PORT"]
     path = settings.GRAPHDATABASES["default"]["NAME"]
     instance = Instance(name=self.instanceName, engine=self.instanceEngine,
                         port=port, path=path, owner=self.u)
     instance.save()
     self.assertIsNotNone(instance)
     self.assertIsNotNone(self.sylva_graph)
     gdb = instance.get_gdb(self.sylva_graph)
     self.assertIsNotNone(gdb)
Example #4
0
def create_and_get_gdb(test):
    port = test.instancePort
    path = test.instancePath
    instance = Instance(name=test.instanceName,
                        engine=test.instanceEngine,
                        port=port,
                        path=path,
                        owner=test.user)
    instance.save()
    test.assertIsNotNone(instance)
    test.assertIsNotNone(test.graph)
    gdb = instance.get_gdb(test.graph)
    test.assertIsNotNone(gdb)
    return gdb
Example #5
0
 def test_instance_gdb_neo4j(self):
     """
     Tests that a neo4j instance has a graph database.
     """
     port = settings.GRAPHDATABASES["default"]["PORT"]
     path = settings.GRAPHDATABASES["default"]["NAME"]
     instance = Instance(name=self.instanceName,
                         engine=self.instanceEngine,
                         port=port,
                         path=path,
                         owner=self.u)
     instance.save()
     self.assertIsNotNone(instance)
     self.assertIsNotNone(self.sylva_graph)
     gdb = instance.get_gdb(self.sylva_graph)
     self.assertIsNotNone(gdb)