harness

package
v0.3.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestHarness

type TestHarness struct {

	// attributes for the test harness
	Context     context.Context
	Server      *apiserver.Server
	Agent       *agent.Agent
	Client      *apiclient.ClientWithResponses
	Store       *store.Store
	TestDirPath string
	// contains filtered or unexported fields
}

func NewTestHarness

func NewTestHarness(testDirPath string, goRoutineErrorHandler func(error)) (*TestHarness, error)

NewTestHarness creates a new test harness and returns a new test harness The test harness can be used from testing code to interact with a set of agent/server/store instances. It provides the necessary elements to perform tests against the agent and server.

func (*TestHarness) AgentDownloadedCertificate

func (h *TestHarness) AgentDownloadedCertificate() bool

func (*TestHarness) Cleanup

func (h *TestHarness) Cleanup()

func (*TestHarness) GetMockK8sClient

func (h *TestHarness) GetMockK8sClient() *k8sclient.MockK8SClient

func (*TestHarness) RestartAgent

func (h *TestHarness) RestartAgent()

func (*TestHarness) StartAgent

func (h *TestHarness) StartAgent()

func (*TestHarness) StopAgent

func (h *TestHarness) StopAgent()

Directories

Path Synopsis
e2e
vm

Jump to

Keyboard shortcuts

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