suite

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStepFixtureType

func GetStepFixtureType(t *testing.T, stepFixtureName string) clabernetestesthelper.Operation

GetStepFixtureType returns the Operation type of the given test step fixture file.

func GlobStepFixtures

func GlobStepFixtures(t *testing.T, stepIndex int) []string

GlobStepFixtures globs all fixtures for the given test step index and returns the filenames.

func LogStepDescr

func LogStepDescr(idx int, description string) string

LogStepDescr sends a pretty string to the test logger for a step starting.

func LogStepSuccess

func LogStepSuccess(idx int) string

LogStepSuccess sends a pretty string to the test logger for a step success.

func Run

func Run(t *testing.T, testName string, steps []Step, namespace string)

Run executes a clabernetes e2e test.

Types

type AssertObject

type AssertObject struct {
	Name                 string
	SkipDefaultNormalize bool
	NormalizeFuncs       []func(t *testing.T, objectData []byte) []byte
}

AssertObject represents an object that we are looking to assert the state of in a test -- the simplest form of this would just be the name of an object, but more complicated setups may also include custom normalization functions or other helpers.

type Step

type Step struct {
	Index         int
	Description   string
	AssertObjects map[string][]AssertObject
}

Step represents a single step in an e2e test.

type Steps

type Steps []Step

Steps is a slice of Step -- used for e2e tests.

Jump to

Keyboard shortcuts

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