@cryptotaxi247 / kubo / commits / a11c5d27e

path: gateway test for sharded dirs

License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>

Łukasz Magiera committed Jul 21, 2018 at 15:15 UTC a11c5d27e1981f1d36b000a5fa0897c31e18cd47
1 file changed +9
test/sharness/t0260-sharding.sh
+9
@@ -76,6 +76,15 @@ test_expect_success "'ipfs ls --resolve-type=false' admits missing block" '
76 test_cmp sharded_out missing_out
77 '
78
79 +test_launch_ipfs_daemon
80 +
81 +test_expect_success "gateway can resolve sharded dirs" '
82 + echo 100 > expected &&
83 + curl -sfo actual "http://127.0.0.1:$GWAY_PORT/ipfs/$SHARDED/file100" &&
84 + test_cmp expected actual
85 +'
86 +
87 +test_kill_ipfs_daemon
88
89 test_add_large_dir_v1() {
90 exphash="$1"