[
https://issues.redhat.com/browse/WFWIP-366?page=com.atlassian.jira.plugin...
]
Jeff Mesnil commented on WFWIP-366:
-----------------------------------
[~mchoma] Are you sure these tests ever pass with -Dts.bootable on nightly runs?
In master branch, they are located in the testsuite/integration/basic and are specifically
excluded from the ts.bootable run as they require security:
https://github.com/wildfly/wildfly/blob/2095d398152d31c43f14f4200683fd1f6...
In the dev branch, they are now in the testsuite/integration/microprofile and can be run
with Elytron.
However, the ts.bootable profile was missing the additional content (including the
mgmt-users.properties) to make the test pass.
https://github.com/wildfly/wildfly/pull/13756/files?file-filters%5B%5D=.x...
I have amended the dev branch with that changes and was able to pass the tests:
{code}
$ mvn test -Dts.bootable -Dtestsuite.ee.galleon.pack.version=22.0.0.Beta1-SNAPSHOT
-Dtestsuite.ee.galleon.pack.artifactId=wildfly-galleon-pack
-Dtestsuite.ee.galleon.pack.groupId=org.wildfly
-Dversion.org.wildfly.jar.plugin=2.0.2.Final
-Dtest=MicroProfileMetricsSecuredEndpointTestCase
...
Running
org.wildfly.test.integration.microprofile.metrics.secured.MicroProfileMetricsSecuredEndpointTestCase
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.98 s - in
org.wildfly.test.integration.microprofile.metrics.secured.MicroProfileMetricsSecuredEndpointTestCase
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
{code}
MicroProfileMetricsSecuredEndpointTestCase,MicroProfileVendorMetricsBootTestCase failing
in bootable jar run
------------------------------------------------------------------------------------------------------------
Key: WFWIP-366
URL:
https://issues.redhat.com/browse/WFWIP-366
Project: WildFly WIP
Issue Type: Bug
Reporter: Martin Choma
Assignee: Jeff Mesnil
Priority: Major
{code}
cd testsuite/integration/microprofile
mvn test -Dts.bootable -Dtestsuite.ee.galleon.pack.version=22.0.0.Beta1-SNAPSHOT
-Dtestsuite.ee.galleon.pack.artifactId=wildfly-galleon-pack
-Dtestsuite.ee.galleon.pack.groupId=org.wildfly
-Dversion.org.wildfly.jar.plugin=2.0.2.Final
-Dtest=MicroProfileMetricsSecuredEndpointTestCase
...
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] MicroProfileMetricsSecuredEndpointTestCase.securedHTTPEndpoint:89
expected:<200> but was:<401>
[ERROR]
MicroProfileVendorMetricsBootTestCase.testVendorMetricsDeployAfterBoot:159->checkResponse:188
connected=true
cleanInit=true
overallResponseCode=401
overallSawVendor=false
scopedResponseCode=401
scopedSawVendor=false
expected:<[200]> but was:<[401]>
[INFO]
[ERROR] Tests run: 3, Failures: 2, Errors: 0, Skipped: 0
{code}
Looking into tested bootable jar It seems strange I still see
security-enabled="false"
{code}
<subsystem xmlns="urn:wildfly:microprofile-metrics-smallrye:2.0"
security-enabled="false" exposed-subsystems="*"
prefix="${wildfly.metrics.prefix:wildfly}"/>
{code}
Management interface is secured
{code}
<management-interfaces>
<http-interface
http-authentication-factory="management-http-authentication">
<http-upgrade enabled="true"
sasl-authentication-factory="management-sasl-authentication"/>
<socket-binding http="management-http"/>
</http-interface>
</management-interfaces>
{code}
But mgmt-users.properties is empty no user expected by test "testSuite",
"testSuitePassword"
Same test is passing in WF22 nightly runs.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)