test: add sharness tests for remote pinning service endpoints that are not http(s) URIs
Adin Schmahmann committed
Jan 27, 2021 at 14:07 UTC
e0d484431adc292e1aa63aeb36cd2298486c743f
1 file changed
+6
test/sharness/t0700-remotepin.sh
+6
@@ -37,6 +37,12 @@ test_expect_success "creating test user on remote pinning service" '
37
ipfs pin remote service add test_invalid_url_dns_svc https://invalid-service.example.com fake_api_key
38
'
39
40
+# add a service with a invalid endpoint
41
+test_expect_success "adding remote service with invalid endpoint" '
42
+ test_expect_code 1 ipfs pin remote service add test_endpoint_no_protocol invalid-service.example.com fake_api_key &&
43
+ test_expect_code 1 ipfs pin remote service add test_endpoint_bad_protocol xyz://invalid-service.example.com fake_api_key
44
+'
45
+
46
test_expect_success "test 'ipfs pin remote service ls'" '
47
ipfs pin remote service ls | tee ls_out &&
48
grep -q test_pin_svc ls_out &&