Commit e282aa14 authored by Steven Allen's avatar Steven Allen

sharness: make sure the writable gateway produces the correct hash

parent 2c222741
...@@ -54,6 +54,11 @@ test_expect_success "We can HTTP GET file just created" ' ...@@ -54,6 +54,11 @@ test_expect_success "We can HTTP GET file just created" '
test_cmp infile outfile 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" ' test_expect_success "HTTP GET empty directory" '
URL="http://localhost:$port/ipfs/$HASH_EMPTY_DIR/" && URL="http://localhost:$port/ipfs/$HASH_EMPTY_DIR/" &&
echo "GET $URL" && echo "GET $URL" &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment