Bug 1040701 - Domain tests don't use jboss.dist property properly
Summary: Domain tests don't use jboss.dist property properly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Domain Management, Testsuite
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: DR0
: EAP 6.3.0
Assignee: Brian Stansberry
QA Contact: Petr Kremensky
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-11 22:50 UTC by Josef Cacek
Modified: 2014-06-28 15:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-28 15:24:31 UTC
Type: Bug


Attachments (Terms of Use)

Description Josef Cacek 2013-12-11 22:50:56 UTC
It seems the tests in testsuite/domain doesn't set properly jboss.home.dir property value. They uses instead the value from jboss.dist property as a location where the test actually run.

The jboss.dist property value provided to the AS testsuite should be only used as a source from which are the bits copied to the testsuite target directories (i.e. [ts-module]/target/jbossas). Then the jboss.home.dir should point to the copy. 
cf. https://docs.jboss.org/author/display/AS71/AS+7+Integration+Testsuite+User+Guide#AS7IntegrationTestsuiteUserGuide-RunningagainstexistingAScopy%28nottheonefrombuild%2Ftarget%2Fjbossas%29

Steps to reproduce:
For instance when I run SlaveHostControllerAuthenticationTestCase test from domain testuite (with EAP sources in /home/jcacek/projects/eap6):

./integration-tests.sh -Dtest=SlaveHostControllerAuthenticationTestCase -Dsecurity.policy=/home/jcacek/projects/eap6/testsuite/integration/src/test/config/eap62.policy -DtestLogToFile=false -Dts.domain -Djboss.dist=/home/jcacek/test/620/jboss-eap-6.2

Then I see following ProcessWrapper created by DomainLifecycleUtil class:

INFO  [org.jboss.as.test.integration.domain.management.util.DomainLifecycleUtil] Starting process: ProcessWrapper [processName=master, command=[/home/jcacek/java/jdk1.7.0_45/bin/java, -Xmx512m, -XX:MaxPermSize=256m, -Djboss.dist=/home/jcacek/test/620/jboss-eap-6.2, -Xmx512m, -XX:MaxPermSize=256m, -Djboss.dist=/home/jcacek/test/620/jboss-eap-6.2, -Djava.net.preferIPv4Stack=true, -Djava.net.preferIPv6Addresses=false, -Djava.security.manager, -Djava.security.policy=/home/jcacek/projects/eap6/testsuite/integration/src/test/config/eap62.policy, -Dts.timeout.factor=100, -Djboss.home.dir=/home/jcacek/test/620/jboss-eap-6.2, -Djava.net.preferIPv4Stack=true, -Djava.net.preferIPv6Addresses=false, -Dorg.jboss.boot.log.file=/home/jcacek/projects/eap6/testsuite/domain/target/domains/SlaveHostControllerAuthenticationTestCase/master/log/process-controller.log, -Dlogging.configuration=file:/home/jcacek/test/620/jboss-eap-6.2/domain/configuration/logging.properties, -jar, /home/jcacek/test/620/jboss-eap-6.2/jboss-modules.jar, -mp, /home/jcacek/projects/eap6/testsuite/domain/target/domains/SlaveHostControllerAuthenticationTestCase/master/added-modules:/home/jcacek/projects/eap6/testsuite/domain/target/domains/SlaveHostControllerAuthenticationTestCase/added-modules:/home/jcacek/test/620/jboss-eap-6.2/modules, org.jboss.as.process-controller, -jboss-home, /home/jcacek/test/620/jboss-eap-6.2, -jvm, /home/jcacek/java/jdk1.7.0_45/bin/java, --, -Dorg.jboss.boot.log.file=/home/jcacek/projects/eap6/testsuite/domain/target/domains/SlaveHostControllerAuthenticationTestCase/master/log/host-controller.log, -Dlogging.configuration=file:/home/jcacek/test/620/jboss-eap-6.2/domain/configuration/logging.properties, -Djava.net.preferIPv4Stack=true, -Djava.net.preferIPv6Addresses=false, -Xmx512m, -XX:MaxPermSize=256m, -Djboss.dist=/home/jcacek/test/620/jboss-eap-6.2, -Xmx512m, -XX:MaxPermSize=256m, -Djboss.dist=/home/jcacek/test/620/jboss-eap-6.2, -Djava.net.preferIPv4Stack=true, -Djava.net.preferIPv6Addresses=false, -Djava.security.manager, -Djava.security.policy=/home/jcacek/projects/eap6/testsuite/integration/src/test/config/eap62.policy, -Dts.timeout.factor=100, -Djboss.home.dir=/home/jcacek/test/620/jboss-eap-6.2, --, -default-jvm, /home/jcacek/java/jdk1.7.0_45/bin/java, -Djboss.test.host.master.address=127.0.0.1, -Djboss.domain.base.dir=/home/jcacek/projects/eap6/testsuite/domain/target/domains/SlaveHostControllerAuthenticationTestCase/master, -domain-config, testing-domain-standard.xml, -host-config, testing-host-master-no-local.xml, --interprocess-hc-address, 127.0.0.1, --pc-address, 127.0.0.1], env={}, workingDirectory=/home/jcacek/projects/eap6/testsuite/domain/target/domains/SlaveHostControllerAuthenticationTestCase/master, stopped=false]

Comment 1 Brian Stansberry 2013-12-12 01:30:38 UTC
Please explain what specific problem this causes. The -Djboss.domain.base.dir=/home/jcacek/projects/eap6/testsuite/domain/target/domains/SlaveHostControllerAuthenticationTestCase/master setting puts all the writable content out of jboss.dist.

Comment 2 Josef Cacek 2013-12-12 07:32:09 UTC
For instance, it causes problems, when I run the testsuite with the Security Manager enabled and my policy file only grants permissions to the testsuite folders.

Comment 6 Ondrej Lukas 2014-02-26 10:28:42 UTC
Verified on EAP 6.3.0.DR0.


Note You need to log in before you can comment on or make changes to this bug.