Changeset 9:ff3199b9b2fd

Added target for todo v3
author unexist
date Sat, 31 Jul 2021 16:32:13 +0200
parents 58e28aca9d16
children 6decdee338df
files Makefile
diffstat 1 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Fri Jul 30 16:53:49 2021 +0200
+++ b/Makefile	Sat Jul 31 16:32:13 2021 +0200
@@ -57,6 +57,26 @@
 endef
 export TODO_KAFKA_CE2
 
+define TODO_KAFKA_CE3
+echo 'test%{
+  "specversion": "0.3",
+  "id": "21627e26-31eb-43e7-8343-92a696fd96b1",
+  "source": "",
+  "type": "todo_in3",
+  "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_in -b localhost:$(RPK_PORT) -P -K%
+endef
+export TODO_KAFKA_CE3
+
 
 # Docker
 .PHONY: docker
@@ -88,6 +108,9 @@
 kat-send2: rpk-port
 	@echo $$TODO_KAFKA_CE2 | bash
 
+kat-send3: rpk-port
+	@echo $$TODO_KAFKA_CE3 | bash
+
 kat-listen-in: rpk-port
 	kafkacat -t todo_in -b localhost:$(RPK_PORT) -C