mits

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

MITS are the integration tests for running Minibroker with Cloud Foundry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SimpleAppAndService

func SimpleAppAndService(
	testSetup *workflowhelpers.ReproducibleTestSuiteSetup,
	testConfig config.TestConfig,
	timeouts config.Timeouts,
	serviceBrokerName string,
	appPath string,
	params map[string]interface{},
)

SimpleAppAndService asserts that a service can be bound to an app. Apps are expected to perform their own assertion on the service. Apps MUST only successfully start after it finished all assertions.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service represents a service instance to ease its manipulation from tests.

func NewService

func NewService(
	name string,
	brokerName string,
	stdout io.Writer,
	stderr io.Writer,
) *Service

NewService instantiates a new Service.

func (*Service) Bind

func (service *Service) Bind(appName string, timeout time.Duration) error

Bind binds the service instance to an app.

func (*Service) Create

func (service *Service) Create(testConfig config.TestConfig, params map[string]interface{}, timeout time.Duration) error

Create creates the service instance on CF.

func (*Service) Credentials

func (service *Service) Credentials(timeout time.Duration) (map[string]interface{}, error)

Credentials creates a service-key in order to extract credentials for the service instance. It's useful for calculating the values of the security-group.

func (*Service) Destroy

func (service *Service) Destroy(timeout time.Duration)

Destroy destroys all the created resources linked to the service instance.

func (*Service) Unbind

func (service *Service) Unbind(appName string, timeout time.Duration) error

Unbind unbinds the service instance from an app.

func (*Service) WaitForCreate

func (service *Service) WaitForCreate(timeout time.Duration) error

WaitForCreate waits for the creation of the service instance.

func (*Service) WaitForDelete

func (service *Service) WaitForDelete(timeout time.Duration) error

WaitForDelete waits for the deletion of the service instance.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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