test

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 11 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 FindFreePort

func FindFreePort(ip string) (uint32, error)

func GetFreePort

func GetFreePort() (int, error)

func RunSpecs added in v1.8.1

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

This section is empty.

Jump to

Keyboard shortcuts

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