-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(kafka-conn-sink): add tests for kafka sink connector
The change implements tests for ScyllaDB Sink Connector (https://github.com/scylladb/kafka-connect-scylladb). (cherry picked from commit 56a1d5e) # Conflicts: # sdcm/utils/common.py
- Loading branch information
Showing
10 changed files
with
685 additions
and
6 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,24 @@ | ||
stress_cmd: > | ||
python_thread -thread=KafkaProducerThread -record-format=avro -topic=table1 -num-records=1000 | ||
-key-schema='{"type":"record","name":"key_schema","fields":[{"name":"id","type":"int"}]}' | ||
-value-schema='{"type":"record","name":"value_schema","fields":[{"name":"firstName","type":"string"},{"name":"lastName","type":"string"}]}' | ||
stress_read_cmd: > | ||
python_thread -thread=KafkaValidatorThread -keyspace=keyspace1 -table=table1 -record-format=avro -num-records=1000 -batch-size=500 | ||
-value-schema='{"type":"record","name":"value_schema","fields":[{"name":"firstName","type":"string"},{"name":"lastName","type":"string"}]}' | ||
kafka_connectors: | ||
- source: 'hub:scylladb/kafka-connect-scylladb:1.1.1' | ||
name: 'scylladb-sink-connector' | ||
config: | ||
"connector.class": 'io.connect.scylladb.ScyllaDbSinkConnector' | ||
"tasks.max": 1 | ||
topics: 'table1' | ||
"scylladb.keyspace": 'keyspace1' | ||
"scylladb.consistency.level": 'ONE' | ||
"key.converter": 'io.confluent.connect.avro.AvroConverter' | ||
"key.converter.schema.registry.url": 'http://kafka-schema-registry:8081' | ||
"value.converter": 'io.confluent.connect.avro.AvroConverter' | ||
"value.converter.schema.registry.url": 'http://kafka-schema-registry:8081' | ||
"key.converter.schemas.enable": true | ||
"value.converter.schemas.enable": true | ||
"topic.table1.keyspace1.table1.mapping": 'id=key.id, firstName=value.firstName, lastName=value.lastName' |
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,22 @@ | ||
stress_cmd: > | ||
python_thread -thread=KafkaProducerThread -record-format=json-with-schema -topic=table1 -num-records=1000 | ||
-key-schema='{"type":"struct","fields":[{"type":"int32","optional":false,"field":"id"}]}' | ||
-value-schema='{"type":"struct","fields":[{"type":"string","optional":false,"field":"name"},{"type":"string","optional":true,"field":"department"}]}' | ||
stress_read_cmd: > | ||
python_thread -thread=KafkaValidatorThread -keyspace=keyspace1 -table=table1 -record-format=json-with-schema -num-records=1000 -batch-size=500 | ||
-value-schema='{"type":"struct","fields":[{"type":"string","optional":false,"field":"name"},{"type":"string","optional":true,"field":"department"}]}' | ||
kafka_connectors: | ||
- source: 'hub:scylladb/kafka-connect-scylladb:1.1.1' | ||
name: 'scylladb-sink-connector' | ||
config: | ||
"connector.class": 'io.connect.scylladb.ScyllaDbSinkConnector' | ||
"tasks.max": 1 | ||
topics: 'table1' | ||
"scylladb.keyspace": 'keyspace1' | ||
"scylladb.consistency.level": 'ONE' | ||
"key.converter": 'org.apache.kafka.connect.json.JsonConverter' | ||
"value.converter": 'org.apache.kafka.connect.json.JsonConverter' | ||
"key.converter.schemas.enable": true | ||
"value.converter.schemas.enable": true | ||
"topic.table1.keyspace1.table1.mapping": 'id=key.id, name=value.name, department=value.department' |
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.78-argus-0.13.0 | ||
1.79-confluent-kafka-2.5.3 |
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
Oops, something went wrong.