plugintesting

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpdateCassettes = os.Getenv("WAYPOINT_UPDATE_CASSETTES") == "true"

Functions

This section is empty.

Types

type TestTools

type TestTools struct {
	HttpClient *http.Client
	// contains filtered or unexported fields
}

func Init

func Init(t *testing.T) *TestTools

Init new TestTools for a test TestTools.HttpClient should be used for all requests during test

func (*TestTools) CleanUp

func (tt *TestTools) CleanUp()

CleanUp cleans resources created with TestTools

func (*TestTools) ContainerNamespace

func (tt *TestTools) ContainerNamespace() *container.Namespace

ContainerNamespace returns a new container namespace for the current test Add the namespace to the list of resource to be cleaned up after test

func (*TestTools) UploadTestImage

func (tt *TestTools) UploadTestImage(namespace *container.Namespace) (string, error)

UploadTestImage upload a test image to target namespace Skipped when not recording cassettes

Jump to

Keyboard shortcuts

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