integtest

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdmissionResponse

type AdmissionResponse struct {
	admissionv1.AdmissionResponse
}

AdmissionResponse is a decorator for admissionv1.AdmissionResponse

func (*AdmissionResponse) PatchMaps

func (a *AdmissionResponse) PatchMaps() (result []map[string]string, err error)

PatchMaps returns the patches as maps

type Interface

type Interface interface {
	Invoke(obj, oldObj runtime.Object) (*AdmissionResponse, error)
	InvokeFromFile(objPath, oldObjPath string) (*AdmissionResponse, error)
}

Interface is the interface for an integration test fixture

func NewMutation

func NewMutation(defaultNamespace string, mutators ...mutation.Mutator) (Interface, error)

NewMutation creates a new Interface for mutation testing

func NewValidation

func NewValidation(defaultNamespace string, validators ...validation.Validator) (Interface, error)

NewValidation creates a new Interface for validation testing

Jump to

Keyboard shortcuts

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