Documentation
¶
Index ¶
- Constants
- Variables
- func CreateKillPodTestStep(wr io.Writer, opts *Options) (err error)
- func CreateScalingTestStep(stepWriter, assertWriter io.Writer, opts *Options) (err error)
- func CreateSleepTestStep(wr io.Writer, opts *Options) (err error)
- func CreateSteadyStateStep(wr io.Writer, opts *Options) (err error)
- type Iteration
- type Options
Constants ¶
View Source
const ( ScalingTestStep = iota KillPodTestStep SleepTestStep LastTestStep = SleepTestStep FirstTestStep = ScalingTestStep )
Variables ¶
View Source
var DefaultTestStepWeight = []int{1, 2, 5}
View Source
var KillPodTemplate = `` /* 161-byte string literal not displayed */
View Source
var KuttlAssertTemplate = `` /* 436-byte string literal not displayed */
View Source
var SleepTemplate = `
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: {{ .Timeout }}
commands:
- command: sleep {{ .SleepTime }}
`
View Source
var SteadyStateTemplate = `` /* 198-byte string literal not displayed */
View Source
var VerticaCRDTemplate = `` /* 224-byte string literal not displayed */
Functions ¶
func CreateKillPodTestStep ¶
CreateKillPodTestStep will generate a kuttl test step for killing a random number of pods
func CreateScalingTestStep ¶
CreateScalingTestStep will generate kuttl test step for random scaling
func CreateSleepTestStep ¶
CreateSleepTestStep will generate a kuttl test step for sleeping a random amount of time
Types ¶
type Iteration ¶
type Iteration struct {
// contains filtered or unexported fields
}
func MakeIteration ¶
func (*Iteration) CreateIteration ¶
type Options ¶
type Options struct { OutputDir string StepCount int StepTypeWeight []int ScriptDir string MinPodsToKill int MaxPodsToKill int MinSleepTime int MaxSleepTime int MinSubclusters int MaxSubclusters int MinPods int MaxPods int Name string Namespace string SteadyStateTimeout int }
Options contains parameters to influence the behavior of the kuttl step generation
func MakeDefaultOptions ¶
func MakeDefaultOptions() *Options
Click to show internal directories.
Click to hide internal directories.