tests

package
v1.42.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CDIFailHandler

func CDIFailHandler(message string, callerSkip ...int)

CDIFailHandler call ginkgo.Fail with printing the additional information

func CreateImageIoDefaultInventory added in v1.41.0

func CreateImageIoDefaultInventory(f *framework.Framework)

CreateImageIoDefaultInventory resets ImageIO inventory to the defaults, and adds a response for the base /ovirt-engine/api URL.

func CreateImageIoWarmImportInventory added in v1.39.0

func CreateImageIoWarmImportInventory(f *framework.Framework, diskID string, storageDomainID string, snapshots []string)

CreateImageIoWarmImportInventory constructs ImageIO inventory updates for a multi-stage import

func CreateKubectlCommand added in v1.6.0

func CreateKubectlCommand(f *framework.Framework, args ...string) *exec.Cmd

CreateKubectlCommand returns the Cmd to execute kubectl

func CreateOcCommand added in v1.34.3

func CreateOcCommand(f *framework.Framework, args ...string) *exec.Cmd

CreateOcCommand returns the Cmd to execute oc

func GetKubeVersion added in v1.12.0

func GetKubeVersion(f *framework.Framework) string

GetKubeVersion returns the version returned by the kubectl version command as a semver compatible string

func IsPrometheusAvailable added in v1.42.0

func IsPrometheusAvailable(client *extclientset.Clientset) bool

IsPrometheusAvailable decides whether or not we will run prometheus alert/metric tests

func MakePrometheusHTTPRequest added in v1.42.0

func MakePrometheusHTTPRequest(f *framework.Framework, endpoint string) *http.Response

MakePrometheusHTTPRequest makes a request to the prometheus api and returns the response

func PanicOnError

func PanicOnError(err error)

PanicOnError ...

func PodSpecHasTestNodePlacementValues added in v1.23.0

func PodSpecHasTestNodePlacementValues(f *framework.Framework, podSpec v1.PodSpec) bool

PodSpecHasTestNodePlacementValues compares if the pod spec has the set of node placement values defined for testing purposes

func PrintControllerLog

func PrintControllerLog(f *framework.Framework)

PrintControllerLog ...

func PrintPodLog added in v1.3.0

func PrintPodLog(f *framework.Framework, podName, namespace string)

PrintPodLog ...

func ResetImageIoInventory added in v1.39.0

func ResetImageIoInventory(f *framework.Framework, configurators ...string)

ResetImageIoInventory resets the fakeovirt inventory to the defaults. Accepts a list of configurators (see fakeovirt documentation): static-sso, static-vms, static-namespace, static-transfers

func RunGoCLICommand added in v1.42.0

func RunGoCLICommand(f *framework.Framework, args ...string) (string, error)

RunGoCLICommand runs a gocli Cmd and returns output and err

func RunKubectlCommand

func RunKubectlCommand(f *framework.Framework, args ...string) (string, error)

RunKubectlCommand runs a kubectl Cmd and returns output and err

func RunOcCommand added in v1.34.3

func RunOcCommand(f *framework.Framework, args ...string) (string, error)

RunOcCommand runs an oc Cmd and returns output and err

func TestNodePlacementValues added in v1.23.0

func TestNodePlacementValues(f *framework.Framework) sdkapi.NodePlacement

TestNodePlacementValues returns a pre-defined set of node placement values for testing purposes. The values chosen are valid, but the pod will likely not be schedulable.

func VerifyConditions added in v1.36.0

func VerifyConditions(actualConditions []cdiv1.DataVolumeCondition, testConditions []*cdiv1.DataVolumeCondition) bool

VerifyConditions checks if the conditions match testConditions

func WaitForConditions added in v1.42.0

func WaitForConditions(f *framework.Framework, dataVolumeName string, timeout, pollingInterval time.Duration, expectedConditions ...*cdiv1.DataVolumeCondition)

WaitForConditions waits until the data volume conditions match the expected conditions

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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