testsuite

package
v1.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminServiceAccountName                   = "kubevirt-admin-test-sa"
	EditServiceAccountName                    = "kubevirt-edit-test-sa"
	ViewServiceAccountName                    = "kubevirt-view-test-sa"
	ViewInstancetypeServiceAccountName        = "kubevirt-instancetype-view-test-sa"
	SubresourceServiceAccountName             = "kubevirt-subresource-test-sa"
	SubresourceUnprivilegedServiceAccountName = "kubevirt-subresource-test-unprivileged-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 NamespacePrivileged = "kubevirt-test-privileged"

NamespacePrivileged is used for helper pods that requires to be privileged

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 EnsureKubevirtReady added in v1.0.0

func EnsureKubevirtReady()

func EnsureKubevirtReadyWithTimeout added in v1.0.0

func EnsureKubevirtReadyWithTimeout(timeout time.Duration)

func GetLabelsForNamespace added in v0.58.1

func GetLabelsForNamespace(namespace string) map[string]string

func GetListOfManifests

func GetListOfManifests(pathToManifestsDir string) []string

func GetTestNamespace added in v0.59.0

func GetTestNamespace(object metav1.Object) 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 WaitExportProxyReady added in v0.58.0

func WaitExportProxyReady()

func WipeTestingInfrastructure

func WipeTestingInfrastructure()

Types

type IgnoreDeprecationWarningsLogger added in v0.58.0

type IgnoreDeprecationWarningsLogger struct{}

func (IgnoreDeprecationWarningsLogger) HandleWarningHeader added in v0.58.0

func (IgnoreDeprecationWarningsLogger) HandleWarningHeader(code int, agent string, message string)

type RunConfiguration added in v1.0.0

type RunConfiguration struct {
	WarningToIgnoreList []string
}
var (
	TestRunConfiguration RunConfiguration
)

Jump to

Keyboard shortcuts

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