testcases

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v0.3.0

func Contains(list []string, s string) bool

Contains represents func for checking if a string is in a list of strings

func GetQuarantineInitSpec

func GetQuarantineInitSpec() []tests.QuarantineInitTestCase

func GetQuarantineIsActiveStructs

func GetQuarantineIsActiveStructs() []tests.QuarantineTestCase

func GetQuarantinePrepareStructs

func GetQuarantinePrepareStructs() []tests.QuarantineTestCase

func GetQuarantineStartStructs

func GetQuarantineStartStructs() []tests.QuarantineTestCase

func GetQuarantineStopStructs

func GetQuarantineStopStructs() []tests.QuarantineTestCase

func GetQuarantineUpdateStructs

func GetQuarantineUpdateStructs() []tests.QuarantineTestCase

Types

type TestClientError added in v0.3.0

type TestClientError struct {
	Enabled bool
	Message string
}

type TestClientNamespace added in v0.3.0

type TestClientNamespace struct {
	Name        string
	Daemonsets  []TestClientResource
	Deployments []TestClientResource
	Pods        []*TestClientPod
}

type TestClientNode added in v0.3.0

type TestClientNode struct {
	Name  string
	Drain bool
	Taint bool
}

type TestClientPod added in v0.3.0

type TestClientPod struct {
	Resource TestClientResource
	// contains filtered or unexported fields
}

type TestClientQuarantine added in v0.3.0

type TestClientQuarantine struct {
	FakeClient  *mocks.Client
	Nodes       []TestClientNode
	MarkedNodes []TestClientNode
	Namespaces  []TestClientNamespace
}

type TestClientResource added in v0.3.0

type TestClientResource struct {
	Name          string
	Type          string
	Node          string
	Watch         bool
	Isolated      bool
	GracePeriod   bool
	Taint         bool
	Error         TestClientError
	ListSelector  []string
	FieldSelector []string
}

type TestClientSelectorStruct added in v0.3.0

type TestClientSelectorStruct struct {
	ListSelectors  map[string]TestClientSelectorValues
	FieldSelectors map[string]TestClientSelectorValues
}

type TestClientSelectorValues added in v0.3.0

type TestClientSelectorValues struct {
	Value string
	Pods  []corev1.Pod
}

type TestClientSelectors added in v0.3.0

type TestClientSelectors struct {
	ListSelectors  map[string][]string
	FieldSelectors map[string][]string
}

Jump to

Keyboard shortcuts

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