This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[QE] Continual tests for KafkaSource for upgrade testing (#563)
* Using knative/eventing#4815 to override wathola sender transport * Actual way of replacing an image used for wathola sender * Reformatting * Wathola Kafka Sender utilizing plain connection * Implementing SUT and custom sender * KafkaSource upgrade test * Update knative-eventing to 8270497041f2 * Using source config template * Export kafkaTopicEndpoint to be able to read on TOML * wathola config reader can read both string and map[string]interface{} for sender.address * KafkaSource upgrade test works * Allow to influence Kafka cluster connection details * Channel tests working * Removing unused variable name * Review knative/eventing#5321 changes * Updates after review of knative/eventing#4815 * Use latest integration/eventing-sandbox/eventing-kafka/pr-563 commit * Update deps * Update deps * Refactor after review * Shorten the TypeMeta field * Tweak the merge slices func after review
- Loading branch information
Showing
12 changed files
with
771 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
Copyright 2021 The Knative Authors | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package main | ||
|
||
import ( | ||
"go.uber.org/zap" | ||
"knative.dev/eventing-kafka/test/upgrade/continual" | ||
"knative.dev/eventing/test/upgrade/prober/wathola/sender" | ||
"knative.dev/pkg/signals" | ||
) | ||
|
||
func main() { | ||
ctx := signals.NewContext() | ||
log, err := zap.NewDevelopment() | ||
if err != nil { | ||
panic(err) | ||
} | ||
es := continual.CreateKafkaSender(ctx, log.Sugar()) | ||
sender.RegisterEventSender(es) | ||
sender.New().SendContinually() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file is required to trigger ko resolve in upload-test-images.sh | ||
|
||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: wathola-kafka-sender | ||
spec: | ||
containers: | ||
- name: wathola-kafka-sender | ||
image: ko://knative.dev/eventing-kafka/test/test_images/wathola-kafka-sender |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# logLevel = 'DEBUG' | ||
[sender] | ||
address = '{{- .Endpoint -}}' | ||
interval = {{ .Config.Interval.Nanoseconds }} | ||
|
||
[forwarder] | ||
target = 'http://wathola-receiver.{{- .Namespace -}}.svc.cluster.local' |
Oops, something went wrong.