Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct {
Server *httptest.Server
// EnqueueJobResponse and GetJobResponse override the default job responses.
EnqueueJobResponse *wire.EnqueueJobResponse
EnqueueJobError *wire.EnqueueJobErrorResponse
GetJobResponse *wire.GetJobResponse
RunCompleteStatus int
RouteLogging wire.RouteLogging
JobProgressStatus int
ConnectorCommandResponses map[string]json.RawMessage
ConnectorJobResponses map[string]json.RawMessage
// contains filtered or unexported fields
}
Mock records SDK wire requests and returns narrow configured/static responses. It implements no scheduler, persistence, admission authority or host lifecycle.
func NewWithModels ¶ added in v0.8.1
func (*Mock) RequestsByPath ¶
RequestsByPath returns requests matching the path prefix.
func (*Mock) SetConnectorCommandResponse ¶ added in v0.6.0
func (m *Mock) SetConnectorCommandResponse(name string, output json.RawMessage)
Click to show internal directories.
Click to hide internal directories.