MetaData Sharing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

69 lines
1.8 KiB

  1. [
  2. {
  3. "title": "gen ident",
  4. "cmd": [ "genident", "name=A Test User" ],
  5. "exit": 0
  6. },
  7. {
  8. "title": "add tag",
  9. "cmd": [ "modify", "+tag=foo", "newfile.txt" ]
  10. },
  11. {
  12. "title": "that a new object can be created w/o a file",
  13. "cmd": [ "new", "ms:tag=random", "some=tag" ],
  14. "store": [ "newuuid", "stdout" ],
  15. "stdout_re": "^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}\n$"
  16. },
  17. {
  18. "special": "verify store object cnt",
  19. "comment": "and the object was stored",
  20. "count": 3
  21. },
  22. {
  23. "title": "that thew new object can be added as a parent",
  24. "format": [ "cmd" ],
  25. "cmd": [ "modify", "+parent_refs={newuuid}", "newfile.txt" ]
  26. },
  27. {
  28. "title": "newfile.txt has parent tags",
  29. "cmd": [ "list", "newfile.txt" ],
  30. "format": [ "stdout_re" ],
  31. "stdout_re": "hashes:\tsha512:90f8342520f0ac57fb5a779f5d331c2fa87aa40f8799940257f9ba619940951e67143a8d746535ed0284924b2b7bc1478f095198800ba96d01847d7b56ca465c\nms:tag:\trandom\nparent_refs:\t{newuuid}\nsig:\t.*\nsig:\t.*\nsome:\ttag\ntag:\tfoo\n"
  32. },
  33. {
  34. "title": "search includes newfile.txt ",
  35. "cmd": [ "search", "file", "+ms:tag=random" ],
  36. "stdout_re": "newfile.txt\n$"
  37. },
  38. {
  39. "title": "that thew new object can be added as a parent",
  40. "format": [ "cmd" ],
  41. "cmd": [ "modify", "+some=tag", "test.txt" ]
  42. },
  43. {
  44. "title": "search excludes newfile.txt ",
  45. "cmd": [ "search", "file", "-ms:tag=random" ],
  46. "stdout_re": "^.*test.txt\n$"
  47. },
  48. {
  49. "title": "search excludes newfile.txt ",
  50. "cmd": [ "search", "file", "+some=tag", "-ms:tag=random" ],
  51. "stdout_re": "^.*test.txt\n$"
  52. },
  53. {
  54. "title": "that an obj can be modified by uuid",
  55. "format": [ "cmd" ],
  56. "cmd": [ "modify", "+another=tag", "uuid:{newuuid}" ]
  57. },
  58. {
  59. "title": "and modification works",
  60. "cmd": [ "search", "file", "+another=tag" ],
  61. "stdout_re": "newfile.txt\n$"
  62. },
  63. {
  64. "title": "that a parent obj can be dropped",
  65. "format": [ "cmd" ],
  66. "cmd": [ "drop", "{newuuid}" ]
  67. }
  68. ]