Contact Us 1-800-596-4880

Testing and Debugging Custom Policies

Use the Policy Development Kit (PDK) testing options to validate behavior, catch regressions, and debug before you publish your policy to Exchange:

  • Debugging Custom Policies with the PDK Debugging Playground — Use the preconfigured API instance in your project’s playground directory to exercise and debug the policy interactively.

  • Writing Unit Tests: Run fast, deterministic Rust unit tests that exercise the full request and response lifecycle without configuring Envoy, WebAssembly, or external services.

  • Writing Integration Tests: Run automated tests on a local mode Flex Gateway to verify your policy with real gateway behavior and surrounding configuration.