1
0
Fork 0

_graphs renaming rollback

This commit is contained in:
Jan Steemann 2013-09-12 18:26:35 +02:00
parent 02bbe62ebc
commit fc971a73bf
2 changed files with 26 additions and 28 deletions

View File

@ -56,9 +56,8 @@ describe ArangoDB do
end
end
# 3 collections plus "arangodb_graphs" makes 4
realCollections.length.should eq(4)
realNames.length.should eq(4)
realCollections.length.should eq(3)
realNames.length.should eq(3)
for collection in realCollections do
realNames[collection['name']].should eq(collection)
@ -77,9 +76,8 @@ describe ArangoDB do
collections = doc.parsed_response['collections']
names = doc.parsed_response['names']
# 3 collections plus "arangodb_graphs" makes 4
collections.length.should eq(4)
names.length.should eq(4)
collections.length.should eq(3)
names.length.should eq(3)
end
end

View File

@ -84,17 +84,17 @@ describe ArangoDB do
context "checks graph requests" do
before do
truncate_collection(prefix, "arangodb_graphs")
truncate_collection(prefix, "_graphs")
cmd = "/_api/collection/arangodb_graphs/properties"
cmd = "/_api/collection/_graphs/properties"
body = "{\"waitForSync\" : true}"
doc = ArangoDB.put(cmd, :body => body)
end
after do
truncate_collection(prefix, "arangodb_graphs")
truncate_collection(prefix, "_graphs")
cmd = "/_api/collection/arangodb_graphs/properties"
cmd = "/_api/collection/_graphs/properties"
body = "{\"waitForSync\" : true}"
doc = ArangoDB.put(cmd, :body => body)
@ -218,7 +218,7 @@ describe ArangoDB do
it "checks create and get graph with waitForSync" do
cmd = "/_api/collection/arangodb_graphs/properties"
cmd = "/_api/collection/_graphs/properties"
body = "{\"waitForSync\" : false}"
doc = ArangoDB.put(cmd, :body => body)
@ -252,7 +252,7 @@ describe ArangoDB do
it "checks create and delete graph waitForSync" do
cmd = "/_api/collection/arangodb_graphs/properties"
cmd = "/_api/collection/_graphs/properties"
body = "{\"waitForSync\" : false}"
doc = ArangoDB.put(cmd, :body => body)
@ -278,9 +278,9 @@ describe ArangoDB do
context "checks graph vertex requests" do
before do
truncate_collection(prefix, "arangodb_graphs")
truncate_collection(prefix, "_graphs")
cmd = "/_api/collection/arangodb_graphs/properties"
cmd = "/_api/collection/_graphs/properties"
body = "{\"waitForSync\" : true}"
doc = ArangoDB.put(cmd, :body => body)
@ -292,9 +292,9 @@ describe ArangoDB do
end
after do
truncate_collection(prefix, "arangodb_graphs")
truncate_collection(prefix, "_graphs")
cmd = "/_api/collection/arangodb_graphs/properties"
cmd = "/_api/collection/_graphs/properties"
body = "{\"waitForSync\" : true}"
doc = ArangoDB.put(cmd, :body => body)
@ -755,9 +755,9 @@ describe ArangoDB do
context "checks edge requests" do
before do
truncate_collection(prefix, "arangodb_graphs")
truncate_collection(prefix, "_graphs")
cmd = "/_api/collection/arangodb_graphs/properties"
cmd = "/_api/collection/_graphs/properties"
body = "{\"waitForSync\" : true}"
doc = ArangoDB.put(cmd, :body => body)
@ -773,11 +773,11 @@ describe ArangoDB do
after do
cmd = "/_api/collection/arangodb_graphs/properties"
cmd = "/_api/collection/_graphs/properties"
body = "{\"waitForSync\" : true}"
doc = ArangoDB.put(cmd, :body => body)
truncate_collection(prefix, "arangodb_graphs")
truncate_collection(prefix, "_graphs")
ArangoDB.drop_collection( vertex_collection )
ArangoDB.drop_collection( edge_collection )
end
@ -1282,9 +1282,9 @@ describe ArangoDB do
context "checks vertices requests" do
before do
truncate_collection(prefix, "arangodb_graphs")
truncate_collection(prefix, "_graphs")
cmd = "/_api/collection/arangodb_graphs/properties"
cmd = "/_api/collection/_graphs/properties"
body = "{\"waitForSync\" : true}"
doc = ArangoDB.put(cmd, :body => body)
@ -1309,9 +1309,9 @@ describe ArangoDB do
end
after do
truncate_collection(prefix, "arangodb_graphs")
truncate_collection(prefix, "_graphs")
cmd = "/_api/collection/arangodb_graphs/properties"
cmd = "/_api/collection/_graphs/properties"
body = "{\"waitForSync\" : true}"
doc = ArangoDB.put(cmd, :body => body)
@ -1432,9 +1432,9 @@ describe ArangoDB do
context "checks edges requests" do
before do
truncate_collection(prefix, "arangodb_graphs")
truncate_collection(prefix, "_graphs")
cmd = "/_api/collection/arangodb_graphs/properties"
cmd = "/_api/collection/_graphs/properties"
body = "{\"waitForSync\" : true}"
doc = ArangoDB.put(cmd, :body => body)
@ -1455,9 +1455,9 @@ describe ArangoDB do
end
after do
truncate_collection(prefix, "arangodb_graphs")
truncate_collection(prefix, "_graphs")
cmd = "/_api/collection/arangodb_graphs/properties"
cmd = "/_api/collection/_graphs/properties"
body = "{\"waitForSync\" : true}"
doc = ArangoDB.put(cmd, :body => body)