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
e0d48443
Commit
e0d48443
authored
Jan 27, 2021
by
Adin Schmahmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add sharness tests for remote pinning service endpoints that are not http(s) URIs
parent
fc4095cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
test/sharness/t0700-remotepin.sh
test/sharness/t0700-remotepin.sh
+6
-0
No files found.
test/sharness/t0700-remotepin.sh
View file @
e0d48443
...
...
@@ -37,6 +37,12 @@ test_expect_success "creating test user on remote pinning service" '
ipfs pin remote service add test_invalid_url_dns_svc https://invalid-service.example.com fake_api_key
'
# add a service with a invalid endpoint
test_expect_success
"adding remote service with invalid endpoint"
'
test_expect_code 1 ipfs pin remote service add test_endpoint_no_protocol invalid-service.example.com fake_api_key &&
test_expect_code 1 ipfs pin remote service add test_endpoint_bad_protocol xyz://invalid-service.example.com fake_api_key
'
test_expect_success
"test 'ipfs pin remote service ls'"
'
ipfs pin remote service ls | tee ls_out &&
grep -q test_pin_svc ls_out &&
...
...
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