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(addr 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 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) WithBodyToUpload ¶ added in v3.11.0
func (*Test) WithHeader ¶ added in v3.11.0
type Tester ¶
type Tester struct {
// contains filtered or unexported fields
}
func (*Tester) WithErrorPassthrough ¶ added in v3.11.0
Click to show internal directories.
Click to hide internal directories.