Logsearch-for-CloudFoundry Smoke Tests
April 25, 2017 ยท View on GitHub
Running the tests
Set up your go environment
Set up your golang development environment, per golang.org.
See Go CLI for instructions on
installing the go version of cf.
Make sure that curl is installed on your system.
Make sure that the go version of cf is accessible in your $PATH.
All go dependencies required by the smoke tests are vendored in
logsearch-for-cloufoundry-smoke-tests/vendor.
Test Setup
To run the Logsearch-for-CloudFoundry Smoke tests, you will need:
- a running CF instance
- an environment variable
$CONFIGwhich points to a.jsonfile that contains the CF settings
Below is an example integration_config.json:
{
"api": "api.example.com",
"apps_domain": "example.com",
"system_domain": "example.com",
"admin_user": "admin",
"admin_password": "admin",
"elasticsearch_app_index": "logs-app-{{.Org}}-{{.Space}}-{{.Time.Format \"2006.01.02\"}}",
"skip_ssl_validation": true
}
Test Execution
To execute the tests, run:
./bin/test
Internally the bin/test script runs tests using ginkgo.