url

package
v3.10.0-rc.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 15 Imported by: 58

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CURL

type CURL struct {
	Code int `json:"code"`
}

type Response

type Response struct {
	Test       int    `json:"test"`
	ReturnCode int    `json:"rc"`
	Error      string `json:"error"`

	CURL    CURL   `json:"curl"`
	Body    []byte `json:"body"`
	Headers string `json:"headers"`

	Response *http.Response
}

type Test

type Test struct {
	Name       string
	Req        *http.Request
	SkipVerify bool

	Wants []func(*http.Response) error
}

func Expect

func Expect(method, url string) *Test

func (*Test) HasStatusCode

func (ut *Test) HasStatusCode(codes ...int) *Test

func (*Test) RedirectsTo

func (ut *Test) RedirectsTo(url string, codes ...int) *Test

func (*Test) SkipTLSVerification

func (ut *Test) SkipTLSVerification() *Test

func (*Test) Test

func (ut *Test) Test(i int, res *Response) error

func (*Test) Through

func (ut *Test) Through(addr string) *Test

func (*Test) ToShell

func (ut *Test) ToShell(i int) string

type Tester

type Tester struct {
	// contains filtered or unexported fields
}

func NewTester

func NewTester(client kclientset.Interface, ns string) *Tester

func (*Tester) Close

func (ut *Tester) Close()

func (*Tester) Responses

func (ut *Tester) Responses(tests ...*Test) []*Response

func (*Tester) Within

func (ut *Tester) Within(t time.Duration, tests ...*Test)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL