[jboss-jira] [JBoss JIRA] (WFLY-12899) Failing JMXPropertyEditorsTestCase in 18.0.0.Final
Brian Stansberry (Jira)
issues at jboss.org
Wed Dec 18 14:32:52 EST 2019
[ https://issues.redhat.com/browse/WFLY-12899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13937529#comment-13937529 ]
Brian Stansberry commented on WFLY-12899:
-----------------------------------------
[~james-crowley-ibm] The ${env.USER} is just expression syntax meaning "use the value of the environment variable 'USER'". The expression resolution ends up calling System.getEnv("USER").
The test is assuming that env var is set for the server process. AFAIK as long as that property is set for the maven process it ends up being set for the server process.
A quick experiment shows the test passes if USER is set to a blank value.
If I do this I get the failure you report:
$ unset USER
$ mvn install -Dts.basic -pl testsuite/integration/basic -Dtest=org.jboss.as.test.integration.ee.jmx.property.JMXPropertyEditorsTestCase
> Failing JMXPropertyEditorsTestCase in 18.0.0.Final
> --------------------------------------------------
>
> Key: WFLY-12899
> URL: https://issues.redhat.com/browse/WFLY-12899
> Project: WildFly
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 18.0.0.Final
> Reporter: James Crowley
> Priority: Major
>
> When calling "./mvnw install -DallTests", it gets up to the JMXPropertyEditorsTestCase and fails with this error, "Caused by: java.lang.IllegalStateException: Failed to resolve expression: env.USER"}}}}".
> Looking at the source code for the test [here|https://github.com/wildfly/wildfly/blob/1bf993be72b570a0c780a58ba05cabafe1ce7935/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ee/jmx/property/JMXPropertyEditorsTestCase.java#L148], it looks like USER is suppose to be defined by USER_SYS_PROP.
> I am not sure what the problem is but I know it is failing somewhere in the above test.
> You can see the full log in the in Adopt's test [here|https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/1436/consoleText].
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list