suite

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(test Test)

Types

type Options

type Options struct {
	Client    client.Client
	Clientset *kubernetes.Clientset
}

type Suite

type Suite struct {
	Opt Options
	// contains filtered or unexported fields
}

func New

func New(opt Options) *Suite

func (*Suite) Capture

Capture is modified from gateway-api's CapturedRequest, under Apache License 2.0.

func (*Suite) Delete

func (suite *Suite) Delete(path string, header http.Header) (*http.Response, error)

func (*Suite) Get

func (suite *Suite) Get(path string, header http.Header) (*http.Response, error)

func (*Suite) Head

func (suite *Suite) Head(path string, header http.Header) (*http.Response, error)

func (*Suite) K8sClient

func (suite *Suite) K8sClient() client.Client

func (*Suite) Patch

func (suite *Suite) Patch(path string, header http.Header, body io.Reader) (*http.Response, error)

func (*Suite) Post

func (suite *Suite) Post(path string, header http.Header, body io.Reader) (*http.Response, error)

func (*Suite) Put

func (suite *Suite) Put(path string, header http.Header, body io.Reader) (*http.Response, error)

func (*Suite) Run

func (suite *Suite) Run(t *testing.T)

type Test

type Test struct {
	Name      string
	Manifests []string
	Run       func(*testing.T, *Suite)
}

Jump to

Keyboard shortcuts

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