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.
 
 
 
 

79 lines
3.8 KiB

  1. [
  2. {
  3. "title": "gen ident",
  4. "cmd": [ "genident", "name=A Test User" ],
  5. "exit": 0
  6. },
  7. {
  8. "special": "setup bittorrent files",
  9. "complete": false
  10. },
  11. {
  12. "title": "add metadata before import",
  13. "cmd": [ "modify", "+foo=bar", "somedir/fileb.txt" ]
  14. },
  15. {
  16. "title": "import partial container",
  17. "cmd": [ "container", "somedir.torrent" ],
  18. "stderr": "Warning, incomple/invalid files, not added for 'somedir.torrent':\n\t'filea.txt'\n\t'filec.txt'\n\t'filee.txt'\n"
  19. },
  20. {
  21. "special": "verify store object cnt",
  22. "comment": "should only have one container and three files, and a metadata",
  23. "count": 5
  24. },
  25. {
  26. "title": "verify correct files imported a",
  27. "cmd": [ "dump" ],
  28. "stdout_re": "fileb.txt.*file.*\n.*foo.*bar.*cc06808cbbee0510331aa97974132e8dc296aeb795be229d064bae784b0a87a5cf4281d82e8c99271b75db2148f08a026c1a60ed9cabdb8cac6d24242dac4063.*\n.*filed.txt.*file.*\n.*filef.txt.*file.*\n.*fileb.txt.*filed.txt.*filef.txt.*cc06808cbbee0510331aa97974132e8dc296aeb795be229d064bae784b0a87a5cf4281d82e8c99271b75db2148f08a026c1.*7831bd05e23877e08a97362bab2ad7bcc7d08d8f841f42e8dee545781792b987aa7637f12cec399e261f798c10d3475add0db7de2643af86a346b6b451a69ec4.*be688838ca8686e5c90689bf2ab585cef1137c.*incomplete.*true.*container.*magnet:\\?xt=urn:btih:501cf3bd4797f49fd7a624e8a9a8ce5cccceb602&dn=somedir"
  29. },
  30. {
  31. "title": "add metadata after import",
  32. "cmd": [ "modify", "+foo=bar", "somedir/filed.txt" ]
  33. },
  34. {
  35. "special": "verify store object cnt",
  36. "comment": "should only have one container and three files, and a metadata",
  37. "count": 6
  38. },
  39. {
  40. "special": "setup bittorrent files",
  41. "complete": true
  42. },
  43. {
  44. "title": "import complete container",
  45. "cmd": [ "container", "somedir.torrent" ]
  46. },
  47. {
  48. "title": "verify correct files imported b",
  49. "cmd": [ "dump" ],
  50. "stdout_check": [
  51. { "type": "identity" },
  52. { "foo": [ "bar" ], "hashes": [
  53. "sha512:cc06808cbbee0510331aa97974132e8dc296aeb795be229d064bae784b0a87a5cf4281d82e8c99271b75db2148f08a026c1a60ed9cabdb8cac6d24242dac4063" ] },
  54. { "foo": [ "bar" ], "hashes": [
  55. "sha512:7831bd05e23877e08a97362bab2ad7bcc7d08d8f841f42e8dee545781792b987aa7637f12cec399e261f798c10d3475add0db7de2643af86a346b6b451a69ec4" ] },
  56. { "filename": "filea.txt", "type": "file" },
  57. { "filename": "fileb.txt", "type": "file" },
  58. { "filename": "filec.txt", "type": "file" },
  59. { "filename": "filed.txt", "type": "file" },
  60. { "filename": "filee.txt", "type": "file" },
  61. { "filename": "filef.txt", "type": "file" },
  62. { "files": [ "filea.txt", "fileb.txt", "filec.txt", "filed.txt", "filee.txt", "filef/filef.txt" ],
  63. "hashes": [ "sha512:0cf9180a764aba863a67b6d72f0918bc131c6772642cb2dce5a34f0a702f9470ddc2bf125c12198b1995c233c34b4afd346c54a2334c350a948a51b6e8b4e6b6", "sha512:cc06808cbbee0510331aa97974132e8dc296aeb795be229d064bae784b0a87a5cf4281d82e8c99271b75db2148f08a026c1a60ed9cabdb8cac6d24242dac4063", "sha512:cb9eb9ec6c2cd9b0d9451e6b179d91e24906a3123be5e5f18e182be09fab30ad6f5de391bb3cf53933d3a1ca29fdd68d23e17c49fbc1a9117c8ab08154c7df30", "sha512:7831bd05e23877e08a97362bab2ad7bcc7d08d8f841f42e8dee545781792b987aa7637f12cec399e261f798c10d3475add0db7de2643af86a346b6b451a69ec4", "sha512:b09a577f24fb7a6f4b3ea641b2b67120e187b605ef27db97bef178457d9002bec846435a205466e327e5ab151ab1b350b5ac1c9f97e48333cec84fecec3b7037", "sha512:be688838ca8686e5c90689bf2ab585cef1137c999b48c70b92f67a5c34dc15697b5d11c982ed6d71be1e1e7f7b4e0733884aa97c3f7a339a8ed03577cf74be09" ],
  64. "type": "container",
  65. "uri": "magnet:?xt=urn:btih:501cf3bd4797f49fd7a624e8a9a8ce5cccceb602&dn=somedir" }
  66. ]
  67. },
  68. {
  69. "special": "verify store object cnt",
  70. "comment": "should only have one container and six files files, and a metadata",
  71. "count": 9
  72. },
  73. {
  74. "title": "that it gets skipped when complete",
  75. "cmd": [ "container", "somedir.torrent" ],
  76. "stderr": "Warning, container already complete, skipping 'somedir.torrent'.\n"
  77. }
  78. ]