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
6a05c974
Unverified
Commit
6a05c974
authored
Aug 23, 2018
by
Steven Allen
Committed by
GitHub
Aug 23, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5397 from ipfs/fix/urlstore-tests
fix the urlstore tests
parents
4b4bdf48
43f4147d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
test/sharness/t0272-urlstore.sh
test/sharness/t0272-urlstore.sh
+7
-0
No files found.
test/sharness/t0272-urlstore.sh
View file @
6a05c974
...
...
@@ -57,6 +57,7 @@ test_expect_success "make sure hashes are different" '
'
test_expect_success
"get files via urlstore"
'
rm -f file1.actual file2.actual &&
ipfs get $HASH1 -o file1.actual &&
test_cmp file1 file1.actual &&
ipfs get $HASH2 -o file2.actual &&
...
...
@@ -111,6 +112,11 @@ test_expect_success "files can not be retrieved via the urlstore" '
test_must_fail ipfs cat $HASH2 > /dev/null
'
test_expect_success
"remove broken files"
'
ipfs pin rm $HASH1 $HASH2 &&
ipfs repo gc > /dev/null
'
test_expect_success
"add large file using gateway address via url store"
'
HASH3=$(ipfs urlstore add http://127.0.0.1:$GWAY_PORT/ipfs/$HASH3a)
'
...
...
@@ -120,6 +126,7 @@ test_expect_success "make sure hashes are different" '
'
test_expect_success
"get large file via urlstore"
'
rm -f file3.actual &&
ipfs get $HASH3 -o file3.actual &&
test_cmp file3 file3.actual
'
...
...
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