dsl

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterVMExist

func AfterVMExist(controller ctlkubevirtv1.VirtualMachineController, namespace, name string,
	callback func(vm *kubevirtv1.VirtualMachine) bool)

func AfterVMIExist

func AfterVMIExist(controller ctlkubevirtv1.VirtualMachineController, namespace, name string,
	vmiController ctlkubevirtv1.VirtualMachineInstanceController,
	callback func(vmi *kubevirtv1.VirtualMachineInstance) bool)

func AfterVMIRestarted

func AfterVMIRestarted(controller ctlkubevirtv1.VirtualMachineController, namespace, name string,
	vmiController ctlkubevirtv1.VirtualMachineInstanceController, vmiUID string,
	callback func(vmi *kubevirtv1.VirtualMachineInstance) bool)

func AfterVMIRunning

func AfterVMIRunning(controller ctlkubevirtv1.VirtualMachineController, namespace, name string,
	vmiController ctlkubevirtv1.VirtualMachineInstanceController,
	callback func(vmi *kubevirtv1.VirtualMachineInstance) bool)

func AfterVMNotReady

func AfterVMNotReady(controller ctlkubevirtv1.VirtualMachineController, namespace, name string, callback func(vm *kubevirtv1.VirtualMachine) bool)

func AfterVMReady

func AfterVMReady(controller ctlkubevirtv1.VirtualMachineController, namespace, name string,
	callback func(vm *kubevirtv1.VirtualMachine) bool)

func AfterVMRunning

func AfterVMRunning(controller ctlkubevirtv1.VirtualMachineController, namespace, name string,
	callback func(vm *kubevirtv1.VirtualMachine) bool)

func CheckRespCodeIs

func CheckRespCodeIs(expectedRespCode int, action string, err error, respCode int, respBody []byte) bool

func Cleanup

func Cleanup(body interface{}) bool

Cleanup executes the target cleanup execution if "KEEP_TESTING_RESOURCE" isn't "true".

func HasNoneRunningVMI

func HasNoneRunningVMI(controller ctlkubevirtv1.VirtualMachineController, namespace, name string,
	vmiController ctlkubevirtv1.VirtualMachineInstanceController)

func HasNoneVMI

func HasNoneVMI(controller ctlkubevirtv1.VirtualMachineController, namespace, name string,
	vmiController ctlkubevirtv1.VirtualMachineInstanceController)

func MustChanged

func MustChanged(currentValue, newValue, oldValue interface{})

func MustEqual

func MustEqual(actual, expected interface{})

func MustFinallyBeTrue

func MustFinallyBeTrue(actual func() bool, intervals ...interface{}) bool

func MustNotEqual

func MustNotEqual(actual, unExpected interface{})

func MustNotError

func MustNotError(err error) bool

func MustPVCDeleted added in v0.3.0

func MustPVCDeleted(controller v1.PersistentVolumeClaimController, namespace, name string)

func MustRespCodeIn

func MustRespCodeIn(action string, err error, respCode int, respBody []byte, expectedRespCodes ...int)

func MustRespCodeIs

func MustRespCodeIs(expectedRespCode int, action string, err error, respCode int, respBody []byte)

func MustVMDeleted

func MustVMDeleted(controller ctlkubevirtv1.VirtualMachineController, namespace, name string)

func MustVMExist

func MustVMExist(controller ctlkubevirtv1.VirtualMachineController, namespace, name string)

func MustVMIRestarted

func MustVMIRestarted(controller ctlkubevirtv1.VirtualMachineController, namespace, name string,
	vmiController ctlkubevirtv1.VirtualMachineInstanceController, vmiUID string)

func MustVMIRunning

func MustVMIRunning(controller ctlkubevirtv1.VirtualMachineController, namespace, name string,
	vmiController ctlkubevirtv1.VirtualMachineInstanceController) string

func MustVMPaused

func MustVMPaused(controller ctlkubevirtv1.VirtualMachineController, namespace, name string)

func MustVMReady

func MustVMReady(controller ctlkubevirtv1.VirtualMachineController, namespace, name string)

func MustVMRunning

func MustVMRunning(controller ctlkubevirtv1.VirtualMachineController, namespace, name string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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