Changeset 27:596e7e6cef94

Added more test targets
author unexist
date Wed, 18 Aug 2021 08:19:36 +0200
parents 039c326f0bf0
children 41131788e51b
files Makefile
diffstat 1 files changed, 46 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Aug 18 08:19:25 2021 +0200
+++ b/Makefile	Wed Aug 18 08:19:36 2021 +0200
@@ -17,6 +17,46 @@
 endef
 export JSON_TODO_QUARKUS
 
+define TODO_KAFKA_CE1_T1
+echo 'test%{
+  "specversion": "0.3",
+  "id": "21627e26-31eb-43e7-8343-92a696fd96b1",
+  "source": "",
+  "type": "todo_in1",
+  "time": "2021-07-23T12:02:23.812262+02:00[Europe/Berlin]",
+  "data": {
+    "description": "string",
+    "done": false,
+    "dueDate": {
+      "due": "2022-05-08",
+      "start": "2022-05-07"
+    },
+    "title": "string"
+  }
+}' | kafkacat -t todo_in1 -b localhost:$(RPK_PORT) -P -K%
+endef
+export TODO_KAFKA_CE1_T1
+
+define TODO_KAFKA_CE2_T2
+echo 'test%{
+  "specversion": "0.3",
+  "id": "21627e26-31eb-43e7-8343-92a696fd96b1",
+  "source": "",
+  "type": "todo_in1",
+  "time": "2021-07-23T12:02:23.812262+02:00[Europe/Berlin]",
+  "data": {
+    "description": "string",
+    "done": false,
+    "dueDate": {
+      "due": "2022-05-08",
+      "start": "2022-05-07"
+    },
+    "title": "string"
+  }
+}' | kafkacat -t todo_in2 -b localhost:$(RPK_PORT) -P -K%
+endef
+export TODO_KAFKA_CE2_T2
+
 define TODO_KAFKA_CE1
 echo 'test%{
   "specversion": "0.3",
@@ -77,7 +117,6 @@
 endef
 export TODO_KAFKA_CE3
 
-
 # Docker
 .PHONY: docker
 docker:
@@ -102,6 +141,12 @@
 	rpk topic --brokers localhost:$(RPK_PORT) list
 
 # Kafkacat
+kat-send11: rpk-port
+	@echo $$TODO_KAFKA_CE1_T1 | bash
+
+kat-send22: rpk-port
+	@echo $$TODO_KAFKA_CE2_T2 | bash
+
 kat-send1: rpk-port
 	@echo $$TODO_KAFKA_CE1 | bash