Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 897 Bytes

File metadata and controls

23 lines (16 loc) · 897 Bytes

Running CryptFolio API tests

With your CryptFolio account, create a new registered OAuth2 application with public/info/read/write/delete permissions.

Create another test account on CryptFolio, and lodge a support request to enable remote login. This allows the API client to login with user/password, rather than the full OAuth2 process.

Create a local .env file with your OAuth2 key and secret, and your test users' credentials:

HOST: "https://cryptfolio.com"

OAUTH2_KEY: "36ca4f9fc7cbb8fcf71053e3..."
OAUTH2_SECRET: "2db1743cb77d2b8ae6741ddf..."
OAUTH2_REDIRECT_URI: "http://localhost:3000/api"

TEST_USER_EMAIL: "example@example.com"
TEST_USER_PASSWORD: "example"
TEST_USER_NAME: "example user"

You can then run the specs locally with rspec.