unit

package
v0.0.0-...-b80afe7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package unit_test provides end-to-end testing of the service broker.

Testing uses the native go testing framework. When any test is run a good configuration is used to start the service broker (see TestMain for default parameters). Tests are run end-to-end using the local service broker API.

The service broker has no dependencies against a live Kubernetes cluster when tested. We instead use a fake client layer, populate with fixtures and then validate against this.

Tests should only verify one thing and should aim to fail fast. Tests are orgnaized into domain specific files as follows:

api_test - Global API related functionality e.g. security and content type

processing.

Directories

Path Synopsis
Package fixtures provides access to consistent data structures for testing against.
Package fixtures provides access to consistent data structures for testing against.
Package util provides common test utility functions.
Package util provides common test utility functions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL