client

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback func() error

Callback function type is invoked post-setup but pre-test

type K8STestSetup

type K8STestSetup struct {
	WaitForPods         []string
	PortForwardServices map[string]int

	// ReadyCallback for custom setup after services are ready and before pre-test
	ReadyCallback Callback
	// contains filtered or unexported fields
}

K8STestSetup is instantiated given the pods and services we must wait for

func (*K8STestSetup) GetServiceLocalPort

func (s *K8STestSetup) GetServiceLocalPort(serviceName string) int

func (*K8STestSetup) TestMain

func (s *K8STestSetup) TestMain(m *testing.M)

TestMain will execute the provided setup command, wait for configured pods and services to be ready, and then forwards service logs to test output. On completion, signals to the it_sidecar to teardown the test namespace

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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