Surface tests for CRUD and Websockets-pubsub functionality of a pod server
Start your server with a self-signed cert on port 443 of localhost (for node-solid-server, make sure to set ACL_CACHE_TIME=5) and run sh ./example.sh.
In one terminal window:
npm ci; npm run buildisRSAPublicJWK(x) in node_modules/@solid/dist/identity-token-verifier/dist/guards/DPoPJWKGuard.js and add x.alg = 'RS256' at the top of that function, to work around a bug in NSS v5.6.4, caused by https://github.com/solid/oidc-op/issues/29.In another terminal window:
npm cirun-against-css branchnode ./setup.js http://localhost:3000/.acl to create a root ACL at http://localhost:3000/.acl which gives https://solidtestsuite.solidcommunity.net/profile/card#me full read/write/control access.node ./fetch.js http://localhost:3000/.acl to check that Alice ('solidtestsuite') can access it.node ./fetch-bob.js http://localhost:3000/.acl to check that Bob ('solid-crud-tests-example-2') can not access it.bash ./run-against-css.shYou can also cut-and-paste the lines from run-against-css.sh into your bash shell, then you can more easily run tests interactively.
If you want to use your NSS on localhost instead of on solidcommunity.net, then:
oidcIssuer = 'https://localhost:8443';, nssUsername = 'alice', and nssPassword = '123';.NODE_TLS_REJECT_UNAUTHORIZED=0 ./bin/server.js -l debug.NODE_TLS_REJECT_UNAUTHORIZED=0 as well, for instance:NODE_TLS_REJECT_UNAUTHORIZED=0 node fetch.js http://localhost:3000/404.txt
Content type
Image
Digest
Size
438.5 MB
Last updated
over 5 years ago
docker pull solidtestsuite/web-access-control-tests