Skip to content
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

Test case for lowercase header #919

Merged
merged 3 commits into from Oct 12, 2018

Conversation

akunowski
Copy link
Contributor

Test for checking if headers are case-insensitive.

// when
HermesMessage message = hermesMessage(topic.getQualifiedName(), user.asBytes())
.withContentType(AVRO_BINARY)
.withHeader("schema-version", "1")
Copy link
Contributor

Choose a reason for hiding this comment

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

will the test pass if you remove this header? hermes frontend uses latest schema version if no header is available.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Test fails if you remove it with error "Invalid message: Could not deserialize avro message with provided schema"

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, and if you remove withSchemaVersionAwareSerialization() when building topic as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The same error like previously.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK thx :)

@dankraw dankraw merged commit 0ae7ea2 into allegro:master Oct 12, 2018
@adamdubiel adamdubiel modified the milestones: 0.13.2, 0.13.3 Oct 19, 2018
klacia pushed a commit to klacia/hermes that referenced this pull request Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants