From 218b0740dfbc21884d6b37329dd177401edb4bb8 Mon Sep 17 00:00:00 2001 From: AJ Date: Thu, 16 May 2024 15:33:43 -0400 Subject: [PATCH] fix http binding event test --- .../exporter/stdout/internal/stream/StdoutEventsStream.java | 4 ++-- .../zilla/specs/binding/http/config/v1.1/server.event.yaml | 2 +- .../zilla/specs/binding/http/config/v2/server.event.yaml | 2 +- .../zilla/specs/engine/schema/exporter/test.schema.patch.json | 4 ++++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/runtime/exporter-stdout/src/main/java/io/aklivity/zilla/runtime/exporter/stdout/internal/stream/StdoutEventsStream.java b/runtime/exporter-stdout/src/main/java/io/aklivity/zilla/runtime/exporter/stdout/internal/stream/StdoutEventsStream.java index 5ed47340c6..9d30138409 100644 --- a/runtime/exporter-stdout/src/main/java/io/aklivity/zilla/runtime/exporter/stdout/internal/stream/StdoutEventsStream.java +++ b/runtime/exporter-stdout/src/main/java/io/aklivity/zilla/runtime/exporter/stdout/internal/stream/StdoutEventsStream.java @@ -29,8 +29,8 @@ public class StdoutEventsStream { - // {zilla namespace}:{component name} [dd/MMM/yyyy:HH:mm:ss Z] {event name} - {event body}\n - private static final String FORMAT = "%s [%s] %s - %s%n"; + // {zilla namespace}:{component name} [dd/MMM/yyyy:HH:mm:ss Z] {event name} {event body}\n + private static final String FORMAT = "%s [%s] %s %s%n"; private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("dd/MMM/yyyy:HH:mm:ss Z"); private final StdoutExporterContext context; diff --git a/specs/binding-http.spec/src/main/scripts/io/aklivity/zilla/specs/binding/http/config/v1.1/server.event.yaml b/specs/binding-http.spec/src/main/scripts/io/aklivity/zilla/specs/binding/http/config/v1.1/server.event.yaml index 942df1e6d8..9bb183a10e 100644 --- a/specs/binding-http.spec/src/main/scripts/io/aklivity/zilla/specs/binding/http/config/v1.1/server.event.yaml +++ b/specs/binding-http.spec/src/main/scripts/io/aklivity/zilla/specs/binding/http/config/v1.1/server.event.yaml @@ -25,7 +25,7 @@ telemetry: - qname: test.net0 id: binding.http.request.accepted name: BINDING_HTTP_REQUEST_ACCEPTED - message: http GET localhost:8080 / + message: "- http GET localhost:8080 /" bindings: net0: type: http diff --git a/specs/binding-http.spec/src/main/scripts/io/aklivity/zilla/specs/binding/http/config/v2/server.event.yaml b/specs/binding-http.spec/src/main/scripts/io/aklivity/zilla/specs/binding/http/config/v2/server.event.yaml index 40057bb219..b2d5d70f60 100644 --- a/specs/binding-http.spec/src/main/scripts/io/aklivity/zilla/specs/binding/http/config/v2/server.event.yaml +++ b/specs/binding-http.spec/src/main/scripts/io/aklivity/zilla/specs/binding/http/config/v2/server.event.yaml @@ -25,7 +25,7 @@ telemetry: - qname: test.net0 id: binding.http.request.accepted name: BINDING_HTTP_REQUEST_ACCEPTED - message: http GET localhost:8080 / + message: "- http GET localhost:8080 /" bindings: net0: type: http diff --git a/specs/engine.spec/src/main/scripts/io/aklivity/zilla/specs/engine/schema/exporter/test.schema.patch.json b/specs/engine.spec/src/main/scripts/io/aklivity/zilla/specs/engine/schema/exporter/test.schema.patch.json index 51d1bf8be6..5992cecce6 100644 --- a/specs/engine.spec/src/main/scripts/io/aklivity/zilla/specs/engine/schema/exporter/test.schema.patch.json +++ b/specs/engine.spec/src/main/scripts/io/aklivity/zilla/specs/engine/schema/exporter/test.schema.patch.json @@ -48,6 +48,10 @@ { "type": "string" }, + "name": + { + "type": "string" + }, "message": { "type": "string"