From a11c5d27e1981f1d36b000a5fa0897c31e18cd47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Sat, 21 Jul 2018 15:15:40 +0200 Subject: [PATCH] path: gateway test for sharded dirs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit License: MIT Signed-off-by: Ɓukasz Magiera --- test/sharness/t0260-sharding.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/sharness/t0260-sharding.sh b/test/sharness/t0260-sharding.sh index 63f797aba..01fc447f4 100755 --- a/test/sharness/t0260-sharding.sh +++ b/test/sharness/t0260-sharding.sh @@ -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"