https://github.com/infra-red/cf-postgresql-smoke-tests
Smoke Tests for the CF PostgreSQL Service Broker
https://github.com/infra-red/cf-postgresql-smoke-tests
cf cloud-foundry postgresql servicebroker smoke-tests
Last synced: about 2 months ago
JSON representation
Smoke Tests for the CF PostgreSQL Service Broker
- Host: GitHub
- URL: https://github.com/infra-red/cf-postgresql-smoke-tests
- Owner: Infra-Red
- License: apache-2.0
- Created: 2018-03-15T10:40:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T15:33:10.000Z (over 8 years ago)
- Last Synced: 2025-10-23T09:03:58.563Z (8 months ago)
- Topics: cf, cloud-foundry, postgresql, servicebroker, smoke-tests
- Language: Go
- Homepage:
- Size: 8.79 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
PostgreSQL Service Broker Smoke Tests
======================================
## Running the tests
### Set up your `go` environment
Set up your golang development environment, [per golang.org](http://golang.org/doc/install).
See [Go CLI](https://github.com/cloudfoundry/cli) for instructions on
installing the go version of `cf`.
Make sure that [curl](http://curl.haxx.se/) 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
`cf-postgresql-smoke-tests/vendor`.
### Test Setup
To run the PostgreSQL Service Broker Smoke Tests, you will need:
- a running CF instance
- an environment variable `$CONFIG_PATH` which points to a `.json` file that
contains the CF settings
Below is an example `integration_config.json`:
```json
{
"service_name": "a.postgresql",
"plan_names": ["standard"],
"retry": {
"max_attempts": 10,
"backoff": "linear",
"baseline_interval_milliseconds": 1000
},
"apps_domain": "bosh-lite.com",
"system_domain": "bosh-lite.com",
"api": "api.bosh-lite.com",
"admin_user": "admin",
"admin_password": "admin",
"space_name": "postgres-test-space",
"org_name": "postgres-test-org",
"skip_ssl_validation": true,
"create_permissive_security_group": false
}
```
### Test Execution
To execute the tests, run:
```bash
./bin/test
```
Internally the `bin/test` script runs tests using [ginkgo](https://github.com/onsi/ginkgo).