test/sharness: Fixed gateway test formatting
Matt Bell committed
Jan 28, 2015 at 05:06 UTC
21575ba535ea96c183506d80f6a351b00e72cb03
1 file changed
+4
-4
test/sharness/t0100-gateway.sh
+4
-4
@@ -14,7 +14,7 @@ test_launch_ipfs_daemon
14
test_expect_success "GET IPFS path succeeds" '
15
echo "Hello Worlds!" > expected &&
16
HASH=`ipfs add -q expected` &&
17
- wget http://127.0.0.1:5001/ipfs/"$HASH" -O actual
17
+ wget "http://127.0.0.1:5001/ipfs/$HASH" -O actual
18
'
19
20
test_expect_success "GET IPFS path output looks good" '
@@ -26,11 +26,11 @@ test_expect_success "GET IPFS directory path succeeds" '
26
mkdir dir &&
27
echo "12345" > dir/test &&
28
HASH2=`ipfs add -r -q dir | tail -n 1` &&
29
- wget http://127.0.0.1:5001/ipfs/"$HASH2"
29
+ wget "http://127.0.0.1:5001/ipfs/$HASH2"
30
'
31
32
test_expect_success "GET IPFS directory file succeeds" '
33
- wget http://127.0.0.1:5001/ipfs/"$HASH2"/test -O actual
33
+ wget "http://127.0.0.1:5001/ipfs/$HASH2/test" -O actual
34
'
35
36
test_expect_success "GET IPFS directory file output looks good" '
@@ -40,7 +40,7 @@ test_expect_success "GET IPFS directory file output looks good" '
40
test_expect_failure "GET IPNS path succeeds" '
41
ipfs name publish "$HASH" &&
42
NAME=`ipfs config Identity.PeerID` &&
43
- wget http://127.0.0.1:5001/ipns/"$NAME" -O actual
43
+ wget "http://127.0.0.1:5001/ipns/$NAME" -O actual
44
'
45
46
test_expect_failure "GET IPNS path output looks good" '