From ff1440fd8c610dd2fdf8392d8b851307a035dd98 Mon Sep 17 00:00:00 2001 From: Renjie Liu Date: Fri, 31 Mar 2023 21:39:27 +0800 Subject: [PATCH] refactor: Remove unnecessary bash scripts (#8925) --- integration_tests/kafka-cdc-sink/Makefile.toml | 12 +++++++++++- integration_tests/kafka-cdc-sink/consume.sh | 1 - integration_tests/kafka-cdc-sink/create_topic.sh | 1 - 3 files changed, 11 insertions(+), 3 deletions(-) delete mode 100644 integration_tests/kafka-cdc-sink/consume.sh delete mode 100644 integration_tests/kafka-cdc-sink/create_topic.sh diff --git a/integration_tests/kafka-cdc-sink/Makefile.toml b/integration_tests/kafka-cdc-sink/Makefile.toml index 362eeccdf92c7..fb16891c46b89 100644 --- a/integration_tests/kafka-cdc-sink/Makefile.toml +++ b/integration_tests/kafka-cdc-sink/Makefile.toml @@ -48,4 +48,14 @@ dependencies = [ [tasks.clean-all] script = """ docker compose down --remove-orphans -v -""" \ No newline at end of file +""" + +[tasks.show-json-logs] +script = """ +docker run --network host \ + bitnami/kafka:latest \ + /opt/bitnami/kafka/bin/kafka-console-consumer.sh \ + --bootstrap-server localhost:9092 \ + --topic counts --from-beginning +""" +description = "Show produces kafka json logs" \ No newline at end of file diff --git a/integration_tests/kafka-cdc-sink/consume.sh b/integration_tests/kafka-cdc-sink/consume.sh deleted file mode 100644 index 5648c91ce6914..0000000000000 --- a/integration_tests/kafka-cdc-sink/consume.sh +++ /dev/null @@ -1 +0,0 @@ -docker run --network host bitnami/kafka:latest /opt/bitnami/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic counts --from-beginning \ No newline at end of file diff --git a/integration_tests/kafka-cdc-sink/create_topic.sh b/integration_tests/kafka-cdc-sink/create_topic.sh deleted file mode 100644 index fb88b801c1bdc..0000000000000 --- a/integration_tests/kafka-cdc-sink/create_topic.sh +++ /dev/null @@ -1 +0,0 @@ -docker exec message_queue /usr/bin/rpk topic create -p 2 counts \ No newline at end of file