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
.
To run the Logsearch-for-CloudFoundry Smoke tests, you will need:
- a running CF instance
- an environment variable
$CONFIG
which points to a.json
file 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
}
To execute the tests, run:
./bin/test
Internally the bin/test
script runs tests using ginkgo.