Documentation ¶
Index ¶
- Variables
- func BeCreated() gomegatypes.GomegaMatcher
- func BeReady() gomegatypes.GomegaMatcher
- func BeRestarted(oldUID types.UID) gomegatypes.GomegaMatcher
- func CheckLiveMigrationSucceeded(vmNamespace, vmName string)
- func ComposeAlpineWithMultusVMI(namespace, interfaceName, networkName string) *kubevirtv1.VirtualMachineInstance
- func ComposeLayer2WithSubnetNAD(namespace string) *nadv1.NetworkAttachmentDefinition
- func ContainConditionVMIReady() gomegatypes.GomegaMatcher
- func GenerateLayer2WithSubnetNAD(nadName, namespace, role string) *nadv1.NetworkAttachmentDefinition
- func GetIPsFromVMIStatus(vmi *kubevirtv1.VirtualMachineInstance, networkInterfaceName string) []string
- func IPAMClaimsFromNamespace(namespace string) func() ([]ipamclaimsv1alpha1.IPAMClaim, error)
- func LiveMigrateVirtualMachine(vmNamespace, vmName string)
- func MatchIPsAtInterfaceByName(interfaceName string, ipsMatcher gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
- func NewVirtualMachine(vmi *kubevirtv1.VirtualMachineInstance, opts ...VMOption) *kubevirtv1.VirtualMachine
- func NewVirtualMachineInstance(namespace string, opts ...VMIOption) *kubevirtv1.VirtualMachineInstance
- func RandomName(prefix string, n int) string
- func RandomNamespace() string
- func Start()
- func ThisVMI(vmi *kubevirtv1.VirtualMachineInstance) func() (*kubevirtv1.VirtualMachineInstance, error)
- func ThisVMReadiness(vm *kubevirtv1.VirtualMachine) func() (bool, error)
- type TestData
- type VMIOption
- type VMOption
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Client client.Client // You'll be using this client in your tests.
)
Functions ¶
func BeCreated ¶
func BeCreated() gomegatypes.GomegaMatcher
func BeReady ¶
func BeReady() gomegatypes.GomegaMatcher
func BeRestarted ¶
func BeRestarted(oldUID types.UID) gomegatypes.GomegaMatcher
func CheckLiveMigrationSucceeded ¶
func CheckLiveMigrationSucceeded(vmNamespace, vmName string)
func ComposeAlpineWithMultusVMI ¶
func ComposeAlpineWithMultusVMI(namespace, interfaceName, networkName string) *kubevirtv1.VirtualMachineInstance
func ComposeLayer2WithSubnetNAD ¶
func ComposeLayer2WithSubnetNAD(namespace string) *nadv1.NetworkAttachmentDefinition
func ContainConditionVMIReady ¶
func ContainConditionVMIReady() gomegatypes.GomegaMatcher
func GenerateLayer2WithSubnetNAD ¶
func GenerateLayer2WithSubnetNAD(nadName, namespace, role string) *nadv1.NetworkAttachmentDefinition
func GetIPsFromVMIStatus ¶
func GetIPsFromVMIStatus(vmi *kubevirtv1.VirtualMachineInstance, networkInterfaceName string) []string
func IPAMClaimsFromNamespace ¶
func IPAMClaimsFromNamespace(namespace string) func() ([]ipamclaimsv1alpha1.IPAMClaim, error)
IPAMClaimsFromNamespace fetches the IPAMClaims related to namespace
func LiveMigrateVirtualMachine ¶
func LiveMigrateVirtualMachine(vmNamespace, vmName string)
func MatchIPsAtInterfaceByName ¶
func MatchIPsAtInterfaceByName(interfaceName string, ipsMatcher gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
func NewVirtualMachine ¶
func NewVirtualMachine(vmi *kubevirtv1.VirtualMachineInstance, opts ...VMOption) *kubevirtv1.VirtualMachine
func NewVirtualMachineInstance ¶
func NewVirtualMachineInstance(namespace string, opts ...VMIOption) *kubevirtv1.VirtualMachineInstance
func RandomName ¶
RandomName generates a random name of n length with the provided prefix. If prefix is omitted, the then entire name is random char.
func RandomNamespace ¶
func RandomNamespace() string
func ThisVMI ¶
func ThisVMI(vmi *kubevirtv1.VirtualMachineInstance) func() (*kubevirtv1.VirtualMachineInstance, error)
ThisVMI fetches the latest state of the VirtualMachineInstance. If the object does not exist, nil is returned.
func ThisVMReadiness ¶
func ThisVMReadiness(vm *kubevirtv1.VirtualMachine) func() (bool, error)
Types ¶
type TestData ¶
func GenerateTestData ¶
func GenerateTestData() TestData
type VMIOption ¶
type VMIOption func(vmi *kubevirtv1.VirtualMachineInstance)
func WithInterface ¶
func WithInterface(iface kubevirtv1.Interface) VMIOption
func WithMemory ¶
func WithNetwork ¶
func WithNetwork(network kubevirtv1.Network) VMIOption
type VMOption ¶
type VMOption func(vm *kubevirtv1.VirtualMachine)
func WithRunning ¶
func WithRunning() VMOption
Click to show internal directories.
Click to hide internal directories.