From e282aa1480bec1033e4d101203f51db21c43179b Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 25 Jul 2019 19:55:46 -0700 Subject: [PATCH] sharness: make sure the writable gateway produces the correct hash --- test/sharness/t0111-gateway-writeable.sh | 5 +++++ 1 file changed, 5 insertions(+) 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" &&