1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-22 21:21:43 +08:00

path: gateway test for sharded dirs

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
Łukasz Magiera
2018-07-21 15:15:40 +02:00
parent 772deca3e9
commit a11c5d27e1

View File

@ -76,6 +76,15 @@ test_expect_success "'ipfs ls --resolve-type=false' admits missing block" '
test_cmp sharded_out missing_out
'
test_launch_ipfs_daemon
test_expect_success "gateway can resolve sharded dirs" '
echo 100 > expected &&
curl -sfo actual "http://127.0.0.1:$GWAY_PORT/ipfs/$SHARDED/file100" &&
test_cmp expected actual
'
test_kill_ipfs_daemon
test_add_large_dir_v1() {
exphash="$1"