sources

package
v0.41.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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:

  1. 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)

func ValidateRBAC added in v0.21.0

func ValidateRBAC(st *testing.T, client *testlib.Client, object metav1.TypeMeta)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL