submission.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. describe("Archive submission process", function()
  2. describe("Valid submissions", function()
  3. it("should process a basic LL", function()
  4. end)
  5. it("should create resources with only IDs", function()
  6. end)
  7. it("should create resources with only source paths", function()
  8. end)
  9. it("should create resources with IDs & paths and keep the IDs", function()
  10. end)
  11. it("should create a DRes without a path or ID", function()
  12. end)
  13. it("should create resources with one multi-valued field", function()
  14. end)
  15. it("should create resources with multiple multi-valued fields", function()
  16. end)
  17. it("should process ID references", function()
  18. end)
  19. it("should process path references", function()
  20. end)
  21. it("should generate explicit collection members", function()
  22. end)
  23. it("should generate implicit collection members", function()
  24. end)
  25. end)
  26. describe("Invalid submissions", function()
  27. it("should not allow a first row without a content type", function()
  28. end)
  29. it("should not allow an ID on a row without a content type", function()
  30. end)
  31. it("should not allow a source path on a row without a content type", function()
  32. end)
  33. --[[
  34. it("should ", function()
  35. end)
  36. --]]
  37. end)
  38. describe("Update", function()
  39. it("should update metadata only from a LL", function()
  40. end)
  41. it("should update metadata and files from a full SIP", function()
  42. end)
  43. it("should update metadata of a file present in the archive but not in the SIP", function()
  44. end)
  45. it("should ", function()
  46. end)
  47. end)
  48. end)
  49. describe("Submission data validation", function ()
  50. it("should allow any number of values without cardinality constraints", function()
  51. end)
  52. it("should fail if any value is below min cardinality", function()
  53. end)
  54. it("should fail if any value is above max cardinality", function()
  55. end)
  56. it("should fail if value cannot be cast to the given data type", function()
  57. end)
  58. it("should fail if a number is out of range", function()
  59. end)
  60. it("should fail if a string is out of range", function()
  61. end)
  62. it("should fail if a relationship is out of range", function()
  63. end)
  64. end)