add sharness for trickle importer
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Jul 16, 2018 at 15:03 UTC
1358b28204d2c8f077d78d61fdd32c9abf9294e4
1 file changed
+6
test/sharness/t0272-urlstore.sh
+6
@@ -124,6 +124,12 @@ test_expect_success "get large file via urlstore" '
124
test_cmp file3 file3.actual
125
'
126
127
+test_expect_success "check that the trickle option works" '
128
+ HASHat=$(ipfs add -q --cid-version=1 --raw-leaves=true -n --trickle file3) &&
129
+ HASHut=$(ipfs urlstore add --trickle http://127.0.0.1:$GWAY_PORT/ipfs/$HASH3a) &&
130
+ test $HASHat = $HASHut
131
+'
132
+
133
test_kill_ipfs_daemon
134
135
test_expect_success "files can not be retrieved via the urlstore" '