eclipse / microprofile-open-api

Microprofile open api
Apache License 2.0
131 stars 81 forks source link

Allow the TCK to work using the new arquillian REST protocol #546

Closed Azquelt closed 1 year ago

Azquelt commented 1 year ago

I came across an issue when trying to run the TCK using the new arquillian REST 3.0 protocol (which uses a jax-rs resource instead of a servlet to communicate between the client and server).

This extra rest resource is put into every test deployment which means it's in the application and gets scanned and added to the /openapi endpoint, which breaks some of the tests because there are unexpected entries in the openapi document.

The fix is to mark the deployment as not "testable" (which means there aren't any tests which will run within the deployment) so that arquillian doesn't include the extra REST resource in the application.

This should be changed for all of our deployments apart from ModelConstructionTest and OASFactoryErrorTest