e2e

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NginxHTMLPath = "/usr/share/nginx/html"
	NginxPort     = 80
	NginxCommand  = "nginx -g daemon off"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	Kn *knuu.Knuu
}

func (*Executor) NewInstance

func (e *Executor) NewInstance(ctx context.Context, name string) (*instance.Instance, error)

type Suite

type Suite struct {
	suite.Suite
	Knuu     *knuu.Knuu
	Executor Executor
	// contains filtered or unexported fields
}

func (*Suite) CreateNginxInstance

func (s *Suite) CreateNginxInstance(ctx context.Context, name string) *instance.Instance

func (*Suite) CreateNginxInstanceWithVolume

func (s *Suite) CreateNginxInstanceWithVolume(ctx context.Context, name string) *instance.Instance

func (*Suite) RetryOperation

func (s *Suite) RetryOperation(operation func() error, maxRetries int) error

func (*Suite) SetupTest

func (s *Suite) SetupTest()

SetupTest is a test setup function that is called before each test is run.

func (*Suite) TearDownTest

func (s *Suite) TearDownTest()

TearDownTest is a test teardown function that is called after each test is run.

Jump to

Keyboard shortcuts

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