Skip to content

fix(kafka): Validate schema in tests #4900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

tobias-wilfert
Copy link
Member

@tobias-wilfert tobias-wilfert commented Jul 3, 2025

Update the logic surrounding the kafka-scheme-validation such that it is correctly validated during testing.

  • Follow up: add a test that asserts on the empty measurements logic working (did not want to put it into this one to keep the changes here concise).

#skip-changelog

@tobias-wilfert tobias-wilfert self-assigned this Jul 3, 2025
@tobias-wilfert tobias-wilfert force-pushed the tobias-wilfert/fix/validate-kafka-schemas-in-tests branch from ded3eab to 16b61e9 Compare July 4, 2025 12:50
@tobias-wilfert tobias-wilfert marked this pull request as ready for review July 4, 2025 12:53
@tobias-wilfert tobias-wilfert requested a review from a team as a code owner July 4, 2025 12:53
@@ -91,9 +91,33 @@ pub trait Message {
/// Serializes the message into its binary format.
///
/// # Errors
/// Returns the [`ClientError::InvalidMsgPack`] or [`ClientError::InvalidJson`] if the
/// Returns the [`ClientError::InvalidMsgPack`] , [`ClientError::InvalidJson`] or [`ClientError::ProtobufEncodingFailed`] if the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Returns the [`ClientError::InvalidMsgPack`] , [`ClientError::InvalidJson`] or [`ClientError::ProtobufEncodingFailed`] if the
/// Returns the [`ClientError::InvalidMsgPack`], [`ClientError::InvalidJson`] or [`ClientError::ProtobufEncodingFailed`] if the

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants