def test_can_detect_node(self): uri = "test:uri" metadata = { "extensions": {}, "paged_traverse": "http://localhost:7474/db/data/node/2757/paged/traverse/{returnType}{?pageSize,leaseTime}", "outgoing_relationships": "http://localhost:7474/db/data/node/2757/relationships/out", "traverse": "http://localhost:7474/db/data/node/2757/traverse/{returnType}", "all_typed_relationships": "http://localhost:7474/db/data/node/2757/relationships/all/{-list|&|types}", "property": "http://localhost:7474/db/data/node/2757/properties/{key}", "all_relationships": "http://localhost:7474/db/data/node/2757/relationships/all", "self": "http://localhost:7474/db/data/node/2757", "properties": "http://localhost:7474/db/data/node/2757/properties", "outgoing_typed_relationships": "http://localhost:7474/db/data/node/2757/relationships/out/{-list|&|types}", "incoming_relationships": "http://localhost:7474/db/data/node/2757/relationships/in", "incoming_typed_relationships": "http://localhost:7474/db/data/node/2757/relationships/in/{-list|&|types}", "create_relationship": "http://localhost:7474/db/data/node/2757/relationships", "data": { "foo": "bar" } } neo4j._assert_expected_response(neo4j.Node, uri, metadata)
def test_can_detect_graph_database_service(self): uri = "test:uri" metadata = { "extensions": { "CypherPlugin": { "execute_query": "http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query" }, "GremlinPlugin": { "execute_script": "http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script" }, "GeoffPlugin": { "merge": "http://localhost:7474/db/data/ext/GeoffPlugin/graphdb/merge", "delete": "http://localhost:7474/db/data/ext/GeoffPlugin/graphdb/delete", "insert": "http://localhost:7474/db/data/ext/GeoffPlugin/graphdb/insert" } }, "node": "http://localhost:7474/db/data/node", "node_index": "http://localhost:7474/db/data/index/node", "relationship_index": "http://localhost:7474/db/data/index/relationship", "extensions_info": "http://localhost:7474/db/data/ext", "relationship_types": "http://localhost:7474/db/data/relationship/types", "batch": "http://localhost:7474/db/data/batch", "cypher": "http://localhost:7474/db/data/cypher", "neo4j_version": "1.8.M07-147-g84d07a2" } neo4j._assert_expected_response(neo4j.GraphDatabaseService, uri, metadata)
def test_can_detect_graph_database_service(self): uri = "test:uri" metadata = { "extensions" : { "CypherPlugin" : { "execute_query" : "http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query" }, "GremlinPlugin" : { "execute_script" : "http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script" }, "GeoffPlugin" : { "merge" : "http://localhost:7474/db/data/ext/GeoffPlugin/graphdb/merge", "delete" : "http://localhost:7474/db/data/ext/GeoffPlugin/graphdb/delete", "insert" : "http://localhost:7474/db/data/ext/GeoffPlugin/graphdb/insert" } }, "node" : "http://localhost:7474/db/data/node", "node_index" : "http://localhost:7474/db/data/index/node", "relationship_index" : "http://localhost:7474/db/data/index/relationship", "extensions_info" : "http://localhost:7474/db/data/ext", "relationship_types" : "http://localhost:7474/db/data/relationship/types", "batch" : "http://localhost:7474/db/data/batch", "cypher" : "http://localhost:7474/db/data/cypher", "neo4j_version" : "1.8.M07-147-g84d07a2" } neo4j._assert_expected_response(neo4j.GraphDatabaseService, uri, metadata)
def test_can_detect_relationship(self): uri = "test:uri" metadata = { "extensions" : { }, "start" : "http://localhost:7474/db/data/node/2757", "property" : "http://localhost:7474/db/data/relationship/7598/properties/{key}", "self" : "http://localhost:7474/db/data/relationship/7598", "properties" : "http://localhost:7474/db/data/relationship/7598/properties", "type" : "ALIAS_TEST_NODE", "end" : "http://localhost:7474/db/data/node/2758", "data" : { "foo" : "bar" } } neo4j._assert_expected_response(neo4j.Relationship, uri, metadata)
def test_can_detect_relationship(self): uri = "test:uri" metadata = { "extensions": {}, "start": "http://localhost:7474/db/data/node/2757", "property": "http://localhost:7474/db/data/relationship/7598/properties/{key}", "self": "http://localhost:7474/db/data/relationship/7598", "properties": "http://localhost:7474/db/data/relationship/7598/properties", "type": "ALIAS_TEST_NODE", "end": "http://localhost:7474/db/data/node/2758", "data": { "foo": "bar" } } neo4j._assert_expected_response(neo4j.Relationship, uri, metadata)
def test_can_detect_node(self): uri = "test:uri" metadata = { "extensions" : { }, "paged_traverse" : "http://localhost:7474/db/data/node/2757/paged/traverse/{returnType}{?pageSize,leaseTime}", "outgoing_relationships" : "http://localhost:7474/db/data/node/2757/relationships/out", "traverse" : "http://localhost:7474/db/data/node/2757/traverse/{returnType}", "all_typed_relationships" : "http://localhost:7474/db/data/node/2757/relationships/all/{-list|&|types}", "property" : "http://localhost:7474/db/data/node/2757/properties/{key}", "all_relationships" : "http://localhost:7474/db/data/node/2757/relationships/all", "self" : "http://localhost:7474/db/data/node/2757", "properties" : "http://localhost:7474/db/data/node/2757/properties", "outgoing_typed_relationships" : "http://localhost:7474/db/data/node/2757/relationships/out/{-list|&|types}", "incoming_relationships" : "http://localhost:7474/db/data/node/2757/relationships/in", "incoming_typed_relationships" : "http://localhost:7474/db/data/node/2757/relationships/in/{-list|&|types}", "create_relationship" : "http://localhost:7474/db/data/node/2757/relationships", "data" : { "foo" : "bar" } } neo4j._assert_expected_response(neo4j.Node, uri, metadata)