Documentation ¶
Index ¶
- Constants
- func RunCode(m *testing.M, e *Env) int
- type ActiveEnv
- type DiffingSandbox
- type Env
- type Sandbox
- func (s Sandbox) Cleanup()
- func (s Sandbox) Create(obj client.Object) error
- func (s Sandbox) Get(o client.Object) error
- func (s Sandbox) List(list client.ObjectList, labels map[string]string) error
- func (s Sandbox) StartManager(t *testing.T, maker func(ctrl.Manager) error)
- func (s Sandbox) Update(obj client.Object) error
Constants ¶
View Source
const (
DefaultNsName = "crdb-test-"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiffingSandbox ¶
type DiffingSandbox struct { Sandbox // contains filtered or unexported fields }
func NewDiffingSandbox ¶
func NewDiffingSandbox(t *testing.T, env *ActiveEnv) DiffingSandbox
func (*DiffingSandbox) Diff ¶
func (ds *DiffingSandbox) Diff() (string, error)
type Env ¶
type Env struct { envtest.Environment Scheme *apiruntime.Scheme }
func CreateActiveEnvForTest ¶ added in v1.7.13
func NewEnv ¶
func NewEnv(builder apiruntime.SchemeBuilder, crds ...string) *Env
func (*Env) StopAndExit ¶
type Sandbox ¶
func (Sandbox) StartManager ¶
Click to show internal directories.
Click to hide internal directories.