Documentation ¶
Index ¶
- Constants
- Variables
- func BeforeEach()
- func FailIfHighAvailableCluster(singleWorkerCluster bool)
- func FailIfNotOpenShift(cli kubecli.KubevirtClient, testName string)
- func FailIfSingleNode(singleWorkerCluster bool)
- func FlagParse()
- func GetHCO(ctx context.Context, client kubecli.KubevirtClient) *v1beta1.HyperConverged
- func GetJobTypeEnvVar() string
- func IsOpenShift(cli kubecli.KubevirtClient) (bool, error)
- func IsOpenShiftSingleStackIPv6(cli kubecli.KubevirtClient) (bool, error)
- func PatchHCO(ctx context.Context, cl kubecli.KubevirtClient, patch []byte) error
- func RestoreDefaults(ctx context.Context, cli kubecli.KubevirtClient)
- func UpdateHCO(ctx context.Context, client kubecli.KubevirtClient, ...) (*v1beta1.HyperConverged, error)
- func UpdateHCORetry(ctx context.Context, client kubecli.KubevirtClient, ...) *v1beta1.HyperConverged
- type DashboardTestConfig
- type DashboardTestItem
- type DataImportCronConfig
- type ImageStreamConfig
- type QuickStartTestConfig
- type QuickStartTestItem
- type TestConfig
Constants ¶
View Source
const ( SingleNodeLabel = "SINGLE_NODE_ONLY" HighlyAvailableClusterLabel = "HIGHLY_AVAILABLE_CLUSTER" OpenshiftLabel = "OpenShift" )
labels
View Source
const (
ConfigFileFlag = "config-file"
)
Variables ¶
View Source
var KubeVirtStorageClassLocal string
Functions ¶
func BeforeEach ¶
func BeforeEach()
func FailIfHighAvailableCluster ¶
func FailIfHighAvailableCluster(singleWorkerCluster bool)
func FailIfNotOpenShift ¶
func FailIfNotOpenShift(cli kubecli.KubevirtClient, testName string)
func FailIfSingleNode ¶
func FailIfSingleNode(singleWorkerCluster bool)
func GetHCO ¶
func GetHCO(ctx context.Context, client kubecli.KubevirtClient) *v1beta1.HyperConverged
GetHCO reads the HCO CR from the APIServer with a DynamicClient
func GetJobTypeEnvVar ¶
func GetJobTypeEnvVar() string
GetJobTypeEnvVar returns "JOB_TYPE" environment variable
func IsOpenShift ¶
func IsOpenShift(cli kubecli.KubevirtClient) (bool, error)
func IsOpenShiftSingleStackIPv6 ¶
func IsOpenShiftSingleStackIPv6(cli kubecli.KubevirtClient) (bool, error)
func RestoreDefaults ¶
func RestoreDefaults(ctx context.Context, cli kubecli.KubevirtClient)
func UpdateHCO ¶
func UpdateHCO(ctx context.Context, client kubecli.KubevirtClient, input *v1beta1.HyperConverged) (*v1beta1.HyperConverged, error)
UpdateHCO updates the HCO CR using a DynamicClient, it can return errors on failures
func UpdateHCORetry ¶
func UpdateHCORetry(ctx context.Context, client kubecli.KubevirtClient, input *v1beta1.HyperConverged) *v1beta1.HyperConverged
UpdateHCORetry updates the HCO CR in a safe way internally calling UpdateHCO UpdateHCORetry internally uses an async Eventually block refreshing the in-memory object if needed and setting there Spec, Annotations, Finalizers and Labels from the input object. UpdateHCORetry should be preferred over UpdateHCO to reduce test flakiness due to inevitable concurrency conflicts
Types ¶
type DashboardTestConfig ¶
type DashboardTestConfig struct {
TestItems []DashboardTestItem `yaml:"testItems,omitempty"`
}
type DashboardTestItem ¶
type DataImportCronConfig ¶
type DataImportCronConfig struct { ExpectedDataImportCrons []string `yaml:"expectedDataImportCrons,omitempty"` ExpectedImageStream []ImageStreamConfig `yaml:"expectedImageStream,omitempty"` Namespace string `yaml:"namespace,omitempty"` }
type ImageStreamConfig ¶
type QuickStartTestConfig ¶
type QuickStartTestConfig struct {
TestItems []QuickStartTestItem `yaml:"testItems,omitempty"`
}
type QuickStartTestItem ¶
type TestConfig ¶
type TestConfig struct { QuickStart QuickStartTestConfig `yaml:"quickStart,omitempty"` Dashboard DashboardTestConfig `yaml:"dashboard,omitempty"` DataImportCron DataImportCronConfig `yaml:"dataImportCron,omitempty"` }
func GetConfig ¶
func GetConfig() *TestConfig
Click to show internal directories.
Click to hide internal directories.