Version: v0.13.0 Latest Latest

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

Go to latest
Published: May 29, 2015 License: Apache-2.0 Imports: 9 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type Tester

type Tester struct {
	// contains filtered or unexported fields

func New

func New(t *testing.T, storage rest.Storage, storageError injectErrorFunc) *Tester

func (*Tester) ClusterScope

func (t *Tester) ClusterScope() *Tester

func (*Tester) TestCreate

func (t *Tester) TestCreate(valid runtime.Object, invalid ...runtime.Object)

func (*Tester) TestCreateGeneratesName

func (t *Tester) TestCreateGeneratesName(valid runtime.Object)

func (*Tester) TestCreateGeneratesNameReturnsServerTimeout

func (t *Tester) TestCreateGeneratesNameReturnsServerTimeout(valid runtime.Object)

func (*Tester) TestCreateHasMetadata

func (t *Tester) TestCreateHasMetadata(valid runtime.Object)

func (*Tester) TestCreateInvokesValidation

func (t *Tester) TestCreateInvokesValidation(invalid ...runtime.Object)

func (*Tester) TestCreateRejectsMismatchedNamespace

func (t *Tester) TestCreateRejectsMismatchedNamespace(valid runtime.Object)

func (*Tester) TestCreateRejectsNamespace

func (t *Tester) TestCreateRejectsNamespace(valid runtime.Object)

func (*Tester) TestCreateResetsUserData

func (t *Tester) TestCreateResetsUserData(valid runtime.Object)

func (*Tester) TestDelete added in v0.11.0

func (t *Tester) TestDelete(createFn func() runtime.Object, wasGracefulFn func() bool, invalid ...runtime.Object)

func (*Tester) TestDeleteGraceful

func (t *Tester) TestDeleteGraceful(createFn func() runtime.Object, expectedGrace int64, wasGracefulFn func() bool)

func (*Tester) TestDeleteGracefulHasDefault

func (t *Tester) TestDeleteGracefulHasDefault(existing runtime.Object, expectedGrace int64, wasGracefulFn func() bool)

func (*Tester) TestDeleteGracefulUsesZeroOnNil

func (t *Tester) TestDeleteGracefulUsesZeroOnNil(existing runtime.Object, expectedGrace int64)

func (*Tester) TestDeleteInvokesValidation added in v0.11.0

func (t *Tester) TestDeleteInvokesValidation(invalid ...runtime.Object)

func (*Tester) TestDeleteNoGraceful

func (t *Tester) TestDeleteNoGraceful(createFn func() runtime.Object, wasGracefulFn func() bool)

func (*Tester) TestDeleteNonExist added in v0.11.0

func (t *Tester) TestDeleteNonExist(createFn func() runtime.Object)

Source Files

Jump to

Keyboard shortcuts

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