Skip to content

Commit

Permalink
document running test cases against remote storage node
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-verida committed Apr 6, 2023
1 parent b9316e2 commit 02dd2fb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,15 @@ docker buildx build --platform linux/amd64,linux/arm64 --push -t verida/storage-

Run tests with `yarn run tests`

Note: The tests in `server.js` require the server to be running locally. The other tests operate fine without the server running.

Common issues when running tests:

1. `Bad key`: The key in CouchDB configuration for `jwt_keys/hmac:_default` is not a valid Base64 encoded key
2. `HMAC error`: The key in CouchDB configuration for `jwt_keys/hmac:_default` does not match `ACCESS_JWT_SIGN_PK` in `.env`


## Testing a deplyed node

To test a deployed node, do the following

* Modify `tests/config.js` with the correct endpoint URLs
* Run `yarn test tests/server.js`

0 comments on commit 02dd2fb

Please sign in to comment.