Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertAction ¶
func AssertAction(t *testing.T, expected, actual kubetesting.Action)
AssertAction will assert that expected action should be equal with actual action NOTE(liubog2008): now only create, update and patch actions will assert content of action.
func AssertActionCounts ¶
AssertActionCounts can count all kinds of actions and compare with expected count
func AssertActions ¶
func AssertActions(t *testing.T, expected, actual []kubetesting.Action, ignored []VerbAndResource)
AssertActions will assert a collection of actions Some unimportant actual actions can be filtered by field "ignored"
Types ¶
type VerbAndResource ¶
type VerbAndResource struct { // Verb defines action verb Verb string // Resource defines action resource Resource string }
VerbAndResource defines action verb and resource
Click to show internal directories.
Click to hide internal directories.