[
{
	"title": "gen ident",
	"cmd": [ "genident", "name=A Test User" ],
	"exit": 0
},
{
	"special": "setup bittorrent files",
	"complete": false
},
{
	"title": "add metadata before import",
	"cmd": [ "modify", "+foo=bar", "somedir/fileb.txt" ]
},
{
	"title": "import partial container",
	"cmd": [ "container", "somedir.torrent" ],
	"stderr": "Warning, incomple/invalid files, not added for 'somedir.torrent':\n\t'filea.txt'\n\t'filec.txt'\n\t'filee.txt'\n"
},
{
        "special": "verify store object cnt",
        "comment": "should only have one container and three files, and a metadata",
        "count": 5
},
{
	"title": "verify correct files imported",
	"cmd": [ "dump" ],
	"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"
},
{
	"title": "add metadata after import",
	"cmd": [ "modify", "+foo=bar", "somedir/filed.txt" ]
},
{
        "special": "verify store object cnt",
        "comment": "should only have one container and three files, and a metadata",
        "count": 6
},
{
	"special": "setup bittorrent files",
	"complete": true
},
{
	"title": "import complete container",
	"cmd": [ "container", "somedir.torrent" ]
},
{
	"title": "verify correct files imported",
	"cmd": [ "dump" ],
	"stdout_re": ".*\n.*fileb.txt.*file.*\n.*foo.*bar.*cc06808cbbee0510331aa97974132e8dc296aeb795be229d064bae784b0a87a5cf4281d82e8c99271b75db2148f08a026c1a60ed9cabdb8cac6d24242dac4063.*\n.*filed.txt.*file.*\n.*filef.txt.*file.*\n.*filea.txt.*fileb.txt.*filec.txt.*filed.txt.*filee.txt.*filef.txt.*0cf9180a764aba863a67b6d72f0918bc131c6772642cb2dce5a34f0a702f9470ddc2bf125c12198b1995c233c34b4afd346c54a2334c350a948a51b6e8b4e6b6.*cc06808cbbee0510331aa97974132e8dc296aeb795be229d064bae784b0a87a5cf4281d82e8c99271b75db2148f08a026c1.*7831bd05e23877e08a97362bab2ad7bcc7d08d8f841f42e8dee545781792b987aa7637f12cec399e261f798c10d3475add0db7de2643af86a346b6b451a69ec4.*be688838ca8686e5c90689bf2ab585cef1137c.*container.*magnet:\\?xt=urn:btih:501cf3bd4797f49fd7a624e8a9a8ce5cccceb602&dn=somedir"
},
{
        "special": "verify store object cnt",
        "comment": "should only have one container and six files files, and a metadata",
        "count": 9
}
]