Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d9febfa

Browse files
committedJun 21, 2015
sharness/t0110-gateway: add simple 404 check for non existent file
1 parent eaec858 commit d9febfa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎test/sharness/t0110-gateway.sh

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ test_expect_success "GET IPFS directory file output looks good" '
4949
test_cmp dir/test actual
5050
'
5151

52+
test_expect_success "GET IPFS non existent file returns code expected (404)" '
53+
test_curl_resp_http_code "http://127.0.0.1:$port/ipfs/$HASH2/pleaseDontAddMe" "HTTP/1.1 404 Not Found"
54+
'
55+
5256
test_expect_failure "GET IPNS path succeeds" '
5357
ipfs name publish "$HASH" &&
5458
NAME=$(ipfs config Identity.PeerID) &&

0 commit comments

Comments
 (0)
Please sign in to comment.