How to write Unit tests for policies in Azure API management service RRS feed

  • Question

  • Hi,

    We have configured the following policies in Azure API management service. 

    1. Retry policy
    2. Rewrite policy
    3. Bandwidth policy
    4. Call rate policy
    5. Error handling policy

    Please let me know how to write unit tests for these policies.

    The above policies have very important logic. So we have to write unit tests around it. Otherwise the code will be difficult to maintain in future. So please suggest best approaches which will help us to test these policies extensively with less effort. 

    Chandrasekar. V

    Saturday, August 15, 2020 3:08 AM

All replies