check hashes in urlstore sharness tests
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Jul 16, 2018 at 15:03 UTC
4d4f343df776e3bb202472967ffe7f3b16643232
1 file changed
+9
test/sharness/t0272-urlstore.sh
+9
@@ -138,4 +138,13 @@ test_expect_success "files can not be retrieved via the urlstore" '
138
test_must_fail ipfs cat $HASH3 > /dev/null
139
'
140
141
+test_expect_success "check that the hashes were correct" '
142
+ HASH1e=$(ipfs add -q -n --cid-version=1 --raw-leaves=true file1) &&
143
+ HASH2e=$(ipfs add -q -n --cid-version=1 --raw-leaves=true file2) &&
144
+ HASH3e=$(ipfs add -q -n --cid-version=1 --raw-leaves=true file3) &&
145
+ test $HASH1e = $HASH1 &&
146
+ test $HASH2e = $HASH2 &&
147
+ test $HASH3e = $HASH3
148
+'
149
+
150
test_done