Documentation ¶
Index ¶
- func ExecuteSuite(iterCtx context.Context, num int, suites map[string][]suites.Interface, ...)
- type FunctionalSuiteRunner
- func (sr *FunctionalSuiteRunner) Close()
- func (sr *FunctionalSuiteRunner) IsStopped() bool
- func (sr *FunctionalSuiteRunner) NoCleaning()
- func (sr *FunctionalSuiteRunner) RunFunctionalSuites(suites []suites.Interface)
- func (sr *FunctionalSuiteRunner) ShouldClean(suiteRes TestResult) (res bool)
- func (sr *FunctionalSuiteRunner) Stop()
- type Runner
- type SuiteRunner
- type TestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteSuite ¶
func ExecuteSuite(iterCtx context.Context, num int, suites map[string][]suites.Interface, suite suites.Interface, sr *SuiteRunner, scDB *store.StorageClassDB, c chan os.Signal)
ExecuteSuite runs the test suite
Types ¶
type FunctionalSuiteRunner ¶
type FunctionalSuiteRunner struct { *Runner ScDB *store.StorageClassDB // contains filtered or unexported fields }
FunctionalSuiteRunner contains configuration for running functional test suite
func NewFunctionalSuiteRunner ¶
func NewFunctionalSuiteRunner(configPath, namespace string, timeout int, noCleanup, noCleanupOnFail bool, noreport bool, scDB *store.StorageClassDB, ) *FunctionalSuiteRunner
NewFunctionalSuiteRunner creates functional suite runner instance
func (*FunctionalSuiteRunner) Close ¶
func (sr *FunctionalSuiteRunner) Close()
Close logs the status of test suite run
func (*FunctionalSuiteRunner) IsStopped ¶
func (sr *FunctionalSuiteRunner) IsStopped() bool
IsStopped returns true if test suite run has stopped
func (*FunctionalSuiteRunner) NoCleaning ¶
func (sr *FunctionalSuiteRunner) NoCleaning()
NoCleaning sets noCleaning flag to true
func (*FunctionalSuiteRunner) RunFunctionalSuites ¶
func (sr *FunctionalSuiteRunner) RunFunctionalSuites(suites []suites.Interface)
RunFunctionalSuites runs functional test suites
func (*FunctionalSuiteRunner) ShouldClean ¶
func (sr *FunctionalSuiteRunner) ShouldClean(suiteRes TestResult) (res bool)
ShouldClean calls common clean function
func (*FunctionalSuiteRunner) Stop ¶
func (sr *FunctionalSuiteRunner) Stop()
Stop stops test suite run
type Runner ¶
type Runner struct { Config *rest.Config DriverNamespace string KubeClient *k8sclient.KubeClient Timeout int NoCleanupOnFail bool SucceededSuites float64 ObserverType observer.Type sync.RWMutex // contains filtered or unexported fields }
Runner contains configuration needed to run functional and perf test runners
type SuiteRunner ¶
type SuiteRunner struct { *Runner CoolDownPeriod int StartHookPath string ReadyHookPath string FinishHookPath string DriverNSHealthMetrics string NoMetrics bool NoReport bool IterationNum int Duration time.Duration ScDBs []*store.StorageClassDB // contains filtered or unexported fields }
SuiteRunner contains configuration to run performance test suite
func NewSuiteRunner ¶
func NewSuiteRunner(configPath, driverNs, startHook, readyHook, finishHook, observerType, longevity string, driverNSHealthMetrics string, timeout int, cooldown int, sequentialExecution, noCleanup, noCleanupOnFail, noMetrics bool, noReport bool, scDBs []*store.StorageClassDB, ) *SuiteRunner
NewSuiteRunner creates and returns SuiteRunner
func (*SuiteRunner) IsStopped ¶
func (sr *SuiteRunner) IsStopped() bool
IsStopped returns true if test suite run has stopped
func (*SuiteRunner) NoCleaning ¶
func (sr *SuiteRunner) NoCleaning()
NoCleaning sets noCleaning flag to true
func (*SuiteRunner) RunSuites ¶
func (sr *SuiteRunner) RunSuites(suites map[string][]suites.Interface)
RunSuites runs test suites
func (*SuiteRunner) ShouldClean ¶
func (sr *SuiteRunner) ShouldClean(suiteRes TestResult) (res bool)
ShouldClean calls common clean function
type TestResult ¶
type TestResult string
TestResult stores test result
const ( // SUCCESS represent success result SUCCESS TestResult = "SUCCESS" // FAILURE represents failure result FAILURE TestResult = "FAILURE" // Threshold represents threshold value Threshold = 0.9 )