Documentation ¶
Index ¶
- type CreateVMTaskData
- type CreateVMTestConfig
- type DiskUploaderTaskData
- type DiskUploaderTestConfig
- type DiskVirtLibguestfsTaskData
- type DiskVirtLibguestfsTestConfig
- type ExecuteOrCleanupVMTaskData
- type ExecuteOrCleanupVMTestConfig
- type GenerateSshKeysTaskData
- type GenerateSshKeysTestConfig
- type ModifyDataObjectTaskData
- type ModifyDataObjectTestConfig
- 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 CreateVMTaskData ¶
type CreateVMTaskData struct { VM *kubevirtv1.VirtualMachine StartVM string RunStrategy string ExpectedAdditionalDiskBus string // this is set if VM is not nil VMManifest string SetOwnerReference string VMNamespace string Virtctl string }
func (*CreateVMTaskData) GetExpectedVM ¶ added in v0.23.0
func (c *CreateVMTaskData) GetExpectedVM() (*kubevirtv1.VirtualMachine, error)
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 DiskUploaderTaskData ¶ added in v0.23.0
type DiskUploaderTestConfig ¶ added in v0.23.0
type DiskUploaderTestConfig struct { TaskRunTestConfig TaskData DiskUploaderTaskData // contains filtered or unexported fields }
func (*DiskUploaderTestConfig) GetTaskRun ¶ added in v0.23.0
func (c *DiskUploaderTestConfig) GetTaskRun() *pipev1.TaskRun
func (*DiskUploaderTestConfig) Init ¶ added in v0.23.0
func (c *DiskUploaderTestConfig) 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 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 ExpectSuccess bool ExpectedLogs string ExpectedLogsList []string ExpectedTermination *TaskRunExpectedTermination }
func (*TaskRunTestConfig) GetAllExpectedLogs ¶
func (t *TaskRunTestConfig) GetAllExpectedLogs() []string
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)
Click to show internal directories.
Click to hide internal directories.