Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Add kafkaSource saslType, e2e tests for auth (tls and sasl512) #1670

Merged

Conversation

lberk
Copy link
Member

@lberk lberk commented Nov 30, 2020

knative-extensions/eventing-kafka#237 backport

  • Add kafkasource SASL Type

  • Add unit tests for NewConfig in source client

  • wip, Add tests, lifecycle, e2e test

  • Fix v1alpha1 conversion, tests

  • Refactor tests

  • Change kafkabinding sasltype json to 'Type'

  • Rework test call structure


eventing-kafka#237 backport

* Add kafkasource SASL Type

* Add unit tests for NewConfig in source client

* wip, Add tests, lifecycle, e2e test

* Fix v1alpha1 conversion, tests

* Refactor tests

* Change kafkabinding sasltype json to 'Type'

* Rework test call structure
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Nov 30, 2020
@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test-and-release labels Nov 30, 2020
@lberk
Copy link
Member Author

lberk commented Nov 30, 2020

action failures seem to be unrelated to the actual PR

@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-eventing-contrib-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
kafka/client.go Do not exist 75.0%
kafka/source/pkg/apis/bindings/v1alpha1/kafka_conversion.go Do not exist 85.7%
kafka/source/pkg/apis/bindings/v1alpha1/kafka_lifecycle.go Do not exist 57.1%
kafka/source/pkg/apis/bindings/v1alpha1/kafka_types.go Do not exist 100.0%
kafka/source/pkg/apis/bindings/v1beta1/kafka_lifecycle.go Do not exist 57.1%
kafka/source/pkg/apis/bindings/v1beta1/kafka_types.go Do not exist 100.0%
kafka/source/pkg/reconciler/source/resources/receive_adapter.go Do not exist 100.0%

@@ -192,13 +192,13 @@ func testKafkaSource(t *testing.T, name string, version string, messageKey strin
defer testlib.TearDown(client)

if auth.SASLEnabled {
_, err := utils.CopySecret(client.Kube.CoreV1(), "knative-eventing", kafkaSASLSecret, client.Namespace, "default")
_, err := utils.CopySecret(client.Kube.Kube.CoreV1(), "knative-eventing", kafkaSASLSecret, client.Namespace, "default")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, yeah - that odd thing :-)

Copy link
Member

@matzew matzew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 30, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lberk, matzew

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot merged commit 88c73c7 into knative:release-0.18 Nov 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test-and-release cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants