提交 50a1113b 作者: Steven Allen

sharness: make sure putting to IPNS fails

上级 e282aa14
......@@ -118,6 +118,14 @@ test_expect_success "We can HTTP GET file just put over a directory" '
test_cmp infile3 outfile3
'
test_expect_success "HTTP PUT to /ipns fails" '
PEERID=`ipfs id --format="<id>"` &&
URL="http://localhost:$port/ipns/$PEERID/test.txt" &&
echo "PUT $URL" &&
curl -svX PUT --data-binary @infile1 "$URL" 2>curl_putIpns.out &&
grep "HTTP/1.1 400 Bad Request" curl_putIpns.out
'
test_kill_ipfs_daemon
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论