Documentation ¶
Index ¶
- Constants
- Variables
- func AdjustKubeVirtResource()
- func AfterTestSuiteCleanup()
- func ApplyRawManifest(object unstructured.Unstructured) error
- func BeforeTestSuiteSetup(_ []byte)
- func CalculateNamespaces()
- func CleanNamespaces()
- func DeleteRawManifest(object unstructured.Unstructured) error
- func DeployTestingInfrastructure()
- func EnsureKVMPresent()
- func EnsureKubevirtReady()
- func EnsureKubevirtReadyWithTimeout(timeout time.Duration)
- func GetLabelsForNamespace(namespace string) map[string]string
- func GetListOfManifests(pathToManifestsDir string) []string
- func GetTestNamespace(object metav1.Object) string
- func ReadManifestYamlFile(pathToManifest string) []unstructured.Unstructured
- func RestoreKubeVirtResource()
- func ShouldAllowEmulation(virtClient kubecli.KubevirtClient) bool
- func SynchronizedAfterTestSuiteCleanup()
- func SynchronizedBeforeTestSetup() []byte
- func UpdateKubeVirtConfigValue(kvConfig v1.KubeVirtConfiguration) *v1.KubeVirt
- func WaitExportProxyReady()
- func WipeTestingInfrastructure()
- type IgnoreDeprecationWarningsLogger
- type RunConfiguration
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
View Source
var TestNamespaces = []string{util.NamespaceTestDefault, NamespaceTestAlternative, NamespaceTestOperator, NamespacePrivileged}
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 GetLabelsForNamespace ¶ added in v0.58.1
func GetListOfManifests ¶
func GetTestNamespace ¶ added in v0.59.0
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
)
Click to show internal directories.
Click to hide internal directories.