github.com/pivotal-cf-experimental/cf-mysql-quota-enforcer/clock

Quota enforcer for cf-mysql-release


License
Apache-2.0
Install
go get github.com/pivotal-cf-experimental/cf-mysql-quota-enforcer/clock

Documentation

cf-mysql-quota-enforcer

Quota enforcer for cf-mysql-release

Usage

Configuration

The quota enforcer executable requires either a config file or a config string, encoded in json. service-config is used to load the config.

Examples:

  • $ cf-mysql-quota-enforcer -configPath=/path/to/config.json
  • $ cf-mysql-quota-enforcer -config={"Host": "127.0.0.1", "Port": 3306, "User": "root", "Password": "password", "DBName": "development"}

An example configuration file is provided in config-example.json. Copy this to config.json and edit as necessary; config.json is ignored by git.

Testing

Unit tests can be run by executing

./bin/test-unit

Integration tests can be run by executing

./bin/test-integration

Configuration for the integration tests is managed by environment variables; see ./bin/test-integration for further details.