How do we test polices at each environment ?

Not applicable

How should we test polices at each environment (Dev,QA)?

e.g

Quota policy

Spike Arrest policy

RaiseFault- UnKnownResource

RaiseFault - Throttle

Thanks

Dagadu

0 2 153
2 REPLIES 2

Hi @dagadu.gaikwad There is no unit testing for the policies.

Policies are typically tested together. Because a lot of times one policy execution may depend on a previous policy.

What you may do is disable a particular policy while testing another. For eg. If you want to test the Spike Arrest policy you can disable the Quota policy. There is an enabled boolean flag with each policy which you can use to turn it on and off.

Let me know if that helps.

Thanks

Hi @dagadu.gaikwad - please check out my post here: https://community.apigee.com/articles/18181/unit-testing-policies-in-apigee.html

There is a link to a video that may be useful. If you are interested in using the framework, please get in touch.