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

Make ModelConstructionTest, OASFactoryErrorTest activate OpenAPI #657

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

TomasHofman
Copy link
Contributor

@TomasHofman TomasHofman commented Sep 2, 2024

Proposal to resolve #655

After reading #413, I believe these two tests should not be using empty deployment.

OpenAPI should be somehow activated, for the tested functionality to be correctly initialized. The app container have no reason to do this initialization if there is nothing that suggests OpenAPI endpoint is needed.

Currently in Wildfly, these tests only pass if they happen to run after another test from the OpenAPI TCK, where the other test activates OpenAPI for them. They fail if run alone, or if they happen to run as the first test in the module.

@eclipse-microprofile-bot
Copy link
Contributor

Can one of the admins verify this patch?

@Azquelt
Copy link
Member

Azquelt commented Sep 2, 2024

@eclipse-microprofile-bot test this please

@Azquelt
Copy link
Member

Azquelt commented Sep 4, 2024

I just want to test this against smallrye and OpenLiberty before I merge it.

@TomasHofman
Copy link
Contributor Author

Thanks for reviewing this!

I would primarily need this in the 3.1 stream. There is currently no branch for 3.1, so I can't open a PR. Is there any chance that 3.1.2 release could be made?

@MikeEdgar
Copy link
Member

I would primarily need this in the 3.1 stream. There is currently no branch for 3.1, so I can't open a PR. Is there any chance that 3.1.2 release could be made?

We can probably back-port to 3.1.2. I'll create a branch in history for 3.1.x

@TomasHofman
Copy link
Contributor Author

Thanks! I created the 3.1.x PR.

Copy link
Member

@MikeEdgar MikeEdgar left a comment

Choose a reason for hiding this comment

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

This change does not cause any issues for smallrye-open-api 4.0.0-prerelease.

Copy link
Member

@Azquelt Azquelt left a comment

Choose a reason for hiding this comment

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

Doesn't cause any issues on OpenLiberty either.

@MikeEdgar MikeEdgar merged commit 394f23c into eclipse:main Sep 17, 2024
4 checks passed
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.

OASFactoryErrorTest TCK test fails when it runs as the first test in the testsuite
4 participants