Documentation ¶
Index ¶
- type CopyTemplateTaskData
- type CopyTemplateTestConfig
- type CreateVMTaskData
- type CreateVMTestConfig
- type DiskVirtLibguestfsTaskData
- type DiskVirtLibguestfsTestConfig
- type ExecuteOrCleanupVMTaskData
- type ExecuteOrCleanupVMTestConfig
- type GenerateSshKeysTaskData
- type GenerateSshKeysTestConfig
- type ModifyDataObjectTaskData
- type ModifyDataObjectTestConfig
- type ModifyTemplateTaskData
- type ModifyTemplateTestConfig
- type PipelineRunData
- type PipelineRunExpectedTermination
- type PipelineTestConfig
- type TaskRunExpectedTermination
- type TaskRunTestConfig
- type WaitForVMIStatusTaskData
- type WaitForVMIStatusTestConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CopyTemplateTaskData ¶
type CopyTemplateTestConfig ¶
type CopyTemplateTestConfig struct { TaskRunTestConfig TaskData CopyTemplateTaskData // contains filtered or unexported fields }
func (*CopyTemplateTestConfig) GetTaskRun ¶
func (c *CopyTemplateTestConfig) GetTaskRun() *pipev1.TaskRun
func (*CopyTemplateTestConfig) Init ¶
func (c *CopyTemplateTestConfig) Init(options *testoptions.TestOptions)
type CreateVMTaskData ¶
type CreateVMTaskData struct { CreateMode CreateVMMode Template *v1.Template TemplateTargetNamespace TargetNamespace VM *kubevirtv1.VirtualMachine IsCommonTemplate bool StartVM string RunStrategy string ExpectedAdditionalDiskBus string // Params // these two are set if Template is not nil TemplateName string TemplateNamespace string // this is set if VM is not nil VMManifest string SetOwnerReference string TemplateParams []string VMNamespace string Virtctl string }
func (*CreateVMTaskData) GetExpectedVMStubMeta ¶
func (c *CreateVMTaskData) GetExpectedVMStubMeta() *kubevirtv1.VirtualMachine
func (*CreateVMTaskData) GetTemplateParam ¶
func (c *CreateVMTaskData) GetTemplateParam(key string) string
type CreateVMTestConfig ¶
type CreateVMTestConfig struct { TaskRunTestConfig TaskData CreateVMTaskData // contains filtered or unexported fields }
func (*CreateVMTestConfig) GetTaskRun ¶
func (c *CreateVMTestConfig) GetTaskRun() *pipev1.TaskRun
func (*CreateVMTestConfig) Init ¶
func (c *CreateVMTestConfig) Init(options *testoptions.TestOptions)
type DiskVirtLibguestfsTaskData ¶
type DiskVirtLibguestfsTaskData struct { Datavolume *cdiv1beta1.DataVolume PVCName string Commands string AdditionalOptions string Verbose bool // supplied LibguestfsTaskType LibguestfsTaskType }
type DiskVirtLibguestfsTestConfig ¶
type DiskVirtLibguestfsTestConfig struct { TaskRunTestConfig TaskData DiskVirtLibguestfsTaskData // contains filtered or unexported fields }
func (*DiskVirtLibguestfsTestConfig) GetTaskRun ¶
func (c *DiskVirtLibguestfsTestConfig) GetTaskRun() *pipev1.TaskRun
func (*DiskVirtLibguestfsTestConfig) GetTaskRunWithName ¶
func (c *DiskVirtLibguestfsTestConfig) GetTaskRunWithName(nameSuffix string) *pipev1.TaskRun
func (*DiskVirtLibguestfsTestConfig) Init ¶
func (c *DiskVirtLibguestfsTestConfig) Init(options *testoptions.TestOptions)
type ExecuteOrCleanupVMTaskData ¶
type ExecuteOrCleanupVMTaskData struct { Secret *corev1.Secret VM *kubevirtv1.VirtualMachine VMTargetNamespace TargetNamespace UseDefaultVMNamespacesInTaskParams bool ShouldStartVM bool // supplied ExecInVMMode ExecInVMMode // Params // these three are set if VM is not nil VMName string VMNamespace string SecretName string Script string Command []string CommandArgs []string // cleanup VM Stop bool Delete bool Timeout *metav1.Duration }
type ExecuteOrCleanupVMTestConfig ¶
type ExecuteOrCleanupVMTestConfig struct { TaskRunTestConfig TaskData ExecuteOrCleanupVMTaskData // contains filtered or unexported fields }
func (*ExecuteOrCleanupVMTestConfig) GetTaskRun ¶
func (c *ExecuteOrCleanupVMTestConfig) GetTaskRun() *pipev1.TaskRun
func (*ExecuteOrCleanupVMTestConfig) Init ¶
func (c *ExecuteOrCleanupVMTestConfig) Init(options *testoptions.TestOptions)
type GenerateSshKeysTaskData ¶
type GenerateSshKeysTaskData struct { PublicKeySecretTargetNamespace TargetNamespace PrivateKeySecretTargetNamespace TargetNamespace PublicKeySecretName string PublicKeySecretNamespace string PrivateKeySecretName string PrivateKeySecretNamespace string PrivateKeyConnectionOptions []string AdditionalSSHKeygenOptions string }
func (*GenerateSshKeysTaskData) GetPrivateKeyConnectionOptions ¶
func (d *GenerateSshKeysTaskData) GetPrivateKeyConnectionOptions() map[string]string
type GenerateSshKeysTestConfig ¶
type GenerateSshKeysTestConfig struct { TaskRunTestConfig TaskData GenerateSshKeysTaskData // contains filtered or unexported fields }
func (*GenerateSshKeysTestConfig) GetExpectedResults ¶
func (c *GenerateSshKeysTestConfig) GetExpectedResults() map[string]string
func (*GenerateSshKeysTestConfig) GetTaskRun ¶
func (c *GenerateSshKeysTestConfig) GetTaskRun() *pipev1.TaskRun
func (*GenerateSshKeysTestConfig) Init ¶
func (c *GenerateSshKeysTestConfig) Init(options *testoptions.TestOptions)
type ModifyDataObjectTaskData ¶
type ModifyDataObjectTaskData struct { DataVolume *cdiv1beta1.DataVolume DataSource *cdiv1beta1.DataSource RawManifest string WaitForSuccess bool AllowReplace bool DeleteObject bool DeleteObjectName string DeleteObjectKind string Namespace TargetNamespace SetOwnerReference string // contains filtered or unexported fields }
type ModifyDataObjectTestConfig ¶
type ModifyDataObjectTestConfig struct { TaskRunTestConfig TaskData ModifyDataObjectTaskData // contains filtered or unexported fields }
func (*ModifyDataObjectTestConfig) GetTaskRun ¶
func (c *ModifyDataObjectTestConfig) GetTaskRun() *pipev1.TaskRun
func (*ModifyDataObjectTestConfig) GetWaitForDataObjectTimeout ¶
func (c *ModifyDataObjectTestConfig) GetWaitForDataObjectTimeout() time.Duration
func (*ModifyDataObjectTestConfig) Init ¶
func (c *ModifyDataObjectTestConfig) Init(options *testoptions.TestOptions)
type ModifyTemplateTaskData ¶
type ModifyTemplateTaskData struct { Template *v1.Template TemplateName string SourceTemplateNamespace TargetNamespace CPUCores string CPUSockets string CPUThreads string Memory string TemplateNamespace string TemplateLabels []string TemplateAnnotations []string VMAnnotations []string VMLabels []string Disks []string Volumes []string DataVolumeTemplates []string TemplateParameters []string DeleteDatavolumeTemplate bool DeleteDisks bool DeleteVolumes bool DeleteTemplateParameters bool DeleteTemplate bool }
type ModifyTemplateTestConfig ¶
type ModifyTemplateTestConfig struct { TaskRunTestConfig TaskData ModifyTemplateTaskData // contains filtered or unexported fields }
func (*ModifyTemplateTestConfig) GetTaskRun ¶
func (m *ModifyTemplateTestConfig) GetTaskRun() *pipev1.TaskRun
func (*ModifyTemplateTestConfig) Init ¶
func (m *ModifyTemplateTestConfig) Init(options *testoptions.TestOptions)
type PipelineRunData ¶
type PipelineRunData struct { Name string Params []pipev1.Param TaskRunSpecs []pipev1.PipelineTaskRunSpec PipelineRef *pipev1.PipelineRef }
type PipelineRunExpectedTermination ¶
type PipelineRunExpectedTermination struct {
ExitCode int32
}
type PipelineTestConfig ¶
type PipelineTestConfig struct { TaskRunTestConfig Pipeline *pipev1.Pipeline PipelineRunData PipelineRunData PipelineRun *pipev1.PipelineRun // contains filtered or unexported fields }
func (*PipelineTestConfig) GetPipelineRun ¶
func (c *PipelineTestConfig) GetPipelineRun() *pipev1.PipelineRun
func (*PipelineTestConfig) Init ¶
func (c *PipelineTestConfig) Init(options *testoptions.TestOptions)
type TaskRunExpectedTermination ¶
type TaskRunExpectedTermination struct {
ExitCode int32
}
type TaskRunTestConfig ¶
type TaskRunTestConfig struct { ServiceAccount string Timeout *metav1.Duration LimitEnvScope constants.EnvScope ExpectSuccess bool ExpectedLogs string ExpectedLogsList []string ExpectedTermination *TaskRunExpectedTermination }
func (*TaskRunTestConfig) GetAllExpectedLogs ¶
func (t *TaskRunTestConfig) GetAllExpectedLogs() []string
func (*TaskRunTestConfig) GetLimitEnvScope ¶
func (t *TaskRunTestConfig) GetLimitEnvScope() constants.EnvScope
func (*TaskRunTestConfig) GetTaskRunTimeout ¶
func (t *TaskRunTestConfig) GetTaskRunTimeout() time.Duration
type WaitForVMIStatusTaskData ¶
type WaitForVMIStatusTaskData struct { VM *kubevirtv1.VirtualMachine VMTargetNamespace TargetNamespace ShouldStartVM bool // Params // these two are set if Template is not nil VMIName string VMINamespace string SuccessCondition string FailureCondition string }
type WaitForVMIStatusTestConfig ¶
type WaitForVMIStatusTestConfig struct { TaskRunTestConfig TaskData WaitForVMIStatusTaskData // contains filtered or unexported fields }
func (*WaitForVMIStatusTestConfig) GetTaskRun ¶
func (c *WaitForVMIStatusTestConfig) GetTaskRun() *pipev1.TaskRun
func (*WaitForVMIStatusTestConfig) Init ¶
func (c *WaitForVMIStatusTestConfig) Init(options *testoptions.TestOptions)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.