Documentation ¶
Index ¶
- type Tester
- func (t *Tester) ClusterScope() *Tester
- func (t *Tester) TestContext() api.Context
- func (t *Tester) TestCreate(valid runtime.Object, invalid ...runtime.Object)
- func (t *Tester) TestCreateDiscardsObjectNamespace(valid runtime.Object)
- func (t *Tester) TestCreateGeneratesName(valid runtime.Object)
- func (t *Tester) TestCreateGeneratesNameReturnsServerTimeout(valid runtime.Object)
- func (t *Tester) TestCreateHasMetadata(valid runtime.Object)
- func (t *Tester) TestCreateIgnoresContextNamespace(valid runtime.Object)
- func (t *Tester) TestCreateIgnoresMismatchedNamespace(valid runtime.Object)
- func (t *Tester) TestCreateInvokesValidation(invalid ...runtime.Object)
- func (t *Tester) TestCreateRejectsMismatchedNamespace(valid runtime.Object)
- func (t *Tester) TestCreateResetsUserData(valid runtime.Object)
- func (t *Tester) TestDelete(createFn func() runtime.Object, wasGracefulFn func() bool, ...)
- func (t *Tester) TestDeleteGraceful(createFn func() runtime.Object, expectedGrace int64, wasGracefulFn func() bool)
- func (t *Tester) TestDeleteGracefulHasDefault(existing runtime.Object, expectedGrace int64, wasGracefulFn func() bool)
- func (t *Tester) TestDeleteGracefulUsesZeroOnNil(existing runtime.Object, expectedGrace int64)
- func (t *Tester) TestDeleteInvokesValidation(invalid ...runtime.Object)
- func (t *Tester) TestDeleteNoGraceful(createFn func() runtime.Object, wasGracefulFn func() bool)
- func (t *Tester) TestDeleteNonExist(createFn func() runtime.Object)
- func (t *Tester) TestGet(obj runtime.Object)
- func (t *Tester) TestGetDifferentNamespace(obj runtime.Object)
- func (t *Tester) TestGetFound(obj runtime.Object)
- func (t *Tester) TestGetMimatchedNamespace(obj runtime.Object)
- func (t *Tester) TestGetNotFound(obj runtime.Object)
- func (t *Tester) TestNamespace() string
- func (t *Tester) TestUpdate(valid runtime.Object, existing, older runtime.Object)
- func (t *Tester) TestUpdateFailsOnNotFound(valid runtime.Object)
- func (t *Tester) TestUpdateFailsOnVersion(older runtime.Object)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tester ¶
func (*Tester) ClusterScope ¶
func (*Tester) TestContext ¶
TestContext returns a namespaced context that will be used when making storage calls. Namespace is determined by TestNamespace()
func (*Tester) TestCreate ¶
func (*Tester) TestCreateDiscardsObjectNamespace ¶
func (*Tester) TestCreateGeneratesName ¶
func (*Tester) TestCreateGeneratesNameReturnsServerTimeout ¶
func (*Tester) TestCreateHasMetadata ¶
func (*Tester) TestCreateIgnoresContextNamespace ¶
func (*Tester) TestCreateIgnoresMismatchedNamespace ¶
func (*Tester) TestCreateInvokesValidation ¶
func (*Tester) TestCreateRejectsMismatchedNamespace ¶
func (*Tester) TestCreateResetsUserData ¶
func (*Tester) TestDelete ¶
func (*Tester) TestDeleteGraceful ¶
func (*Tester) TestDeleteGracefulHasDefault ¶
func (*Tester) TestDeleteGracefulUsesZeroOnNil ¶
func (*Tester) TestDeleteInvokesValidation ¶
func (*Tester) TestDeleteNoGraceful ¶
func (*Tester) TestDeleteNonExist ¶
func (*Tester) TestGetDifferentNamespace ¶
TestGetDifferentNamespace ensures same-name objects in different namespaces do not clash
func (*Tester) TestGetFound ¶
func (*Tester) TestGetMimatchedNamespace ¶
func (*Tester) TestGetNotFound ¶
func (*Tester) TestNamespace ¶
TestNamespace returns the namespace that will be used when creating contexts. Returns NamespaceNone for cluster-scoped objects.
func (*Tester) TestUpdate ¶
func (*Tester) TestUpdateFailsOnNotFound ¶
func (*Tester) TestUpdateFailsOnVersion ¶
Click to show internal directories.
Click to hide internal directories.