run

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunCommand

func NewRunCommand(streams genericclioptions.IOStreams, internalExtension *extension.Extension) *cobra.Command

Types

type RunSuiteFlags

type RunSuiteFlags struct {
	GinkgoRunSuiteOptions   *testginkgo.GinkgoRunSuiteOptions
	TestSuiteSelectionFlags *suiteselection.TestSuiteSelectionFlags
	OutputFlags             *iooptions.OutputFlags

	FromRepository     string
	ProviderTypeOrJSON string

	// Passed to the test process if set
	UpgradeSuite string
	ToImage      string
	TestOptions  []string

	genericclioptions.IOStreams
}

TODO collapse this with cmd_runsuite

func NewRunSuiteFlags

func NewRunSuiteFlags(streams genericclioptions.IOStreams, fromRepository string) *RunSuiteFlags

func (*RunSuiteFlags) BindFlags

func (f *RunSuiteFlags) BindFlags(flags *pflag.FlagSet)

func (*RunSuiteFlags) SetIOStreams

func (f *RunSuiteFlags) SetIOStreams(streams genericclioptions.IOStreams)

func (*RunSuiteFlags) SuiteWithKubeTestInitializationPreSuite

func (f *RunSuiteFlags) SuiteWithKubeTestInitializationPreSuite() (*clusterdiscovery.ClusterConfiguration, error)

SuiteWithKubeTestInitializationPreSuite

  1. invokes the Kube suite in order to populate data from the environment for the CSI suite (originally, but now everything).
  2. ensures that the suite filters out tests from providers that aren't relevant (see exutilcluster.ClusterConfig.MatchFn) by loading the provider info from the cluster or flags, including API groups and feature gates.

func (*RunSuiteFlags) ToOptions

func (f *RunSuiteFlags) ToOptions(args []string, availableSuites []*testginkgo.TestSuite, internalExtension *extension.Extension) (*RunSuiteOptions, error)

type RunSuiteOptions

type RunSuiteOptions struct {
	GinkgoRunSuiteOptions *testginkgo.GinkgoRunSuiteOptions
	Suite                 *testginkgo.TestSuite

	FromRepository    string
	CloudProviderJSON string

	CloseFn iooptions.CloseFunc
	genericclioptions.IOStreams

	// HypervisorConfig contains SSH configuration for hypervisor-based recovery operations
	// If set, will run recovery tests that require the hypervisor-based recovery, such as
	// the node replacement test in the two_node recovery suite.
	HypervisorConfig *clusterdiscovery.HypervisorConfig

	// ClusterConfig contains cluster-specific configuration for filtering tests
	ClusterConfig *clusterdiscovery.ClusterConfiguration

	// Extension is the internal origin extension of its own test specs.
	Extension *extension.Extension
}

TODO collapse this with cmd_runsuite

func (*RunSuiteOptions) Run

func (o *RunSuiteOptions) Run(ctx context.Context) error

func (*RunSuiteOptions) TestCommandEnvironment

func (o *RunSuiteOptions) TestCommandEnvironment() []string

Jump to

Keyboard shortcuts

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