framework

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFile

func LoadFile(path string, embedded reader, v interface{}) error

func NewEdgeSyncerFixture

func NewEdgeSyncerFixture(t *testing.T, server framework.RunningServer, path logicalcluster.Path) *edgeSyncerFixture

func RunKcpEdgeCliPlugin added in v0.2.0

func RunKcpEdgeCliPlugin(t *testing.T, kubeconfigPath string, subcommand []string) []byte

RunKcpEdgeCliPlugin runs the kcp workspace plugin with the provided subcommand and returns the combined stderr and stdout output.

Types

type StartedEdgeSyncerFixture

type StartedEdgeSyncerFixture struct {
	// contains filtered or unexported fields
}

StartedEdgeSyncerFixture contains the configuration used to start a syncer and interact with its downstream cluster.

func (*StartedEdgeSyncerFixture) DeleteRootComputeAPIBinding

func (sf *StartedEdgeSyncerFixture) DeleteRootComputeAPIBinding(t *testing.T)

func (StartedEdgeSyncerFixture) RunSyncer

func (sf StartedEdgeSyncerFixture) RunSyncer(t *testing.T) *StartedEdgeSyncerFixture

RunSyncer runs a new Syncer against the upstream kcp workspaces Whether the syncer runs in-process or deployed on a pcluster will depend whether --pcluster-kubeconfig and --syncer-image are supplied to the test invocation.

type SyncerOption

type SyncerOption func(t *testing.T, fs *edgeSyncerFixture)

Jump to

Keyboard shortcuts

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