The PingAuthorize Policy Editor provides testing capabilities for applicable definition types.
To prepare a test request, select a definition of type Attribute or Service and go to the Test tab.
To form a request, select the following main elements:
If the information endpoints that your attribute resolvers require are running, click Execute. If your endpoints are not running or are otherwise unavailable, as is often the case in development, use the Overrides section to provide stubbed values for attributes and services that might be required during the evaluation process. This step overrides the attribute and service resolution and uses the specified values instead.
After the system evaluates the request, you will see the following set of result tabs:
- Shows the actual JSON request sent to the decision engine
- Contains the complete (high verbosity) response for the decision
- Provides a summary of the decision
- Contains an expandable list of all attributes executed as part of the test
- Contains an expandable list of all services executed as part of the test
Testing repeating attributes
Repeating attributes are resolved from values in a specified collection. A repeating attribute requires a repetition source that points to a collection. Also, to get its values from each repetition of the collection, the repeating attribute’s resolver must be set to Current Repetition Value. When you properly configure a repeating attribute, you can test it the same way you test regular, nonrepeating attributes.
The Output tab in the test results will show results for each matching value from the collection. The results are ordered with indices that reflect the order of resolution.
For more information about these variables, see Repeating policies and attributes.