[ { "title": "gen ident", "cmd": [ "genident", "name=A Test User" ], "exit": 0 }, { "title": "add tag", "cmd": [ "modify", "+tag=foo", "newfile.txt" ] }, { "title": "that a new object can be created w/o a file", "cmd": [ "new", "ms:tag=random", "some=tag" ], "store": [ "newuuid", "stdout" ], "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$" }, { "special": "verify store object cnt", "comment": "and the object was stored", "count": 3 }, { "title": "that thew new object can be added as a parent", "format": [ "cmd" ], "cmd": [ "modify", "+parent_refs={newuuid}", "newfile.txt" ] }, { "title": "newfile.txt has parent tags", "cmd": [ "list", "newfile.txt" ], "format": [ "stdout_re" ], "stdout_re": "hashes:\tsha512:90f8342520f0ac57fb5a779f5d331c2fa87aa40f8799940257f9ba619940951e67143a8d746535ed0284924b2b7bc1478f095198800ba96d01847d7b56ca465c\nms:tag:\trandom\nparent_refs:\t{newuuid}\nsig:\t.*\nsig:\t.*\nsome:\ttag\ntag:\tfoo\n" }, { "title": "search includes newfile.txt ", "cmd": [ "search", "file", "+ms:tag=random" ], "stdout_re": "newfile.txt\n$" }, { "title": "that thew new object can be added as a parent", "format": [ "cmd" ], "cmd": [ "modify", "+some=tag", "test.txt" ] }, { "title": "search excludes newfile.txt ", "cmd": [ "search", "file", "-ms:tag=random" ], "stdout_re": "^.*test.txt\n$" }, { "title": "search excludes newfile.txt ", "cmd": [ "search", "file", "+some=tag", "-ms:tag=random" ], "stdout_re": "^.*test.txt\n$" }, { "title": "that an obj can be modified by uuid", "format": [ "cmd" ], "cmd": [ "modify", "+another=tag", "uuid:{newuuid}" ] }, { "title": "and modification works", "cmd": [ "search", "file", "+another=tag" ], "stdout_re": "newfile.txt\n$" }, { "title": "that a parent obj can be dropped", "format": [ "cmd" ], "cmd": [ "drop", "{newuuid}" ] } ]