mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
sharness: make sure the writable gateway produces the correct hash
This commit is contained in:
parent
2c222741d1
commit
e282aa1480
@ -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" &&
|
||||
|
||||
Loading…
Reference in New Issue
Block a user