testutil

package
v0.0.0-...-cb1a7a4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertErrorResponse

func AssertErrorResponse(t *testing.T, expected errawr.Error, resp *http.Response) bool

func NewMockKubernetesClient

func NewMockKubernetesClient(initial ...runtime.Object) kubernetes.Interface

func NewMockTektonKubernetesClient

func NewMockTektonKubernetesClient(initial ...runtime.Object) tekton.Interface

func RequireErrorResponse

func RequireErrorResponse(t *testing.T, expected errawr.Error, resp *http.Response)

func WithStepMetadataSchemaRegistry

func WithStepMetadataSchemaRegistry(t *testing.T, metadataPath string, fn func(reg validation.SchemaRegistry))

func WithStepMetadataServer

func WithStepMetadataServer(t *testing.T, metadataPath string, fn func(ts *httptest.Server))

func WithVaultClient

func WithVaultClient(t *testing.T, fn func(client *api.Client))

func WithVaultServer

func WithVaultServer(t *testing.T, fn func(addr, token string))

func WithVaultServerOnAddress

func WithVaultServerOnAddress(t *testing.T, addr string, fn func(addr, token string))

Types

This section is empty.

Jump to

Keyboard shortcuts

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