Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the urlstore tests #5397

Merged
merged 1 commit into from
Aug 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/sharness/t0272-urlstore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down Expand Up @@ -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)
'
Expand All @@ -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
'
Expand Down