Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.19 KB

README.md

File metadata and controls

31 lines (24 loc) · 1.19 KB

Acceptance Test Tools and Scripts

Acceptance tests are run as cf push'ed applications that verify connectivity in a real Cloud Foundry environment.

The main pattern is:

  1. cf create-service the service instance to test
  2. cf bind-service a writer test app to the provisioned service
  3. cf bind-service a reader test app to the provisioned service
  4. Check the binding contains CredHub references and not credentials
  5. Use the writer test app to write some data
  6. Use the reader test app to read back the data and check it is the same
  7. cf unbind-service for both apps
  8. cf delete-service the tested instance

Running the tests

Pre-requisite software

Environment variables

  • GOOGLE_CREDENTIALS
  • GOOGLE_PROJECT

Environment

  • A Cloud Foundry instance logged in and targeted
  • The Cloud Service Broker and this brokerpak deployed by running make push-broker or equivalent

Run tests

  • Move in the test folder e.g acceptance-tests
  • Run tests from IDE or run command go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter=<test-label>