Documentation
¶
Index ¶
- Constants
- type Wiremock
- func (w *Wiremock) Close() error
- func (w *Wiremock) GetRequestsCount(method, path string) (int, error)
- func (w *Wiremock) Open() error
- func (w *Wiremock) Ready() error
- func (w *Wiremock) Reset() error
- func (w *Wiremock) SetResponse(method string, requestPath string, responseCode int, responseBody []byte) error
- func (w *Wiremock) SetResponseFromFile(method string, requestPath string, responseCode int, fileName string) error
Constants ¶
View Source
const Name = "http/server"
Name sets the reference to be used in the tomato.yml file
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wiremock ¶
type Wiremock struct {
// contains filtered or unexported fields
}
Wiremock contains the configuration for the wiremock stubbing resource
func New ¶
New connects and creates the wiremock resource create the stub via the API you can post the request/response JSON to http://<host>:<port>/__admin/mappings
func (*Wiremock) GetRequestsCount ¶
GetRequestsCount get requests count on the mock endpoint
func (*Wiremock) Reset ¶
Reset removes all mappings and responses to put wiremock back into its base state
Click to show internal directories.
Click to hide internal directories.