testsuite

package
v0.57.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

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 AfterTestSuiteCleanup added in v0.57.0

func AfterTestSuiteCleanup()

func ApplyRawManifest

func ApplyRawManifest(object unstructured.Unstructured) error

func BeforeTestSuiteSetup added in v0.57.0

func BeforeTestSuiteSetup(_ []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