You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Local Environment for Tests

Applications like the AstroServer have dependencies with tests that require a database connection. When these tests are ran within Hudson the connections are achieved with the thick client. This is not possible when running in a local environment. To solve this problem some properties can be defined to provide the thin database connections.

This is done by adding the following to your ?_USER_HOME/.m2/settings.xml

   <profiles>
        <profile>
            <id>UseLocalDB</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
              <datacatTest>****</datacatTest>
              <datacatProd>****</datacatProd>
              <pipelineTest>****</pipelineTest>
              <pipelineProd>****</pipelineProd>
              <glastgenProd>*****</glastgenProd>
            </properties>
        </profile>
   </profiles>

For an up to date version of this file, please refer to the Maven Environment.

  • No labels