helper

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceInstance added in v0.11.0

type ServiceInstance struct {
	GUID                string
	ServicePlanGUID     string
	ServiceOfferingGUID string
}

type TestHelper

type TestHelper struct {
	Dir          string
	OriginalDir  string
	Port         int
	DatabaseFile string
	// contains filtered or unexported fields
}

func New

func New(csb string) *TestHelper

func (*TestHelper) BuildBrokerpak

func (h *TestHelper) BuildBrokerpak(paths ...string)

func (*TestHelper) BuildBrokerpakCommand

func (h *TestHelper) BuildBrokerpakCommand(paths ...string) *exec.Cmd

func (*TestHelper) Client

func (h *TestHelper) Client() *client.Client

func (*TestHelper) CreateBinding added in v0.11.0

func (h *TestHelper) CreateBinding(s ServiceInstance, params ...any) (string, string)

func (*TestHelper) DBConn

func (h *TestHelper) DBConn() *gorm.DB

func (*TestHelper) DeleteBinding added in v0.11.0

func (h *TestHelper) DeleteBinding(s ServiceInstance, serviceBindingGUID string)

func (*TestHelper) Deprovision added in v0.11.0

func (h *TestHelper) Deprovision(s ServiceInstance)

func (TestHelper) LastOperation added in v0.11.0

func (h TestHelper) LastOperation(serviceInstanceGUID string, additionalOffset ...int) (result domain.LastOperation)

func (*TestHelper) LastOperationFinalState added in v0.11.0

func (h *TestHelper) LastOperationFinalState(serviceInstanceGUID string, additionalOffset ...int) domain.LastOperationState

func (*TestHelper) Provision added in v0.11.0

func (h *TestHelper) Provision(serviceOfferingGUID, servicePlanGUID string, params ...any) ServiceInstance

func (*TestHelper) StartBroker

func (h *TestHelper) StartBroker(env ...string) *gexec.Session

func (*TestHelper) StartBrokerCommand

func (h *TestHelper) StartBrokerCommand(env ...string) *exec.Cmd

func (*TestHelper) StartBrokerSession

func (h *TestHelper) StartBrokerSession(env ...string) *gexec.Session

func (*TestHelper) UpdateService added in v0.11.0

func (h *TestHelper) UpdateService(s ServiceInstance, extras ...any)

func (*TestHelper) UpgradeService added in v0.11.0

func (h *TestHelper) UpgradeService(s ServiceInstance, previousValues domain.PreviousValues, newMaintenanceInfo domain.MaintenanceInfo, params ...any)

Jump to

Keyboard shortcuts

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