Documentation
¶
Overview ¶
Package helper implements some test helpers for the integration tests
Index ¶
- type ServiceInstance
- type TestHelper
- func (h *TestHelper) BuildBrokerpak(paths ...string)
- func (h *TestHelper) BuildBrokerpakCommand(paths ...string) *exec.Cmd
- func (h *TestHelper) Client() *client.Client
- func (h *TestHelper) CreateBinding(s ServiceInstance, params ...any) (string, string)
- func (h *TestHelper) DBConn() *gorm.DB
- func (h *TestHelper) DeleteBinding(s ServiceInstance, serviceBindingGUID string)
- func (h *TestHelper) Deprovision(s ServiceInstance)
- func (h TestHelper) LastOperation(serviceInstanceGUID string, additionalOffset ...int) (result domain.LastOperation)
- func (h *TestHelper) LastOperationFinalState(serviceInstanceGUID string, additionalOffset ...int) domain.LastOperationState
- func (h *TestHelper) Provision(serviceOfferingGUID, servicePlanGUID string, params ...any) ServiceInstance
- func (h *TestHelper) StartBroker(env ...string) *gexec.Session
- func (h *TestHelper) StartBrokerCommand(env ...string) *exec.Cmd
- func (h *TestHelper) StartBrokerSession(env ...string) *gexec.Session
- func (h *TestHelper) UpdateService(s ServiceInstance, extras ...any)
- func (h *TestHelper) UpgradeService(s ServiceInstance, previousValues domain.PreviousValues, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceInstance ¶ added in v0.11.0
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)
Click to show internal directories.
Click to hide internal directories.