-
Notifications
You must be signed in to change notification settings - Fork 17
VR API Specs
Phil Hofmann edited this page Sep 18, 2015
·
2 revisions
VR API Specs are hosted in a public repo: https://github.com/voicerepublic/vr_api_specs
You need a config file to run the specs. The config file my hold settings for multiple target systems.
staging:
endpoint: https://staging:[email protected]/api
email: [email protected]
token: sometoken
live:
endpoint: https://voicerepublic.com/api
email: [email protected]
token: sometoken
Clone the repo, put the config file as config.yml
into the root folder of the Repo.
You can run specs with
rspec
or resp.
SPEC_ENV=live rspec
The repo has been cloned to staging:~/vr_api_specs
. From there it is executed twice a day via a cronjob.
0 7,19 * * * bash -l -c '~/bin/run_rspec'
The script run_rspec
is located in ~/bin
. It's a hack and it has the token for Slack hardcoded.
A report to #voicerepublic_tech
on Slack will only be filed if specs fail.
To upgrade, simply log into staging
cd vr_api_specs && git pull
Questions?