Documentation ¶
Index ¶
- func SourceCRDMetadataTestHelperWithChannelTestRunner(t *testing.T, sourceTestRunner testlib.ComponentsTestRunner, ...)
- func SourceCRDRBACTestHelperWithComponentsTestRunner(t *testing.T, sourceTestRunner testlib.ComponentsTestRunner, ...)
- func SourceCRDRegistryTestHelperWithChannelTestRunner(t *testing.T, sourceTestRunner testlib.ComponentsTestRunner, ...)
- func SourceStatusTestHelperWithComponentsTestRunner(t *testing.T, componentsTestRunner testlib.ComponentsTestRunner, ...)
- func ValidateRBAC(st *testing.T, client *testlib.Client, object metav1.TypeMeta)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SourceCRDMetadataTestHelperWithChannelTestRunner ¶
func SourceCRDMetadataTestHelperWithChannelTestRunner( t *testing.T, sourceTestRunner testlib.ComponentsTestRunner, options ...testlib.SetupClientOption, )
func SourceCRDRBACTestHelperWithComponentsTestRunner ¶ added in v0.21.0
func SourceCRDRBACTestHelperWithComponentsTestRunner( t *testing.T, sourceTestRunner testlib.ComponentsTestRunner, options ...testlib.SetupClientOption, )
The test checks for the following in this order:
- Find cluster roles that match these criteria - a. Has label duck.knative.dev/source: "true", b. Has the eventing source in Resources for a Policy Rule, and c. Has all the expected verbs (get, list, watch)
func SourceCRDRegistryTestHelperWithChannelTestRunner ¶ added in v0.21.0
func SourceCRDRegistryTestHelperWithChannelTestRunner( t *testing.T, sourceTestRunner testlib.ComponentsTestRunner, options ...testlib.SetupClientOption, )
func SourceStatusTestHelperWithComponentsTestRunner ¶
func SourceStatusTestHelperWithComponentsTestRunner( t *testing.T, componentsTestRunner testlib.ComponentsTestRunner, options ...testlib.SetupClientOption, )
SourceStatusTestHelperWithComponentsTestRunner runs the Source status conformance tests for all sources in the ComponentsTestRunner. This test needs an already created instance of each source which should be initialized via ComponentsTestRunner.AddComponentSetupClientOption.
Note: The source object name must be the lower case Kind name (e.g. apiserversource for the Kind: ApiServerSource source)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.