Documentation ¶
Index ¶
- type Action
- type ActionVerb
- type GenericTestRunner
- type TestRunner
- func (r *TestRunner) AssertAction(t *testing.T, e Action) bool
- func (r *TestRunner) AssertCreateAction(t *testing.T, obj runtime.Object) bool
- func (r *TestRunner) AssertDeleteAction(t *testing.T, obj runtime.Object) bool
- func (r *TestRunner) AssertNoUnexpectedAction(t *testing.T)
- func (r *TestRunner) AssertUpdateAction(t *testing.T, subresource string, obj runtime.Object) bool
- func (r *TestRunner) Finalize(c controllerutil.Controller, v runtime.Object) error
- func (r *TestRunner) Reconcile(c controllerutil.Controller, v runtime.Object) error
- func (r *TestRunner) RegisterFixture(objs ...runtime.Object)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type ActionVerb ¶
type ActionVerb string
const ( ActionUpdate ActionVerb = "update" ActionCreate ActionVerb = "create" ActionDelete ActionVerb = "delete" )
func (ActionVerb) String ¶
func (a ActionVerb) String() string
type GenericTestRunner ¶
type GenericTestRunner[T runtime.Object] struct { *TestRunner }
func NewGenericTestRunner ¶
func NewGenericTestRunner[T runtime.Object]() *GenericTestRunner[T]
func (*GenericTestRunner[T]) Finalize ¶
func (r *GenericTestRunner[T]) Finalize(c controllerutil.GenericReconciler[T], v T) error
func (*GenericTestRunner[T]) Reconcile ¶
func (r *GenericTestRunner[T]) Reconcile(c controllerutil.GenericReconciler[T], v T) error
type TestRunner ¶
type TestRunner struct { Client *testingclient.Set CoreClient *corefake.Clientset Factory *client.InformerFactory Actions []*Action }
func NewTestRunner ¶
func NewTestRunner() *TestRunner
func (*TestRunner) AssertAction ¶
func (r *TestRunner) AssertAction(t *testing.T, e Action) bool
func (*TestRunner) AssertCreateAction ¶
func (*TestRunner) AssertDeleteAction ¶
func (*TestRunner) AssertNoUnexpectedAction ¶
func (r *TestRunner) AssertNoUnexpectedAction(t *testing.T)
func (*TestRunner) AssertUpdateAction ¶
func (*TestRunner) Finalize ¶
func (r *TestRunner) Finalize(c controllerutil.Controller, v runtime.Object) error
func (*TestRunner) Reconcile ¶
func (r *TestRunner) Reconcile(c controllerutil.Controller, v runtime.Object) error
func (*TestRunner) RegisterFixture ¶
func (r *TestRunner) RegisterFixture(objs ...runtime.Object)
Click to show internal directories.
Click to hide internal directories.