tests

package
v1.14.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const WatchInterval = 2 * time.Second

Variables

This section is empty.

Functions

func AddCreateFlags added in v1.10.29

func AddCreateFlags(cmd *cobra.Command, flags *CreateCommonFlags)

AddCreateFlags adds flags to the create command that can be used by the create from file

func DownloadArtifacts added in v0.9.5

func DownloadArtifacts(id, dir, format string, masks []string, client apiclientv1.Client)

func NewAbortExecutionCmd added in v0.9.5

func NewAbortExecutionCmd() *cobra.Command

func NewAbortExecutionsCmd added in v1.9.22

func NewAbortExecutionsCmd() *cobra.Command

func NewCreateTestsCmd

func NewCreateTestsCmd() *cobra.Command

NewCreateTestsCmd is a command tp create new Test Custom Resource

func NewDeleteTestsCmd

func NewDeleteTestsCmd() *cobra.Command

func NewGetExecutionCmd added in v0.9.5

func NewGetExecutionCmd() *cobra.Command

func NewGetTestsCmd

func NewGetTestsCmd() *cobra.Command

func NewRunTestCmd added in v0.9.5

func NewRunTestCmd() *cobra.Command

func NewUpdateTestOptionsFromFlags added in v1.7.29

func NewUpdateTestOptionsFromFlags(cmd *cobra.Command) (options apiclientv1.UpdateTestOptions, err error)

NewUpdateTestOptionsFromFlags creates update test options from command flags

func NewUpdateTestsCmd

func NewUpdateTestsCmd() *cobra.Command

func NewUpsertTestOptionsFromFlags added in v0.9.5

func NewUpsertTestOptionsFromFlags(cmd *cobra.Command) (options apiclientv1.UpsertTestOptions, err error)

NewUpsertTestOptionsFromFlags creates upsert test options from command flags

func NewWatchExecutionCmd added in v0.9.5

func NewWatchExecutionCmd() *cobra.Command

func PrepareVariablesFile added in v1.11.22

func PrepareVariablesFile(client client.Client, parentName string, parentType client.TestingType, filePath string, timeout time.Duration) (string, bool, error)

PrepareVariablesFile reads variables file, or if the file size is too big it uploads them

Types

type CreateCommonFlags added in v1.10.29

type CreateCommonFlags struct {
	ExecutorType             string
	Labels                   map[string]string
	Variables                map[string]string
	SecretVariables          map[string]string
	Schedule                 string
	ExecutorArgs             []string
	ArgsMode                 string
	ExecutionName            string
	VariablesFile            string
	Envs                     map[string]string
	SecretEnvs               map[string]string
	HttpProxy, HttpsProxy    string
	SecretVariableReferences map[string]string
	CopyFiles                []string
	Image                    string
	Command                  []string
	ImagePullSecretNames     []string
	Timeout                  int64
	ArtifactStorageClassName string
	ArtifactVolumeMountPath  string
	ArtifactDirs             []string
	JobTemplate              string
	CronJobTemplate          string
	PreRunScript             string
	PostRunScript            string
	ScraperTemplate          string
	NegativeTest             bool
	MountConfigMaps          map[string]string
	VariableConfigMaps       []string
	MountSecrets             map[string]string
	VariableSecrets          []string
	UploadTimeout            string
}

CreateCommonFlags are common flags for creating all test types

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL