testing

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoreV1ObjectFromJSON

func CoreV1ObjectFromJSON(t *testing.T, doc string) runtime.Object

CoreV1ObjectFromJSON decodes a Kubernetes Core v1 object from its JSON representation. Panics in case of errors.

func FakeClusterRole

func FakeClusterRole() *rbacv1.ClusterRole

FakeClusterRole creates a fake role for testing

func StewardObjectFromJSON

func StewardObjectFromJSON(t *testing.T, doc string) runtime.Object

StewardObjectFromJSON decodes a Steward object from its JSON representation. Panics in case of errors.

func TektonObjectFromJSON

func TektonObjectFromJSON(t *testing.T, doc string) runtime.Object

TektonObjectFromJSON decodes a Tekton Pipeline object from its JSON representation. Panics in case of errors.

func TimeEqual

func TimeEqual(expectedAsRFC3339 string, actual metav1.Time) cmp.Comparison

TimeEqual compares an actual "k8s.io/apimachinery/pkg/apis/meta/v1".Time to an RFC3339-formatted timestamp string. It succeeds of both timestamps denote the same instant.

Types

This section is empty.

Jump to

Keyboard shortcuts

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