Uploaded image for project: 'FORTRESS'
  1. FORTRESS
  2. FC-137

Add system properties in tests kicked off by maven

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0-RC40
    • 1.0.0-RC42
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            smckinney Shawn McKinney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: