Documentation ¶
Index ¶
- Constants
- Variables
- func AssureKafkaSourceIsOperational(t *testing.T, scope SourceTestScope)
- func CheckKafkaSourceState(ctx context.Context, c *testlib.Client, name string, ...) error
- func CheckRADeployment(ctx context.Context, c *testlib.Client, name string, ...) error
- func MustCreateKafkaUserForTopic(client *testlib.Client, ...)
- func MustCreateTopic(client *testlib.Client, clusterName, clusterNamespace, topicName string, ...)
- func MustPublishKafkaMessage(client *testlib.Client, bootstrapServer string, topic string, key string, ...)
- func MustPublishKafkaMessageViaBinding(client *testlib.Client, selector map[string]string, topic string, key string, ...)
- func TestKafkaBinding(t *testing.T)
- func TestKafkaSourceClaims(t *testing.T)
- func TestKafkaSourceUpdate(t *testing.T)
- func WaitForKafkaResourceReady(ctx context.Context, client *testlib.Client, namespace, name string, ...) error
- func WaitForTopicReady(ctx context.Context, client *testlib.Client, namespace, name string, ...) errordeprecated
- type SourceTestScope
Constants ¶
View Source
const ( KafkaBootstrapUrlPlain = "my-cluster-kafka-bootstrap.kafka.svc:9092" KafkaClusterName = "my-cluster" KafkaClusterNamespace = "kafka" )
Variables ¶
View Source
var (
ImcGVR = schema.GroupVersionResource{Group: "messaging.knative.dev", Version: "v1", Resource: "inmemorychannels"}
)
Functions ¶
func AssureKafkaSourceIsOperational ¶ added in v0.27.0
func AssureKafkaSourceIsOperational(t *testing.T, scope SourceTestScope)
AssureKafkaSourceIsOperational assures that KafkaSource works as intended.
func CheckKafkaSourceState ¶
func CheckKafkaSourceState(ctx context.Context, c *testlib.Client, name string, inState func(ks *sourcesv1beta1.KafkaSource) (bool, error)) error
CheckKafkaSourceState waits for specified kafka source resource state On timeout reports error
func CheckRADeployment ¶
func CheckRADeployment(ctx context.Context, c *testlib.Client, name string, inState func(deps *appsv1.DeploymentList) (bool, error)) error
CheckRADeployment waits for desired state of receiver adapter On timeout reports error
func MustCreateKafkaUserForTopic ¶ added in v0.32.0
func MustCreateTopic ¶
func MustPublishKafkaMessage ¶
func TestKafkaBinding ¶ added in v0.27.0
func TestKafkaSourceClaims ¶ added in v0.27.0
func TestKafkaSourceUpdate ¶ added in v0.27.0
func WaitForKafkaResourceReady ¶ added in v0.32.0
func WaitForTopicReady
deprecated
added in
v0.28.0
Types ¶
type SourceTestScope ¶ added in v0.27.0
SourceTestScope returns true if we should proceed with given test case.
Click to show internal directories.
Click to hide internal directories.