testhelpers

package
v0.0.0-...-af0835f Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AlwaysReady        = func() bool { return true }
	NoResyncPeriodFunc = func() time.Duration { return 0 }
)
View Source
var FixedTime = time.Date(2018, 1, 1, 0, 0, 0, 0, time.UTC)
View Source
var PodSpec = corev1.PodSpec{
	Containers: []corev1.Container{
		{
			Ports: []corev1.ContainerPort{},
		},
	},
}

Functions

func CheckAction

func CheckAction(expected ExtendedAction, actual core.Action, t *testing.T)

CheckAction verifies that expected and actual actions are equal and both have same attached resources

Types

type ExtendedAction

type ExtendedAction struct {
	core.Action
	Assertions func(runtime.Object)
}

Jump to

Keyboard shortcuts

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