|
@@ -0,0 +1,55 @@
|
|
|
|
+describe("Archive submission process", function()
|
|
|
|
+ describe("Valid submissions", function()
|
|
|
|
+ it("should process a basic LL", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should create resources with only IDs", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should create resources with only source paths", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should create resources with IDs & paths and keep the IDs", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should create a DRes without a path or ID", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should create resources with one multi-valued field", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should create resources with multiple multi-valued fields", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should process ID references", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should process path references", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should generate explicit collection members", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should generate implicit collection members", function()
|
|
|
|
+ end)
|
|
|
|
+ end)
|
|
|
|
+ describe("Invalid submissions", function()
|
|
|
|
+ it("should not allow a first row without a content type", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should not allow an ID on a row without a content type", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should not allow a source path on a row without a content type", function()
|
|
|
|
+ end)
|
|
|
|
+ --[[
|
|
|
|
+ it("should ", function()
|
|
|
|
+ end)
|
|
|
|
+ --]]
|
|
|
|
+ end)
|
|
|
|
+end)
|
|
|
|
+
|
|
|
|
+describe("Submission data validation", function ()
|
|
|
|
+ it("should allow any number of values without cardinality constraints", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should fail if any value is below min cardinality", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should fail if any value is above max cardinality", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should fail if value cannot be cast to the given data type", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should fail if a number is out of range", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should fail if a string is out of range", function()
|
|
|
|
+ end)
|
|
|
|
+ it("should fail if a relationship is out of range", function()
|
|
|
|
+ end)
|
|
|
|
+end)
|