runner

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceCreator

type NamespaceCreator interface {
	Create(ctx context.Context, namespace *v1.Namespace, opts metav1.CreateOptions) (*v1.Namespace, error)
}

NamespaceCreator has methods required to create k8s ns.

type TestRunner

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

TestRunner executes registered tests

func NewTestRunner

func NewTestRunner(nsCreator NamespaceCreator, tests map[string]UpgradeTest) (*TestRunner, error)

NewTestRunner is a constructor for TestRunner

func (*TestRunner) ExecuteTests

func (r *TestRunner) ExecuteTests(stopCh <-chan struct{}) error

ExecuteTests executes all registered tests

func (*TestRunner) PrepareData

func (r *TestRunner) PrepareData(stopCh <-chan struct{}) error

PrepareData prepares data for all registered upgrade tests

type UpgradeTest

type UpgradeTest interface {
	CreateResources(stop <-chan struct{}, namespace string) error
	TestResources(stop <-chan struct{}, namespace string) error
}

UpgradeTest is an interface to represent single upgrade test

Jump to

Keyboard shortcuts

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