提交 21575ba5 作者: Matt Bell 提交者: Juan Batiz-Benet

test/sharness: Fixed gateway test formatting

上级 cea68afa
...@@ -14,7 +14,7 @@ test_launch_ipfs_daemon ...@@ -14,7 +14,7 @@ test_launch_ipfs_daemon
test_expect_success "GET IPFS path succeeds" ' test_expect_success "GET IPFS path succeeds" '
echo "Hello Worlds!" > expected && echo "Hello Worlds!" > expected &&
HASH=`ipfs add -q expected` && HASH=`ipfs add -q expected` &&
wget http://127.0.0.1:5001/ipfs/"$HASH" -O actual wget "http://127.0.0.1:5001/ipfs/$HASH" -O actual
' '
test_expect_success "GET IPFS path output looks good" ' test_expect_success "GET IPFS path output looks good" '
...@@ -26,11 +26,11 @@ test_expect_success "GET IPFS directory path succeeds" ' ...@@ -26,11 +26,11 @@ test_expect_success "GET IPFS directory path succeeds" '
mkdir dir && mkdir dir &&
echo "12345" > dir/test && echo "12345" > dir/test &&
HASH2=`ipfs add -r -q dir | tail -n 1` && HASH2=`ipfs add -r -q dir | tail -n 1` &&
wget http://127.0.0.1:5001/ipfs/"$HASH2" wget "http://127.0.0.1:5001/ipfs/$HASH2"
' '
test_expect_success "GET IPFS directory file succeeds" ' test_expect_success "GET IPFS directory file succeeds" '
wget http://127.0.0.1:5001/ipfs/"$HASH2"/test -O actual wget "http://127.0.0.1:5001/ipfs/$HASH2/test" -O actual
' '
test_expect_success "GET IPFS directory file output looks good" ' 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,7 +40,7 @@ test_expect_success "GET IPFS directory file output looks good" '
test_expect_failure "GET IPNS path succeeds" ' test_expect_failure "GET IPNS path succeeds" '
ipfs name publish "$HASH" && ipfs name publish "$HASH" &&
NAME=`ipfs config Identity.PeerID` && NAME=`ipfs config Identity.PeerID` &&
wget http://127.0.0.1:5001/ipns/"$NAME" -O actual wget "http://127.0.0.1:5001/ipns/$NAME" -O actual
' '
test_expect_failure "GET IPNS path output looks good" ' test_expect_failure "GET IPNS path output looks good" '
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论