|
- [
- {
- "title": "gen ident",
- "cmd": [ "genident", "name=A Test User" ],
- "exit": 0
- },
- {
- "special": "set hostid",
- "hostid": "ceaa4862-dd00-41ba-9787-7480ec1b2679"
- },
- {
- "title": "create host",
- "cmd": [ "hosts" ]
- },
- {
- "special": "set hostid",
- "hostid": "efdb5d9c-d123-4b30-aaa8-45a9ea8f6053"
- },
- {
- "title": "create host",
- "cmd": [ "hosts" ]
- },
- {
- "title": "add tag a",
- "cmd": [ "modify", "+tag=foo", "+dc:creator=John-Mark Gurney", "newfile.txt" ]
- },
- {
- "title": "add tag b",
- "cmd": [ "modify", "+tag=bar", "+dc:creator=John-Mark Gurney", "+other=baz", "test.txt" ]
- },
- {
- "special": "verify store object cnt",
- "comment": "should have two file and two metadata and two hosts",
- "count": 6
- },
- {
- "title": "search tag foo",
- "cmd": [ "search", "file", "+tag=foo" ],
- "stdout_re": "/newfile.txt\n$"
- },
- {
- "title": "search tag bar",
- "cmd": [ "search", "file", "+tag=bar" ],
- "stdout_re": "/test.txt\n$"
- },
- {
- "title": "search no tag bar",
- "cmd": [ "search", "file", "-tag=bar" ],
- "stdout_re": "/newfile.txt\n$"
- },
- {
- "title": "search no other",
- "cmd": [ "search", "file", "-other" ],
- "stdout_re": "/newfile.txt\n$"
- },
- {
- "special": "set hostid",
- "hostid": "ceaa4862-dd00-41ba-9787-7480ec1b2679"
- },
- {
- "title": "test that no mapping works",
- "cmd": [ "search", "file", "+other" ],
- "stdout_re": "^efdb5d9c-d123-4b30-aaa8-45a9ea8f6053:/.*/test.txt\n$"
- },
- {
- "special": "set hostid",
- "hostid": "efdb5d9c-d123-4b30-aaa8-45a9ea8f6053"
- },
- {
- "title": "host mapping works",
- "cmd": [ "mapping", "--create", ".", "ceaa4862-dd00-41ba-9787-7480ec1b2679:/foobar" ]
- },
- {
- "special": "set hostid",
- "hostid": "ceaa4862-dd00-41ba-9787-7480ec1b2679"
- },
- {
- "title": "search other, mapped properly",
- "cmd": [ "search", "file", "+other" ],
- "stdout_re": "^/foobar/test.txt\n$"
- }
- ]
|