integration_test

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoSeparateWorkingDir = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvancedTestEnvironmentInfo added in v0.22.2

type AdvancedTestEnvironmentInfo struct {
	ProcessExecutor process.Executor
	*ctrl_testutil.TestProcessExecutableRunner
}

AdvancedTestEnvironmentInfo provides information about the test environment created via StartAdvancedTestEnvironment().

func StartAdvancedTestEnvironment

func StartAdvancedTestEnvironment(
	ctx context.Context,
	inclCtrl IncludedController,
	instanceTag string,
	testTempDir string,
	log logr.Logger,
) (
	*ctrl_testutil.ApiServerInfo,
	*AdvancedTestEnvironmentInfo,
	error,
)

Starts an test environment for advanced tests that use real process executor and true container orchestrator (Docker or Podman). Note that the Executable controller (if included in the mix) only supports process execution (no IDE execution).

type IncludedController

type IncludedController uint32
const (
	ExecutableController IncludedController = 1 << iota
	ExecutableReplicaSetController
	NetworkController
	ContainerController
	ContainerExecController
	VolumeController
	ServiceController
	ContainerNetworkTunnelProxyController
	NoControllers  IncludedController = 0
	AllControllers IncludedController = ^NoControllers
)

type TestEnvironmentInfo

TestEnvironmentInfo provides information about the test environment created via StartTestEnvironment().

func StartTestEnvironment

func StartTestEnvironment(
	ctx context.Context,
	inclCtrl IncludedController,
	instanceTag string,
	testTempDir string,
	log logr.Logger,
) (
	*ctrl_testutil.ApiServerInfo,
	*TestEnvironmentInfo,
	error,
)

Starts the DCP API server (separate process) and standard controllers (in-proc).

Jump to

Keyboard shortcuts

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