Commit e0d48443 authored by Adin Schmahmann's avatar Adin Schmahmann

test: add sharness tests for remote pinning service endpoints that are not http(s) URIs

parent fc4095cf
......@@ -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 &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment