tests

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvVarPrefix = "LOCAL_CSI_DRIVER_TESTS_"
)

Variables

This section is empty.

Functions

func NewRunCommand

func NewRunCommand(streams genericclioptions.IOStreams) *cobra.Command

func NewTestsCommand

func NewTestsCommand(streams genericclioptions.IOStreams) *cobra.Command

Types

type DeleteTestingNSPolicyType

type DeleteTestingNSPolicyType string
var (
	DeleteTestingNSPolicyAlways    DeleteTestingNSPolicyType = "Always"
	DeleteTestingNSPolicyOnSuccess DeleteTestingNSPolicyType = "OnSuccess"
	DeleteTestingNSPolicyNever     DeleteTestingNSPolicyType = "Never"
)

type KubeFrameworkOptions

type KubeFrameworkOptions struct {
	ArtifactsDir                 string
	DeleteTestingNSPolicyUntyped string
	DeleteTestingNSPolicy        DeleteTestingNSPolicyType
}

func NewTestFrameworkOptions

func NewTestFrameworkOptions() KubeFrameworkOptions

func (*KubeFrameworkOptions) AddFlags

func (o *KubeFrameworkOptions) AddFlags(cmd *cobra.Command)

func (*KubeFrameworkOptions) Complete

func (o *KubeFrameworkOptions) Complete() error

func (*KubeFrameworkOptions) Validate

func (o *KubeFrameworkOptions) Validate() error

type RunOptions

type RunOptions struct {
	genericclioptions.IOStreams
	KubeFrameworkOptions

	Timeout               time.Duration
	Quiet                 bool
	ShowProgress          bool
	FlakeAttempts         int
	FailFast              bool
	LabelFilter           string
	FocusStrings          []string
	SkipStrings           []string
	RandomSeed            int64
	DryRun                bool
	Color                 bool
	Parallelism           int
	ParallelShard         int
	ParallelServerAddress string
	ParallelLogLevel      int32

	SelectedSuite *ginkgotest.TestSuite
}

func NewRunOptions

func NewRunOptions(streams genericclioptions.IOStreams) *RunOptions

func (*RunOptions) Complete

func (o *RunOptions) Complete(args []string) error

func (*RunOptions) Run

func (o *RunOptions) Run(streams genericclioptions.IOStreams, cmd *cobra.Command) error

func (*RunOptions) Validate

func (o *RunOptions) Validate(args []string) error

Jump to

Keyboard shortcuts

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