Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceCreator ¶
NamespaceCreator has methods required to create k8s ns.
type TestRunner ¶
type TestRunner struct {
// contains filtered or unexported fields
}
TestRunner executes registered tests
func NewTestRunner ¶
func NewTestRunner(log *logrus.Entry, nsCreator NamespaceCreator, tests map[string]UpgradeTest, maxConcurrencyLevel int, verbose bool) (*TestRunner, error)
NewTestRunner is a constructor for TestRunner
func (*TestRunner) ExecuteTests ¶
func (r *TestRunner) ExecuteTests(stopCh <-chan struct{}) error
ExecuteTests executes TestResources method for each registered test. Test are run in parallel with given maxConcurrencyLevel
func (*TestRunner) PrepareData ¶
func (r *TestRunner) PrepareData(stopCh <-chan struct{}) error
PrepareData executes CreateResources method for each registered test. Test are run in parallel with given maxConcurrencyLevel
type UpgradeTest ¶
type UpgradeTest interface { CreateResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error TestResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error }
UpgradeTest allows to execute test in a generic way
Click to show internal directories.
Click to hide internal directories.