Testing the policy - PingOne - PingOne Services - PingOne Authorize - PingOne Cloud Platform

PingOne Cloud Platform

bundle
pingone
ft:publication_title
PingOne Cloud Platform
Product_Version_ce
PingOne
PingOne Cloud Platform
category
Administratorguide
ContentType
Guide
Product
Productdocumentation
p1
p1cloudplatform
ContentType_ce
Guide
Guide > Administrator Guide
Product documentation

Next you’ll test your policy to make sure it does what you expect.

  1. Go to Authorization > Policies, then select the Payment checks policy and click the Test tab.
  2. In the Request section, in the Attributes list, select the Amount attribute and enter 10900 as the attribute value.

    Screen capture of the Testing Scenario tab showing a request with the Amount attribute set to a value of 10900.
  3. Click Execute.

    The Visualization tab shows a deny result, as you'd expect, because the amount is over 10000. The policy is working.


    Screen capture showing the visualization flow of the deny result.

    Now let’s test a value less than 10,000 to see if the policy handles it.

  4. Click the Testing Scenario tab, enter 9900 as the attribute value, and click Execute.

    Screen capture of the Testing Scenario tab showing a request with the Amount attribute set to a value of 9900.

    A second Test Results tab is displayed that shows a result that's not applicable. Your rule only applies to amounts greater than or equal to 10000, so right now the rule doesn’t apply to amounts less than 10000. This neutral decision indicates that the policy doesn’t apply in this situation.


    Screen capture showing the visualization flow of the not applicable result.

    You have more work to do with your policy to account for amounts less than $10,000 USD.

You used the amount attribute to build a basic policy with a rule that denies payments over $10,000 USD. Then you tested your policy and found that it doesn’t account for payments less than $10,000 USD.

Let’s update and retest the policy.