abacus-plan-tester
v1.1.5
Published
Plan tester
Downloads
6
Readme
abacus-plan-tester
Prerequisites:
- Node.js >= 8.10.0
- Yarn >= 1.3.2
# Clone Abacus
git clone https://github.com/cloudfoundry-incubator/cf-abacus.git
# Install dependencies
cd cf-abacus/lib/config/plan-tester
yarn install
# Test your plan
export TEST_PLAN=path_to_your_plan
yarn test
To submit usage to remote Abacus you have to:
# export remote URLs
export COLLECTOR=https://abacus-usage-collector.<domain>:443
export REPORTING=https://abacus-usage-reporting.<domain>:443
export AUTH_SERVER=https://uaa.<domain>:443
# provide credentials
export SECURED=true
export RESOURCE_ID=<resource_id (generated by broker)>
export CLIENT_ID=<resource client id>
export CLIENT_SECRET=<resource client secret>
# path to json file containing array of usage docs
export USAGE=<path to usage file>