We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent eaec858 commit d9febfaCopy full SHA for d9febfa
test/sharness/t0110-gateway.sh
@@ -49,6 +49,10 @@ test_expect_success "GET IPFS directory file output looks good" '
49
test_cmp dir/test actual
50
'
51
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
+
56
test_expect_failure "GET IPNS path succeeds" '
57
ipfs name publish "$HASH" &&
58
NAME=$(ipfs config Identity.PeerID) &&
0 commit comments