@cryptotaxi247 / kubo / commits / 12cf6a842

sharness: note re API/Gateway in t0110-gateway

Juan Batiz-Benet committed Jan 31, 2015 at 18:47 UTC 12cf6a8426f08a88a0d6f5e43eab3a3e66fdc29a
1 file changed +8
test/sharness/t0110-gateway.sh
+8
@@ -9,8 +9,16 @@ test_description="Test HTTP gateway"
9 . lib/test-lib.sh
10
11 test_init_ipfs
12 +test_config_ipfs_gateway_readonly
13 test_launch_ipfs_daemon
14
15 +# TODO check both 5001 and 5002.
16 +# 5001 should have a readable gateway (part of the API)
17 +# 5002 should have a readable gateway (using ipfs config Addresses.Gateway)
18 +# but ideally we should only write the tests once. so maybe we need to
19 +# define a function to test a gateway, and do so for each port.
20 +# for now we check 5001 here as 5002 will be checked in gateway-writable.
21 +
22 test_expect_success "GET IPFS path succeeds" '
23 echo "Hello Worlds!" > expected &&
24 HASH=`ipfs add -q expected` &&