Skip to content

Commit

Permalink
sharness: make sure putting to IPNS fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 26, 2019
1 parent e282aa1 commit 50a1113
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/sharness/t0111-gateway-writeable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 50a1113

Please sign in to comment.