diff --git a/test/sharness/t0111-gateway-writeable.sh b/test/sharness/t0111-gateway-writeable.sh index abd2d57ff..b6d8d8474 100755 --- a/test/sharness/t0111-gateway-writeable.sh +++ b/test/sharness/t0111-gateway-writeable.sh @@ -54,6 +54,11 @@ test_expect_success "We can HTTP GET file just created" ' test_cmp infile outfile ' +test_expect_success "We got the correct hash" ' + ADD_HASH="/ipfs/$(ipfs add -q infile)" && + test "x$ADD_HASH" = "x$HASH" || test_fsh echo "$ADD_HASH != $HASH" +' + test_expect_success "HTTP GET empty directory" ' URL="http://localhost:$port/ipfs/$HASH_EMPTY_DIR/" && echo "GET $URL" &&