Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServiceKey ¶
func GetServiceKey() string
Types ¶
type Bundle ¶
Bundle struct
func (*Bundle) IsPayloadJSON ¶
IsJSON checks given string is valid json or not
type HttpMockAPIM ¶
type HttpMockAPIM struct { Method string // is set during test execution URL string // is set before test execution Header map[string][]string // is set before test execution ResponseBody string // is set before test execution Options piperhttp.ClientOptions // is set during test StatusCode int // is set during test }
func (*HttpMockAPIM) SendRequest ¶
func (*HttpMockAPIM) SetOptions ¶
func (c *HttpMockAPIM) SetOptions(options piperhttp.ClientOptions)
type SenderMock ¶
type SenderMock interface { SendRequest(method, url string, body io.Reader, header http.Header, cookies []*http.Cookie) (*http.Response, error) SetOptions(options piperhttp.ClientOptions) }
Sender provides an interface to the piper http client for uid/pwd and token authenticated requests
type ServciceKeyMock ¶
type ServciceKeyMock interface {
GetServiceKey() string
}
Sender provides an interface to the piper http client for uid/pwd and token authenticated requests
Click to show internal directories.
Click to hide internal directories.