e2e

package
v0.11.129 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertByContains

func AssertByContains(i *Task) error

func AssertByError

func AssertByError(i *Task) error

func AssertByExitCode

func AssertByExitCode(i *Task) error

func AssertByOutputJSON

func AssertByOutputJSON(i *Task) error

func AssertByOutputString

func AssertByOutputString(i *Task) error

func AssertCustomState

func AssertCustomState(dir string, expected *scheduler.PipelineState) func(*Task) error

Types

type Output

type Output struct {
	ExitCode int
	Output   string
	Error    string
	Contains []string
}

type Task

type Task struct {
	Name          string
	Command       string
	Retries       int
	Args          []string
	Env           []string
	Expected      Output
	Actual        Output
	SkipJSONNodes []string
	Asserts       []func(*Task) error
}

func (*Task) Run

func (s *Task) Run() error

type Workflow

type Workflow struct {
	Name  string
	Steps []Task
}

func (*Workflow) Run

func (w *Workflow) Run() error

type WorkflowError

type WorkflowError struct {
	StepName     string
	WorkflowName string
	Err          error
}

func (*WorkflowError) Error

func (e *WorkflowError) Error() string

Jump to

Keyboard shortcuts

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