testutils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFile

func GetFile(path string) []byte

func NewSecret

func NewSecret(name, namespace string, keys bool, data map[string][]byte) *corev1.Secret

func UntarFile

func UntarFile(path, name string) error

Types

type MockFilesystem added in v1.2.0

type MockFilesystem struct {
	ExpectedConfigmap string
	ExpectedSecret    string
	// contains filtered or unexported fields
}

func NewMockFilesystem added in v1.2.0

func NewMockFilesystem(temporaryDirectory, caseFile string) *MockFilesystem

func (*MockFilesystem) ReadDir added in v1.2.0

func (fs *MockFilesystem) ReadDir(dirpath string) ([]fs.DirEntry, error)

func (*MockFilesystem) ReadFile added in v1.2.0

func (fs *MockFilesystem) ReadFile(filepath string) ([]byte, error)

type NotFoundError added in v1.2.0

type NotFoundError struct {
	// contains filtered or unexported fields
}

func (*NotFoundError) Error added in v1.2.0

func (e *NotFoundError) Error() string

func (*NotFoundError) Is added in v1.2.0

func (e *NotFoundError) Is(target error) bool

type TestFile added in v1.2.0

type TestFile struct {
	Path string `json:"path"`
	Data string `json:"data"`
}

Jump to

Keyboard shortcuts

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