Documentation ¶
Index ¶
- func AssertRetry(t *testing.T, err error)
- type Action
- type ActionVerb
- type Controller
- type TestRunner
- func (r *TestRunner) AssertAction(t *testing.T, expect 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 controllerbase.ControllerBase, target runtime.Object) error
- func (r *TestRunner) Reconcile(c controllerbase.ControllerBase, target runtime.Object) error
- func (r *TestRunner) RegisterFixtures(objs ...runtime.Object)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertRetry ¶
Types ¶
type Action ¶
type Action struct { Verb ActionVerb Subresource string GroupVersionResource schema.GroupVersionResource Object runtime.Object Name string Namespace string Visited bool }
type ActionVerb ¶
type ActionVerb string
const ( ActionUpdate ActionVerb = "update" ActionCreate ActionVerb = "create" ActionDelete ActionVerb = "delete" )
func (ActionVerb) String ¶
func (a ActionVerb) String() string
type Controller ¶
type Controller interface { }
type TestRunner ¶
type TestRunner struct { Now time.Time Actions []*Action Client *testingclient.Set CoreClient *k8sfake.Clientset ThirdPartyClient *testingthirdpartyclient.Set ThirdPartyInformerFactory *thirdpartyclient.InformerFactory }
func NewTestRunner ¶
func NewTestRunner() *TestRunner
func (*TestRunner) AssertAction ¶
func (r *TestRunner) AssertAction(t *testing.T, expect 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 controllerbase.ControllerBase, target runtime.Object) error
func (*TestRunner) Reconcile ¶
func (r *TestRunner) Reconcile(c controllerbase.ControllerBase, target runtime.Object) error
func (*TestRunner) RegisterFixtures ¶
func (r *TestRunner) RegisterFixtures(objs ...runtime.Object)
Click to show internal directories.
Click to hide internal directories.