[jboss-jira] [JBoss JIRA] (WFWIP-289) Using mp.openapi.scan.disable=true on subsequent deployment causes OpenAPI generation issues
Fabio Burzigotti (Jira)
issues at jboss.org
Thu Dec 19 06:49:44 EST 2019
[ https://issues.redhat.com/browse/WFWIP-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabio Burzigotti updated WFWIP-289:
-----------------------------------
Steps to Reproduce:
The issue can be reproduced following the steps:
* clone the EAP MicroProfile TS fork [1] and executing the following command:
$ mvn clean verify -pl microprofile-open-api -Djboss.home=<FEATURE_BRANCH_DIST_JBOSS_HOME> -Pmp-open-api -Dtest=MicroprofileConfigIntegrationTests -Dmaven.surefire.debug="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE"
* remove the @Ignore clause from last 3 tests in MicroprofileConfigIntegrationTests.java
* place a breakpoint at one of the tests first line
* when the breakpoint is hit, inspect generated OpenAPI doc at `http://localhost:8080/openapi`
* check test results, 2 or 3 related tests should be failing
Used feature branch is: https://github.com/pferraro/wildfly/tree/WFLY-12313
[1]
https://github.com/fabiobrz/eap-microprofile-test-suite/tree/integration-mp-config
was:
The issue can be reproduced following the steps:
* clone the EAP MicroProfile TS fork [1] and executing the following command:
$ mvn clean verify -pl microprofile-open-api -Djboss.home=<FEATURE_BRANCH_DIST_JBOSS_HOME> -Pmp-open-api -Dtest=MicroprofileConfigIntegrationTests -Dmaven.surefire.debug="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE"
* remove the @Ignore clause from last 3 tests
* place a breakpoint at one of the tests first line
* when the breakpoint is hit, inspect generated OpenAPI doc at `http://localhost:8080/openapi`
* check test results, 3 related tests should be failing
Used feature branch is: https://github.com/pferraro/wildfly/tree/WFLY-12313
[1]
https://github.com/fabiobrz/eap-microprofile-test-suite/tree/integration-mp-config
> Using mp.openapi.scan.disable=true on subsequent deployment causes OpenAPI generation issues
> --------------------------------------------------------------------------------------------
>
> Key: WFWIP-289
> URL: https://issues.redhat.com/browse/WFWIP-289
> Project: WildFly WIP
> Issue Type: Bug
> Components: MP OpenAPI
> Reporter: Fabio Burzigotti
> Assignee: Paul Ferraro
> Priority: Blocker
>
> Complex scenario with 4 subsequent deployments.
> The last one adds the `mp.openapi.scan.disable=true` MP Config core property - consequently no `mp.openapi.extensions.path` MP Config vendor extension property is defined.
> This causes the server to behave in non-deterministic way for generation of OpenAPI document at standard `/openapi` URL.
> "Non-deterministic" means that - when the test is executed several times - the generated document contains elements either from first or second deployments (third one is not registering the endpoint and is skipped as expected).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list