Test updates to a PaCE policy version

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 2 Minuten Lesedauer
  • Use the Test Playground to test updates to a PaCE policy script. You can evaluate changes to the policy script in real time, enabling you to determine if the changes that are applied render the policy compliant or non-compliant.

    Vorbereitungen

    Role required: sn_pace.admin

    Warum und wann dieser Vorgang ausgeführt wird

    The Test Playground enables you to apply changes to the policy script, and see the impact of those changes in real time. After the changes have been evaluated, save the script to ensure that the changes are implemented when the policy is next invoked.

    Prozedur

    1. In the Policy builder tab, select the Test playground icon Test playground icon. in the right-hand menu.
    2. In the Versions tab, click the policy version you want to update.
    3. In the Details page, click Test Playground.
    4. In the Policy logic section, modify the fields according to your requirements.
    5. In the Test parameters tab, fill in the forms as needed.
      Tabelle : 1. Test options fields
      Field Description
      Change RequestObjectDocument The change request that you want to test the policy version with.The object that you want to test the policy version with.The document that you want to test the policy version with.
      Hinweis:
      This field will change depending on which application PaCE is being used.
      Log level Level of the log.
      Timeout Timeout to determine the execution threshold of the test.
      Execution log Execution tag for the policy version.
      Verbose Option to make the test display in a verbose format.
      Test parameters tab.Test Parameters section.Test parameters section.
    6. In the Policy Script section, modify the script according to your requirements.
      Test updates to policy version.
    7. In the Test Parameters section, perform various actions as needed.
      Actions Description
      Input From the drop-down lists, select Deployable and Snapshot.
      Add mapping inputs Add mapping inputs by clicking the Mapping Input tab.
      Hinweis:
      You can click Select from History to select the input variables from a previously executed policy run. Alternatively, click Reset Inputs to generate the default JSON schema that the system generated.
      Review Output Review the compliance decision reached by clicking the Output tab. You can also view any warnings or failures generated during the evaluation, and how long the evaluation took.
      Hinweis:
      The Output tab is displayed automatically after clicking Evaluate.
      Review Execution logs Review execution logs for the policy version by clicking the Logs tab to.
    8. Under the API Variables and Config Parameters tabAPI parameters and Config parameters tabs, select the variables you want to test with the policy version.
    9. When you are done modifying your policy script, click EvaluateRun Test.
      A decision is reached regarding the compliance or non-compliance of the policy, based on the changes you made to the script. In the Test Parameters section, either Compliant or Non-compliant is displayed, along with additional output on any warnings or failures, and how long the evaluation took.
      Hinweis:
      A decision with Compliant with exception will not work with a custom decision.
      Output tab.Evaluate policy output.Evaluate policy output.
      Evaluate policy output