testsuite

package
v0.53.0-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KubevirtIoTest = "kubevirt.io/test"
	SecretLabel    = "kubevirt.io/secret"
)
View Source
const (
	SubresourceServiceAccountName = "kubevirt-subresource-test-sa"
	AdminServiceAccountName       = "kubevirt-admin-test-sa"
	EditServiceAccountName        = "kubevirt-edit-test-sa"
	ViewServiceAccountName        = "kubevirt-view-test-sa"
)
View Source
const HostPathBase = "/tmp/hostImages"

Variables

View Source
var (
	HostPathAlpine string
	HostPathCustom string
)
View Source
var Arch string
View Source
var (
	KubeVirtDefaultConfig v1.KubeVirtConfiguration
)
View Source
var NamespaceTestAlternative = "kubevirt-test-alternative"

NamespaceTestAlternative is used to test controller-namespace independently.

View Source
var NamespaceTestOperator = "kubevirt-test-operator"

NamespaceTestOperator is used to test if namespaces can still be deleted when kubevirt is uninstalled

Functions

func AdjustKubeVirtResource

func AdjustKubeVirtResource()

func AfterTestSuitCleanup

func AfterTestSuitCleanup()

func ApplyRawManifest

func ApplyRawManifest(object unstructured.Unstructured) error

func BeforeTestSuitSetup

func BeforeTestSuitSetup(_ []byte)

func CalculateNamespaces

func CalculateNamespaces()

CalculateNamespaces checks on which ginkgo gest node the tests are run and sets the namespaces accordingly

func CleanNamespaces

func CleanNamespaces()

func DeleteRawManifest

func DeleteRawManifest(object unstructured.Unstructured) error

func DeployTestingInfrastructure

func DeployTestingInfrastructure()

func EnsureKVMPresent

func EnsureKVMPresent()

func EnsureKubevirtInfra

func EnsureKubevirtInfra()

func GetListOfManifests

func GetListOfManifests(pathToManifestsDir string) []string

func ReadManifestYamlFile

func ReadManifestYamlFile(pathToManifest string) []unstructured.Unstructured

func RestoreKubeVirtResource

func RestoreKubeVirtResource()

func ShouldAllowEmulation

func ShouldAllowEmulation(virtClient kubecli.KubevirtClient) bool

func SynchronizedAfterTestSuiteCleanup

func SynchronizedAfterTestSuiteCleanup()

func SynchronizedBeforeTestSetup

func SynchronizedBeforeTestSetup() []byte

func UpdateKubeVirtConfigValue

func UpdateKubeVirtConfigValue(kvConfig v1.KubeVirtConfiguration) *v1.KubeVirt

UpdateKubeVirtConfigValue updates the given configuration in the kubevirt custom resource

func WipeTestingInfrastructure

func WipeTestingInfrastructure()

Types

This section is empty.

Jump to

Keyboard shortcuts

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