Launch Configuration

New Configuration

To access the Policy Test wizard, right click on the project to test in Policy Explorer and select Run As -> Run... The Run configuration wizard is displayed. Select 'Policy Test' and press the New Button at the bottom of the left pane. A new testing configuration is created. Enter the name for this configuration. The tabs (described below) provide specific information for the configuration.

Main Tab

Select the project to test, remote operations to perform, and the connection to use, as follows.
  • Project

    Select the project to test from the drop-down list

  • Starting Domain

    Specify the domain in which to start the test (optional).

  • Automatically reboot after policy installation

    If checked, after successful policy installation the remote machine will be rebooted.

  • Relabel System

    Check this box to force relabeling the file system after new policy has been installed.

  • Connection

    Select a connection from the drop-down list. If there are no connections, click on New... to bring up the Connection Preferences dialog and create a new connection. Then select the newly created connection.

  • Clear Audit View before deployment

    If checked, clears the Audit View before launching the test.

Policy Tab - Modular

Shown when testing a modular policy build, select the modules to be tested.
  • Add...

    Click on Add to bring up the Module Selection dialog, which displays the list of modules that have compiled successfully in the project. In this example, the list includes apache.pp.

  • Remove

    Click on Remove to remove the selected module from the list.

Policy Tab - Monolithic

Shown when testing a monolithic build project. In this case the full policy is built locally and then copied to the remote machine for installation. There are no selections to make.

Test Script

Optionally, specify test scripts to be executed once policy is installed successfully. Specify an output file name to which the script's output will be redirected. These scripts are copied on the remote machine in /tmp/ before being executed.
  • Add...

    Click on Add to select a test script. There can be 0 or more scripts.

  • Remove

    Click on Remove to remove a script from the list of scripts to be executed.