Skip to content

Commit 70597b1

Browse files
committed
tests: integration: require kafka otlp coalescing coverage
Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>
1 parent 174337c commit 70597b1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/integration/scenarios/out_kafka/tests/test_out_kafka_001.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,9 @@ def test_out_kafka_otlp_logs_preserve_resources_across_requests_in_same_chunk(
581581
messages = service.wait_for_messages(1, timeout=10)
582582
service.stop()
583583

584-
resources = _collect_resources(messages, format_name, "logs")
584+
assert len(messages) == 1
585+
586+
resources = _collect_resources(messages[:1], format_name, "logs")
585587
body_to_user = {
586588
record["body"]["stringValue"]: next(
587589
attribute["value"]["stringValue"]
@@ -593,6 +595,8 @@ def test_out_kafka_otlp_logs_preserve_resources_across_requests_in_same_chunk(
593595
for record in scope["logRecords"]
594596
}
595597

598+
assert "event-a" in body_to_user
599+
assert "event-b" in body_to_user
596600
assert body_to_user["event-a"] == "user-a"
597601
assert body_to_user["event-b"] == "user-b"
598602
assert len(resources) == 2

0 commit comments

Comments
 (0)