steps

package
v0.0.0-...-bf1e037 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 31 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 []interface{}
}

Resource -

func GetTestResources

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

GetTestResources -- parse values file

func GetTestResourcesApex

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

GetTestResourcesApex -- 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

func (*Runner) RunStepClient

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

RunStepClient - runs a step

type Scenario

type Scenario struct {
	Scenario   string     `json:"scenario" yaml:"scenario"`
	Paths      []string   `json:"paths" yaml:"paths"`
	Tags       []string   `json:"tags" yaml:"tags"`
	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 -

func (*Step) AuthorizationV1Resources

func (step *Step) AuthorizationV1Resources(storageType, driver, port, proxyHost, driverNamespace string) error

AuthorizationV1Resources creates resources using karavictl for V1 versions of Authorization Proxy Server

func (*Step) AuthorizationV2Resources

func (step *Step) AuthorizationV2Resources(storageType, driver, driverNamespace, proxyHost, port, csmTenantName, configVersion string) error

AuthorizationV2Resources creates resources using CRs and dellctl for V2 versions of Authorization Proxy Server

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