Documentation ¶
Overview ¶
MITS are the integration tests for running Minibroker with Cloud Foundry.
Index ¶
- func SimpleAppAndService(testSetup *workflowhelpers.ReproducibleTestSuiteSetup, ...)
- type Service
- func (service *Service) Bind(appName string, timeout time.Duration) error
- func (service *Service) Create(testConfig config.TestConfig, params map[string]interface{}, ...) error
- func (service *Service) Credentials(timeout time.Duration) (map[string]interface{}, error)
- func (service *Service) Destroy(timeout time.Duration)
- func (service *Service) Unbind(appName string, timeout time.Duration) error
- func (service *Service) WaitForCreate(timeout time.Duration) error
- func (service *Service) WaitForDelete(timeout time.Duration) error
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 ¶
NewService instantiates a new Service.
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 ¶
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 ¶
Destroy destroys all the created resources linked to the service instance.
func (*Service) WaitForCreate ¶
WaitForCreate waits for the creation of the service instance.