Documentation
¶
Index ¶
- Variables
- func EntriesAsFolder(folder string) []ginkgo.TableEntry
- func EntriesForFolder(folder string, pathPrefix ...string) []ginkgo.TableEntry
- func FindFreePort(ip string) (uint32, error)
- func GetFreePort() (int, error)
- func ParseDuration(duration string) *k8s.Duration
- func RunE2ESpecs(t *testing.T, description string, ...)
- func RunSpecs(t *testing.T, description string)
- func Within(timeout time.Duration, task func()) func()
- type Clock
Constants ¶
This section is empty.
Variables ¶
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.
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 GetFreePort ¶
func ParseDuration ¶
func RunE2ESpecs ¶
func Within ¶
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