fabiobrz / eap-microprofile-test-suite

a small standalone test suite for MicroProfile on WF/EAP
Apache License 2.0
0 stars 0 forks source link

Verify WARNs in server.log when executing ProgrammingModelTests #5

Closed fabiobrz closed 4 years ago

fabiobrz commented 4 years ago

Paul Ferraro showed me he is not reproducing the issue, so it needs to be investigated why it pops up in our TS.

fabiobrz commented 4 years ago

Developing a very simple app and deploy to Wildfly built from feature branch to audit server.log for those warnings.

fabiobrz commented 4 years ago

Done, see https://github.com/fabiobrz/basic-programming-model WARN is not popping up and same happens with Wildfly TS, following manual repro (from Paul):

* Create a OASModelReader class. Put it in the org.wildfly.test.integration.microprofile.openapi.service package

* Edit org.wildfly.test.integration.microprofile.openapi.OpenAPIFormatTestCase class, add the following to the deployment configuration:

.addAsManifestResource(new StringAsset("mp.openapi.model.reader=" + YourModelReader.class.getName), "microprofile-config.properties")

* Run mvn clean install or: mvn clean install -Dtest=OpenAPIFormatTestCase -DtestLogToFile=false  from the testsuite/integration/microprofile directory

I had to add one dependency to MP OpenAPI integration test POM for model classes, though:

...
        <dependency>
            <groupId>org.eclipse.microprofile.openapi</groupId>
            <artifactId>microprofile-openapi-api</artifactId>
            <scope>test</scope>
        </dependency>
...

Anyway: no WARN in log, so it's second proof that the WARN pops up only when running TS tests.

Closing this and opening new specific issue.

fabiobrz commented 4 years ago

see #6