Documentation
¶
Index ¶
- type CURL
- type Response
- type Test
- func (ut *Test) HasStatusCode(codes ...int) *Test
- func (ut *Test) RedirectsTo(url string, codes ...int) *Test
- func (ut *Test) SkipTLSVerification() *Test
- func (ut *Test) Test(i int, res *Response) error
- func (ut *Test) Through(host string) *Test
- func (ut *Test) ToShell(i int) string
- func (ut *Test) WithBodyToUpload(filename, podname string, oc *exutil.CLI) *Test
- func (ut *Test) WithHeader(hdr, value string) *Test
- func (ut *Test) WithToken(token string) *Test
- type Tester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Test ¶
type Test struct {
Name string
Req *http.Request
ProxyHost string
SkipVerify bool
// we capture this here vs. the httpRequest
// to facilitate passing to curl
PostBodyFile string
PodName string
Oc *exutil.CLI
Wants []func(*http.Response) error
}
func (*Test) HasStatusCode ¶
func (*Test) SkipTLSVerification ¶
func (*Test) Through ¶
Through configures the test to send requests through the given host. The host may be specified as a host name, IPv4 address, or bracketed IPv6 address. Use this method when the request specifies some host A that is different from the actual host B to which the connection must be made. For example, host A may belong to a route, and host B may be an HAProxy pod that serves the route. This method is useful when DNS is not configured to resolve host A's host name.
func (*Test) WithBodyToUpload ¶
func (*Test) WithHeader ¶
type Tester ¶
type Tester struct {
// contains filtered or unexported fields
}
func (*Tester) WithErrorPassthrough ¶
Click to show internal directories.
Click to hide internal directories.