Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
358d04c6
Commit
358d04c6
authored
Jun 21, 2015
by
Henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sharness/t0110-gateway: add simple 404 check for non existent file
License: MIT Signed-off-by:
Henry
<
cryptix@riseup.net
>
parent
053e531d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test/sharness/t0110-gateway.sh
test/sharness/t0110-gateway.sh
+4
-0
No files found.
test/sharness/t0110-gateway.sh
View file @
358d04c6
...
...
@@ -53,6 +53,10 @@ test_expect_success "GET IPFS directory file output looks good" '
test_cmp dir/test actual
'
test_expect_success
"GET IPFS non existent file returns code expected (404)"
'
test_curl_resp_http_code "http://127.0.0.1:$port/ipfs/$HASH2/pleaseDontAddMe" "HTTP/1.1 404 Not Found"
'
test_expect_failure
"GET IPNS path succeeds"
'
ipfs name publish "$HASH" &&
NAME=$(ipfs config Identity.PeerID) &&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment