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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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