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
cb1c5c53
Commit
cb1c5c53
authored
Jan 01, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add sharness test for index.html content type
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
a83c3a33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
test/sharness/t0110-gateway.sh
test/sharness/t0110-gateway.sh
+15
-0
No files found.
test/sharness/t0110-gateway.sh
View file @
cb1c5c53
...
...
@@ -92,6 +92,21 @@ test_expect_success "log output looks good" '
grep "log API client connected" log_out
'
test_expect_success
"setup index hash"
'
mkdir index &&
echo "<p></p>" > index/index.html &&
INDEXHASH=$(ipfs add -q -r index | tail -n1)
echo index: $INDEXHASH
'
test_expect_success
"GET 'index.html' has correct content type"
'
curl -I "http://127.0.0.1:$port/ipfs/$INDEXHASH/" > indexout
'
test_expect_success
"output looks good"
'
grep "Content-Type: text/html" indexout
'
# test ipfs readonly api
test_curl_gateway_api
()
{
...
...
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