Layer7 API Management

Expand all | Collapse all

[Policy/Service] Unit Testing

Jump to Best Answer
  • 1.  [Policy/Service] Unit Testing

    Posted 05-28-2018 09:34 AM



    I am looking for tools/utility to verify code quality[custom service/policy assertions], could you please share the list of plugins/tools for the same.


    Gateway version : 9.2




  • 2.  Re: [Policy/Service] Unit Testing
    Best Answer

    Posted 06-21-2018 02:22 PM

    Hi Tattwa,

    Do you mean the code quality of custom assertions that you are writings? Or are you talking about the quality of the policy itself?


    Custom assertions are written in Java. We use tools specific to Java when verifying the quality of them. Some tools we use are:

    • SonarQube for code quality
    • Veracode for security scanning


    If you meant the quality of the policy itself. We currently do not have any tools for that. However, we do recognize that it is definitely an important need. I've just created an idea for this: Policy Quality Scanning Tools