Documentation
¶
Index ¶
- func NewRunCommand(streams genericclioptions.IOStreams, internalExtension *extension.Extension) *cobra.Command
- type RunSuiteFlags
- func (f *RunSuiteFlags) BindFlags(flags *pflag.FlagSet)
- func (f *RunSuiteFlags) SetIOStreams(streams genericclioptions.IOStreams)
- func (f *RunSuiteFlags) SuiteWithKubeTestInitializationPreSuite() (*clusterdiscovery.ClusterConfiguration, error)
- func (f *RunSuiteFlags) ToOptions(args []string, availableSuites []*testginkgo.TestSuite, ...) (*RunSuiteOptions, error)
- type RunSuiteOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRunCommand ¶
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
- invokes the Kube suite in order to populate data from the environment for the CSI suite (originally, but now everything).
- 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) TestCommandEnvironment ¶
func (o *RunSuiteOptions) TestCommandEnvironment() []string
Click to show internal directories.
Click to hide internal directories.