@cryptotaxi247 / kubo / commits / e282aa148

sharness: make sure the writable gateway produces the correct hash

Steven Allen committed Jul 25, 2019 at 19:55 UTC e282aa1480bec1033e4d101203f51db21c43179b
1 file changed +5
test/sharness/t0111-gateway-writeable.sh
+5
@@ -54,6 +54,11 @@ test_expect_success "We can HTTP GET file just created" '
54 test_cmp infile outfile
55 '
56
57 +test_expect_success "We got the correct hash" '
58 + ADD_HASH="/ipfs/$(ipfs add -q infile)" &&
59 + test "x$ADD_HASH" = "x$HASH" || test_fsh echo "$ADD_HASH != $HASH"
60 +'
61 +
62 test_expect_success "HTTP GET empty directory" '
63 URL="http://localhost:$port/ipfs/$HASH_EMPTY_DIR/" &&
64 echo "GET $URL" &&