e2e

package
v0.0.0-...-27c6b4c Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildTesterOptions

type BuildTesterOptions struct {
	FocusRegex            string
	SkipRegex             string
	StorageTestDriverPath string
	Parallelism           int
}

BuildTesterOptions is the options struct that should be passed to testBuilder::BuildTester

type GinkgoTester

type GinkgoTester struct {
	// Required
	Kubeconfig string
	Provider   string
	KubeRoot   string

	GinkgoParallel int

	// Other options defined in hack/ginkgo.sh
	KubeMasterURL         string
	FlakeAttempts         int
	GCEProject            string
	GCEZone               string
	GCERegion             string
	GCEMultizone          bool
	GKECluster            string
	KubeMaster            string
	ClusterID             string
	CloudConfig           string
	NodeInstanceGroup     string
	KubeGCEInstancePrefix string
	Network               string
	NodeTag               string
	MasterTag             string
	ClusterMonitoringMode string
	KubeContainerRuntime  string
	MasterOSDistribution  string
	NodeOSDistribution    string
	NumNodes              int
	ReportDir             string
	ReportPrefix          string
	StorageTestDriver     string

	// Other ginkgo options
	FocusRegex      string
	SkipRegex       string
	Seed            int
	SystemdServices []string
}

GinkgoTester runs e2e tests directly (by calling ginkgo)

func NewGinkgoTester

func NewGinkgoTester(o *BuildTesterOptions) *GinkgoTester

NewGinkgoTester returns a new instance of GinkgoTester

func (*GinkgoTester) Run

func (t *GinkgoTester) Run(control *process.Control, extraArgs []string) error

Run executes the test (calling ginkgo)

type TestBuilder

type TestBuilder interface {
	// BuildTester builds the appropriate Tester object for running tests
	BuildTester(options *BuildTesterOptions) (Tester, error)
}

TestBuilder is implemented by deployers that want to customize how the e2e tests are run

type Tester

type Tester interface {
	Run(control *process.Control, args []string) error
}

Tester is implemented by runners that run our tests

Jump to

Keyboard shortcuts

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