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 MessageBodyWriters resources works in native mode #765

Conversation

michalvavrik
Copy link
Member

@michalvavrik michalvavrik commented Jul 25, 2022

Summary

verifies: quarkusio/quarkus#25385

When we provide MessageBodyWriter that does not extend ServerMessageBodyWriter, related resource methods must be registered for the reflection. Previously, we had to do this manually, now it's done by the Quarkus for us.

Issue reproducer

  1. go to Quarkus project
  2. revert PR git revert 224ec8c3e8e50930970e9c8b7316622ba898b0b9 and mvn -Dquickly
  3. checkout this PR
  4. cd quarkus-test-suite/http/http-advanced-reactive
  5. run mvn clean verify -Dit.test=HttpAdvancedReactiveIT -Dnative

Please select the relevant options.

  • Bug fix (non-breaking change which fixes an issue)
  • Dependency update
  • Refactoring
  • Backport
  • New scenario (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

  • Methods and classes used in PR scenarios are meaningful
  • Commits are well encapsulated and follow the best practices

verifies: quarkusio/quarkus#25385

When we provide `MessageBodyWriter` that does not extend `ServerMessageBodyWriter`, related resource methods must be registered for the reflection. Previously, we had to do this manually, now it's done by the Quarkus for us.

Reproducer
1. go to Quarkus project
2. revert PR `git revert 224ec8c3e8e50930970e9c8b7316622ba898b0b9`
3. checkout this PR
4. `cd quarkus-test-suite/http/http-advanced-reactive`
5. run `mvn clean verify -Dit.test=HttpAdvancedReactiveIT -Dnative`
@michalvavrik michalvavrik requested a review from jsmrcka July 25, 2022 15:31
@michalvavrik michalvavrik self-assigned this Jul 25, 2022
@michalvavrik
Copy link
Member Author

I doubt the test failure is related as the same failure is present in daily CI run. I'm looking into it anyway.

@michalvavrik
Copy link
Member Author

Green now :-)

Copy link
Contributor

@jsmrcka jsmrcka left a comment

Choose a reason for hiding this comment

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

Good catch!
I didn't event think about it when I was reviewing the original PR.

@jsmrcka jsmrcka merged commit 81c8fff into quarkus-qe:main Jul 26, 2022
@michalvavrik michalvavrik deleted the feature/test-messagebodywriter-resources-in-native branch July 26, 2022 07:53
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.

2 participants