directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn McKinney (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FC-137) Add system properties in tests kicked off by maven
Date Fri, 22 Jan 2016 13:24:39 GMT
Shawn McKinney created FC-137:
---------------------------------

             Summary: Add system properties in tests kicked off by maven
                 Key: FC-137
                 URL: https://issues.apache.org/jira/browse/FC-137
             Project: FORTRESS
          Issue Type: Improvement
    Affects Versions: 1.0.0-RC40
            Reporter: Shawn McKinney
             Fix For: 1.0.0-RC41


Pass system properties in though maven to enable features like multitenancy.

For example:
mvn test -Dtest=FortressJUnitTest -Dtenant=Client123

Scope the unit tests to tenant Client123.

Another setting works for fortress load utility.  By adding this to the xml input file:
            <addcontext>
                <context name="${tenant}"/>
            </addcontext>

and this to build.properites:
tenant=Client123

The load will be scoped to Client123 tenant data.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message