test

package
v2.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomResourceDir = filepath.Join("deployments", "charts", "kuma", "crds")

CustomResourceDir is the path from the top of the Kuma repository to the directory containing the Kuma CRD YAML files.

View Source
var LabelBuildCheck = ginkgo.Label("build_check")

LabelBuildCheck this is for tests that check that the build is correct (some tests rely on build flags to be set)

Functions

func EntriesAsFolder added in v2.10.9

func EntriesAsFolder(folder string) []ginkgo.TableEntry

EntriesAsFolder returns all folders in the folder as gingko table entries this makes it easier to add test by only adding input and golden files

func EntriesForFolder

func EntriesForFolder(folder string, pathPrefix ...string) []ginkgo.TableEntry

EntriesForFolder returns all files in the folder as gingko table entries for files *.input.yaml this makes it easier to add test by only adding input and golden files if you prefix the file with a `F` we'll focus this specific test

func FindFreePort

func FindFreePort(ip string) (uint32, error)

func GetFreePort

func GetFreePort() (int, error)

func ParseDuration

func ParseDuration(duration string) *k8s.Duration

func RunE2ESpecs

func RunE2ESpecs(t *testing.T, description string, configModificationFunctions ...func(config *framework.E2eConfig))

func RunSpecs

func RunSpecs(t *testing.T, description string)

RunSpecs wraps ginkgo+gomega test suite initialization.

func Within

func Within(timeout time.Duration, task func()) func()

Within returns a function that executes the given test task in a dedicated goroutine, asserting that it must complete within the given timeout.

See https://github.com/onsi/ginkgo/blob/v2/docs/MIGRATING_TO_V2.md#removed-async-testing

Types

type Clock

type Clock struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewClock

func NewClock(t time.Time) *Clock

func (*Clock) Add

func (c *Clock) Add(duration time.Duration)

func (*Clock) Now

func (c *Clock) Now() time.Time

Jump to

Keyboard shortcuts

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