Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Files

Latest commit

519bc96 · Sep 13, 2023

History

History

proctor-webapp

Proctor

Proctor-Webapp is a Java web application that uses the Proctor-Webapp-Library to manipulate and view Proctor definitions.

Features:

  • Create/View/Edit/Delete Proctor definitions
  • View commit history of Proctor definitions in trunk, qa, and production.
  • Promote Proctor definitions from trunk -> qa/production, or qa -> production

Test-matrix storage requirements

Proctor test-matrix must be accessible for trunk, qa, and production:

For SVN: * https://YOURSVN.com/svn/repos/proctor-data/trunk/matrices/test-definitions/ * https://YOURSVN.com/svn/repos/proctor-data/branches/deploy/qa/matrices/test-definitions/ * https://YOURSVN.com/svn/repos/proctor-data/branches/deploy/production/matrices/test-definitions/

For Git: * https://YOURGIT.com/YOURREPOS/proctor-data/tree/trunk/matrices/test-definitions/ * https://YOURGIT.com/YOURREPOS/proctor-data/tree/qa/matrices/test-definitions/ * https://YOURGIT.com/YOURREPOS/proctor-data/tree/production/matrices/test-definitions/

Deployment

  1. Use git to clone https://github.com/indeedeng/proctor-webapp

  2. Set up configuration (see below).

  3. In root folder, run mvn package -pl proctor-webapp -am to build.

  4. Start the webapp runner. NOTE: The config.dir java variable is set to the example-apache-config, you will still need to update proctor-config.properties with the appropriate credentials:

    java -Dconfig.dir="$PWD/proctor-webapp/example-apache-config"  -jar proctor-webapp/target/dependency/webapp-runner.jar --context-xml proctor-webapp/example-apache-config/proctor-webapp.xml --expand-war proctor-webapp/target/proctor-webapp-9999-SNAPSHOT.war

Configuration

Two configuration files need to be provided to run Proctor-Webapp properly. The properties have the recommended values below.

  1. ${config.dir}/proctor-config.properties

When using SVN or Git as storage:

```bash
revision.control=[svn|git]
scm.path=[https://YOURSVN.com/svn/repos/proctor-data/|https://YOURGIT.com/YOURREPOS/proctor-data.git]
scm.login=REPLACE_WITH_REPO_USER
scm.password=REPLACE_WITH_REPO_PASS
```
  1. ${config.dir}/proctor-webapp.xml
    <Context debug="5" reloadable="true" crossContext="true">
        <Parameter name="contextConfigLocation" value="/WEB-INF/spring/applicationContext.xml" override="false"/>
        <Parameter name="propertyPlaceholderResourceLocation" value="file://${config.dir}/proctor-config.properties" override="false"/>
    </Context>