Documentation ¶
Index ¶
- Constants
- Variables
- func AdjustKubeVirtResource()
- func AfterTestSuitCleanup()
- func ApplyRawManifest(object unstructured.Unstructured) error
- func BeforeTestSuitSetup(_ []byte)
- func CalculateNamespaces()
- func CleanNamespaces()
- func DeleteRawManifest(object unstructured.Unstructured) error
- func DeployTestingInfrastructure()
- func EnsureKVMPresent()
- func EnsureKubevirtInfra()
- func GetListOfManifests(pathToManifestsDir string) []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 WipeTestingInfrastructure()
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
View Source
var TestNamespaces = []string{util.NamespaceTestDefault, NamespaceTestAlternative, NamespaceTestOperator}
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 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.
Click to show internal directories.
Click to hide internal directories.