util

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

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 FakeServiceBrokerServer added in v0.0.17

type FakeServiceBrokerServer struct {

	// For inspecting on what was sent on the wire.
	RequestObject interface{}
	Request       *http.Request
	// contains filtered or unexported fields
}

FakeServiceBrokerServer is a fake service broker server meant for testing that allows for customizing the response behavior. It does not support auth.

func (*FakeServiceBrokerServer) SetLastOperationState added in v0.0.17

func (f *FakeServiceBrokerServer) SetLastOperationState(state string)

SetLastOperationState sets the state to return for last_operation requests.

func (*FakeServiceBrokerServer) SetOperation added in v0.0.17

func (f *FakeServiceBrokerServer) SetOperation(operation string)

SetOperation sets the operation to return for asynchronous operations.

func (*FakeServiceBrokerServer) SetResponseStatus added in v0.0.17

func (f *FakeServiceBrokerServer) SetResponseStatus(status int)

SetResponseStatus sets the default response status of the broker to the given HTTP status code.

func (*FakeServiceBrokerServer) Start added in v0.0.17

func (f *FakeServiceBrokerServer) Start() string

Start starts the fake broker server listening on a random port, passing back the server's URL.

func (*FakeServiceBrokerServer) Stop added in v0.0.17

func (f *FakeServiceBrokerServer) Stop()

Stop shuts down the server.

Jump to

Keyboard shortcuts

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