run

package
v0.0.0-...-8bba6c1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunCommand

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

Types

type RunSuiteFlags

type RunSuiteFlags struct {
	GinkgoRunSuiteOptions   *testginkgo.GinkgoRunSuiteOptions
	TestSuiteSelectionFlags *suiteselection.TestSuiteSelectionFlags
	OutputFlags             *iooptions.OutputFlags
	AvailableSuites         []*testginkgo.TestSuite

	FromRepository     string
	ProviderTypeOrJSON string

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

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

TODO collapse this with cmd_runsuite

func NewRunSuiteFlags

func NewRunSuiteFlags(streams genericclioptions.IOStreams, fromRepository string, availableSuites []*testginkgo.TestSuite) *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.

func (*RunSuiteFlags) ToOptions

func (f *RunSuiteFlags) ToOptions(args []string) (*RunSuiteOptions, error)

type RunSuiteOptions

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

	FromRepository    string
	CloudProviderJSON string

	CloseFn iooptions.CloseFunc
	genericclioptions.IOStreams
}

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