Add system property for test constants location

(cherry picked from commit f9afa13)
This commit is contained in:
Vaclav Muzikar 2016-03-15 13:05:33 +01:00
parent 705a598ce6
commit 18b07190bf
2 changed files with 4 additions and 1 deletions

View file

@ -276,7 +276,7 @@ public abstract class AbstractKeycloakTest {
} }
private void loadConstantsProperties() throws ConfigurationException { private void loadConstantsProperties() throws ConfigurationException {
constantsProperties = new PropertiesConfiguration("test-constants.properties"); constantsProperties = new PropertiesConfiguration(System.getProperty("testsuite.constants"));
constantsProperties.setThrowExceptionOnMissing(true); constantsProperties.setThrowExceptionOnMissing(true);
} }

View file

@ -69,6 +69,8 @@
<auth.server.java.home>${java.home}</auth.server.java.home> <auth.server.java.home>${java.home}</auth.server.java.home>
<testsuite.constants>test-constants.properties</testsuite.constants>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
@ -127,6 +129,7 @@
<jboss.server.config.dir>${jboss.server.config.dir}</jboss.server.config.dir> <jboss.server.config.dir>${jboss.server.config.dir}</jboss.server.config.dir>
<frontend.console.output>${frontend.console.output}</frontend.console.output> <frontend.console.output>${frontend.console.output}</frontend.console.output>
<backends.console.output>${backend.console.output}</backends.console.output> <backends.console.output>${backend.console.output}</backends.console.output>
<testsuite.constants>${testsuite.constants}</testsuite.constants>
</systemPropertyVariables> </systemPropertyVariables>
<properties> <properties>
<property> <property>