Documentation
¶
Index ¶
- Constants
- Variables
- func NewRunCommand(streams genericclioptions.IOStreams, testSuites ginkgotest.TestSuites, ...) *cobra.Command
- func NewTestsCommand(streams genericclioptions.IOStreams) *cobra.Command
- type IngressControllerOptions
- type ObjectStorageOptions
- type RunOptions
- type ScyllaClusterOptions
- type TestFrameworkOptions
Constants ¶
View Source
const (
EnvVarPrefix = "SCYLLA_OPERATOR_TESTS_"
)
Variables ¶
View Source
var Suites = ginkgotest.TestSuites{ { Name: "all", Description: templates.LongDesc(` Runs all tests.`, ), DefaultParallelism: 42, }, { Name: "scylla-operator/conformance/parallel", Description: templates.LongDesc(` Tests that can be run in parallel. `), LabelFilter: fmt.Sprintf( "!%s && !%s && !%s", framework.SerialLabelName, framework.MultiDatacenterLabelName, framework.SupportedOnlyOnOpenShiftLabelName, ), DefaultParallelism: 42, }, { Name: "scylla-operator/conformance/parallel/openshift", Description: templates.LongDesc(` Tests that can be run in parallel on an OpenShift cluster. `), LabelFilter: fmt.Sprintf( "!%s && !%s && !%s", framework.SerialLabelName, framework.MultiDatacenterLabelName, framework.NotSupportedOnOpenShiftLabelName, ), DefaultParallelism: 42, }, { Name: "scylla-operator/conformance/serial", Description: templates.LongDesc(` Tests that must be run serially. `), LabelFilter: fmt.Sprintf( "%s && !%s", framework.SerialLabelName, framework.SupportedOnlyOnOpenShiftLabelName, ), DefaultParallelism: 1, }, { Name: "scylla-operator/conformance/multi-datacenter-parallel", Description: templates.LongDesc(` Tests for multi-datacenter setups that can be run in parallel. `), LabelFilter: fmt.Sprintf( "%s && !%s", framework.MultiDatacenterLabelName, framework.SupportedOnlyOnOpenShiftLabelName, ), DefaultParallelism: 42, }, }
Functions ¶
func NewRunCommand ¶
func NewRunCommand(streams genericclioptions.IOStreams, testSuites ginkgotest.TestSuites, userAgent string) *cobra.Command
func NewTestsCommand ¶
func NewTestsCommand(streams genericclioptions.IOStreams) *cobra.Command
Types ¶
type IngressControllerOptions ¶ added in v1.11.0
type ObjectStorageOptions ¶ added in v1.18.0
type ObjectStorageOptions struct {
ClusterObjectStorageSettings *framework.ClusterObjectStorageSettings
WorkerClusterObjectStorageSettings map[string]framework.ClusterObjectStorageSettings
// contains filtered or unexported fields
}
ObjectStorageOptions holds the options for object storage configuration in tests.
func NewObjectStorageOptions ¶ added in v1.18.0
func NewObjectStorageOptions() ObjectStorageOptions
func (*ObjectStorageOptions) AddFlags ¶ added in v1.18.0
func (oso *ObjectStorageOptions) AddFlags(cmd *cobra.Command)
func (*ObjectStorageOptions) Complete ¶ added in v1.18.0
func (oso *ObjectStorageOptions) Complete() error
func (*ObjectStorageOptions) Validate ¶ added in v1.18.0
func (oso *ObjectStorageOptions) Validate() error
type RunOptions ¶
type RunOptions struct {
genericclioptions.IOStreams
TestFrameworkOptions
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
TestSuites ginkgotest.TestSuites
SelectedSuite *ginkgotest.TestSuite
}
func NewRunOptions ¶
func NewRunOptions(streams genericclioptions.IOStreams, testSuites ginkgotest.TestSuites, userAgent string) RunOptions
func (*RunOptions) AddFlags ¶ added in v1.13.0
func (o *RunOptions) AddFlags(cmd *cobra.Command)
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
type ScyllaClusterOptions ¶ added in v1.12.0
type TestFrameworkOptions ¶
type TestFrameworkOptions struct {
genericclioptions.MultiDatacenterClientConfig
ObjectStorageOptions
ArtifactsDir string
CleanupPolicyUntyped string
CleanupPolicy framework.CleanupPolicyType
IngressController *IngressControllerOptions
ScyllaClusterOptionsUntyped *ScyllaClusterOptions
ScyllaDBVersion string
ScyllaDBManagerVersion string
ScyllaDBManagerAgentVersion string
ScyllaDBUpdateFrom string
ScyllaDBUpgradeFrom string
// contains filtered or unexported fields
}
func NewTestFrameworkOptions ¶
func NewTestFrameworkOptions(streams genericclioptions.IOStreams, userAgent string) *TestFrameworkOptions
func (*TestFrameworkOptions) AddFlags ¶
func (o *TestFrameworkOptions) AddFlags(cmd *cobra.Command)
func (*TestFrameworkOptions) Complete ¶
func (o *TestFrameworkOptions) Complete(args []string) error
func (*TestFrameworkOptions) Validate ¶
func (o *TestFrameworkOptions) Validate(args []string) error
Click to show internal directories.
Click to hide internal directories.