项目作者: Infra-Red

项目描述 :
CF PostgreSQL Service Broker的Smoke测试
高级语言: Go
项目地址: git://github.com/Infra-Red/cf-postgresql-smoke-tests.git
创建时间: 2018-03-15T10:40:52Z
项目社区:https://github.com/Infra-Red/cf-postgresql-smoke-tests

开源协议:Apache License 2.0

下载


PostgreSQL Service Broker 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
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:

  1. {
  2. "service_name": "a.postgresql",
  3. "plan_names": ["standard"],
  4. "retry": {
  5. "max_attempts": 10,
  6. "backoff": "linear",
  7. "baseline_interval_milliseconds": 1000
  8. },
  9. "apps_domain": "bosh-lite.com",
  10. "system_domain": "bosh-lite.com",
  11. "api": "api.bosh-lite.com",
  12. "admin_user": "admin",
  13. "admin_password": "admin",
  14. "space_name": "postgres-test-space",
  15. "org_name": "postgres-test-org",
  16. "skip_ssl_validation": true,
  17. "create_permissive_security_group": false
  18. }

Test Execution

To execute the tests, run:

  1. ./bin/test

Internally the bin/test script runs tests using ginkgo.