Documentation ¶
Index ¶
Constants ¶
View Source
const LastOperationResponseTestDescription = "test description for last operation"
LastOperationResponseTestDescription is returned as the description to last_operation requests.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeBrokerServer ¶
type FakeBrokerServer struct { // For inspecting on what was sent on the wire. RequestObject interface{} Request *http.Request // contains filtered or unexported fields }
FakeBrokerServer is a fake service broker server meant for testing that allows for customizing the response behavior. It does not support auth.
func (*FakeBrokerServer) SetLastOperationState ¶
func (f *FakeBrokerServer) SetLastOperationState(state string)
SetLastOperationState sets the state to return for last_operation requests.
func (*FakeBrokerServer) SetOperation ¶
func (f *FakeBrokerServer) SetOperation(operation string)
SetOperation sets the operation to return for asynchronous operations.
func (*FakeBrokerServer) SetResponseStatus ¶
func (f *FakeBrokerServer) SetResponseStatus(status int)
SetResponseStatus sets the default response status of the broker to the given HTTP status code.
func (*FakeBrokerServer) Start ¶
func (f *FakeBrokerServer) Start() string
Start starts the fake broker server listening on a random port, passing back the server's URL.
Click to show internal directories.
Click to hide internal directories.