testing

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerTester

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

func New

func New(credentials brokerapi.BrokerCredentials, brokerAPI http.Handler) BrokerTester

func (BrokerTester) Bind

func (bt BrokerTester) Bind(instanceID, bindingID string, body RequestBody) *httptest.ResponseRecorder

func (BrokerTester) Delete

func (bt BrokerTester) Delete(path string, body io.Reader, params url.Values) *httptest.ResponseRecorder

func (BrokerTester) Deprovision

func (bt BrokerTester) Deprovision(instanceID, serviceID, planID string, async bool) *httptest.ResponseRecorder

func (BrokerTester) Get

func (bt BrokerTester) Get(path string, params url.Values) *httptest.ResponseRecorder

func (BrokerTester) LastOperation

func (bt BrokerTester) LastOperation(instanceID, serviceID, planID, operation string) *httptest.ResponseRecorder

func (BrokerTester) Patch

func (bt BrokerTester) Patch(path string, body io.Reader, params url.Values) *httptest.ResponseRecorder

func (BrokerTester) Provision

func (bt BrokerTester) Provision(instanceID string, body RequestBody, async bool) *httptest.ResponseRecorder

func (BrokerTester) Put

func (bt BrokerTester) Put(path string, body io.Reader, params url.Values) *httptest.ResponseRecorder

func (BrokerTester) Services

func (bt BrokerTester) Services() *httptest.ResponseRecorder

func (BrokerTester) Unbind

func (bt BrokerTester) Unbind(instanceID, bindingID string, body RequestBody) *httptest.ResponseRecorder

func (BrokerTester) Update

func (bt BrokerTester) Update(instanceID string, body RequestBody, async bool) *httptest.ResponseRecorder

type RequestBody

type RequestBody struct {
	ServiceID        string          `json:"service_id,omitempty"`
	PlanID           string          `json:"plan_id,omitempty"`
	OrganizationGUID string          `json:"organization_guid,omitempty"`
	SpaceGUID        string          `json:"space_guid,omitempty"`
	AppGUID          string          `json:"app_guid,omitempty"`
	PreviousValues   *RequestBody    `json:"previous_values,omitempty"`
	RawParameters    json.RawMessage `json:"parameters,omitempty"`
}

Jump to

Keyboard shortcuts

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