Skip to content
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:oph5lohb@staging.voicerepublic.com/api
  email: api@voicerepublic.com
  token: sometoken
live:
  endpoint: https://voicerepublic.com/api
  email: api@voicerepublic.com
  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?

Clone this wiki locally