peterellisjones / logsearch-smoke-tests

Smoke tests for the Logsearch-for-Cloudfoundry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logsearch-for-CloudFoundry Smoke Tests

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 $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
}

Test Execution

To execute the tests, run:

./bin/test

Internally the bin/test script runs tests using ginkgo.

About

Smoke tests for the Logsearch-for-Cloudfoundry

License:Apache License 2.0


Languages

Language:Go 92.5%Language:Shell 7.5%