steps

package
v0.0.0-...-542d3fc Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StepRunnerInit

func StepRunnerInit(runner *Runner, ctrlClient client.Client, clientSet *kubernetes.Clientset)

StepRunnerInit -

Types

type CustomTest

type CustomTest struct {
	Name string   `json:"name" yaml:"name"`
	Run  []string `json:"run" yaml:"run"`
}

CustomTest -

type Resource

type Resource struct {
	Scenario       Scenario
	CustomResource []csmv1.ContainerStorageModule
}

Resource -

func GetTestResources

func GetTestResources(valuesFilePath string) ([]Resource, error)

GetTestResources -- parse values file

type Runner

type Runner struct {
	Definitions []StepDefinition
}

Runner -

func (*Runner) RunStep

func (runner *Runner) RunStep(stepName string, res Resource) error

RunStep - runs a step

type Scenario

type Scenario struct {
	Scenario   string     `json:"scenario" yaml:"scenario"`
	Paths      []string   `json:"paths" yaml:"paths"`
	Modules    []string   `json:"modules" yaml:"modules"`
	Steps      []string   `json:"steps" yaml:"steps"`
	CustomTest CustomTest `json:"customTest,omitempty" yaml:"customTest"`
}

Scenario -

type Step

type Step struct {
	// contains filtered or unexported fields
}

Step -

type StepDefinition

type StepDefinition struct {
	Handler reflect.Value
	Expr    *regexp.Regexp
}

StepDefinition - definition of a step

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL