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
09e4224a
Commit
09e4224a
authored
Feb 03, 2015
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/sharness: Fixed gateway tests
parent
e8bbf1dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
test/sharness/t0110-gateway.sh
test/sharness/t0110-gateway.sh
+6
-6
No files found.
test/sharness/t0110-gateway.sh
View file @
09e4224a
...
...
@@ -22,7 +22,7 @@ test_launch_ipfs_daemon
test_expect_success
"GET IPFS path succeeds"
'
echo "Hello Worlds!" > expected &&
HASH=`ipfs add -q expected` &&
wget "http://127.0.0.1:500
1
/ipfs/$HASH" -O actual
wget "http://127.0.0.1:500
2
/ipfs/$HASH" -O actual
'
test_expect_success
"GET IPFS path output looks good"
'
...
...
@@ -34,11 +34,11 @@ test_expect_success "GET IPFS directory path succeeds" '
mkdir dir &&
echo "12345" > dir/test &&
HASH2=`ipfs add -r -q dir | tail -n 1` &&
wget "http://127.0.0.1:500
1
/ipfs/$HASH2"
wget "http://127.0.0.1:500
2
/ipfs/$HASH2"
'
test_expect_success
"GET IPFS directory file succeeds"
'
wget "http://127.0.0.1:500
1
/ipfs/$HASH2/test" -O actual
wget "http://127.0.0.1:500
2
/ipfs/$HASH2/test" -O actual
'
test_expect_success
"GET IPFS directory file output looks good"
'
...
...
@@ -48,7 +48,7 @@ test_expect_success "GET IPFS directory file output looks good" '
test_expect_failure
"GET IPNS path succeeds"
'
ipfs name publish "$HASH" &&
NAME=`ipfs config Identity.PeerID` &&
wget "http://127.0.0.1:500
1
/ipns/$NAME" -O actual
wget "http://127.0.0.1:500
2
/ipns/$NAME" -O actual
'
test_expect_failure
"GET IPNS path output looks good"
'
...
...
@@ -56,11 +56,11 @@ test_expect_failure "GET IPNS path output looks good" '
'
test_expect_success
"GET invalid IPFS path errors"
'
test_must_fail wget http://127.0.0.1:500
1
/ipfs/12345
test_must_fail wget http://127.0.0.1:500
2
/ipfs/12345
'
test_expect_success
"GET invalid path errors"
'
test_must_fail wget http://127.0.0.1:500
1
/12345
test_must_fail wget http://127.0.0.1:500
2
/12345
'
test_kill_ipfs_daemon
...
...
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