e2e

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const HTTPS_PORT = 30443
View Source
const HTTP_PORT = 30080

Variables

View Source
var TickDuration = 2 * time.Second
View Source
var WaitDuration = 60 * time.Second

Functions

This section is empty.

Types

type Client

type Client struct {
	NoRedirect bool
	Path       string
	Host       string
	Port       int
	Req        *http.Request
	Transport  *http.Transport
}

func NewHTTPClient

func NewHTTPClient(host string, port ...int) (*Client, error)

func NewHTTPSClient

func NewHTTPSClient(host string, port ...int) (*Client, error)

func (*Client) Do

func (c *Client) Do() (res *http.Response, close func() error, err error)

type TearDownFunc

type TearDownFunc func() error

type Test

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

func NewTest

func NewTest() (test Test, err error)

func (*Test) AddTearDown

func (t *Test) AddTearDown(teardown TearDownFunc)

func (*Test) DeployYaml

func (t *Test) DeployYaml(path string, namespace string) error

func (*Test) DeployYamlTemplate

func (t *Test) DeployYamlTemplate(path string, namespace string, data interface{}) error

func (*Test) GetK8sVersion

func (t *Test) GetK8sVersion() (major, minor int, err error)

func (*Test) GetNS

func (t *Test) GetNS() string

func (*Test) TearDown

func (t *Test) TearDown() error

Jump to

Keyboard shortcuts

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