test

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGinkgor added in v0.4.3

func NewGinkgor() logr.Logger

NewGinkgor creates a new logr.Logger logging to GinkgoWriter. Log messages are displayed when a test fails but can optionally be displayed always by passing `-v` to ginkgo.

Verbosity is hard-coded to 3, enabling pkg/client request/response logging.

func ObjectTests added in v0.4.1

func ObjectTests(o types.Object, hooks ...interface{})

ObjectTests contains the logic to test any Object implementation with the hooks it implements, checking * if the Object actually implements the interface of the hook * if the Object has an identifier field * calling the hook function with incomplete contexts gives none or the correct error (meaning the error is handled correctly)

func RandomHostname

func RandomHostname() string

RandomHostname generates a random hostname, useful for e2e tests and primarily used there.

func RandomIdentifier added in v0.4.5

func RandomIdentifier() string

generates random identifier similar to engine identifiers

func Seed added in v0.5.2

func Seed(seed int64)

func TestResourceName

func TestResourceName() string

TestResourceName generates a name suitable for e2e test resources.

Types

This section is empty.

Jump to

Keyboard shortcuts

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