Skip to content

Commit

Permalink
test: add sharness tests for remote pinning service endpoints that ar…
Browse files Browse the repository at this point in the history
…e not http(s) URIs
  • Loading branch information
aschmahmann committed Jan 27, 2021
1 parent e4bc551 commit 29004b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/sharness/t0700-remotepin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,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 &&
Expand Down

0 comments on commit 29004b2

Please sign in to comment.