pinning-service-compliance
The compliance test suite for IPFS Pinning Service API Spec
Getting started
Run the compliance checker against a service:
npx -p @ipfs-shipyard/pinning-service-compliance -- pinning-service-compliance -s <pinning_service_endpoint> <auth_token>
Development
Run the script
npm ci
npm run build
npm start -- -s $API_ENDPOINT $ACCESS_TOKEN
# or multiple endpoints
npm start -- -s $API_ENDPOINT1 $ACCESS_TOKEN1 -s $API_ENDPOINT2 $ACCESS_TOKEN2
Debugging
To debug problems, you should use the -d
flag, and the dev-start
script:
npm run dev-start -- -s $API_ENDPOINT $ACCESS_TOKEN
FAQ
What is a Compliance Check?
A compliance check consists of:
- An API call
- A Payload
- An expected response
- A summary
How to avoid typing secrets by hand?
To avoid setting secrets by hand:
cp .env-copy .env
Then replace all variables with the appropriate endpoints and tokens