OPA Policy Testing by Table Driven Test

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • go

    The Go programming language

  • In this post, I introduce how to write OPA's Policy Tests with table driven test. By applying Test Driven Test to OPA's Policy Testing, you can test various test cases simply.

  • OPA (Open Policy Agent)

    Open Policy Agent (OPA) is an open source, general-purpose policy engine.

  • In this post, I introduce how to write OPA's Policy Tests with table driven test. By applying Test Driven Test to OPA's Policy Testing, you can test various test cases simply.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • example-opa-table-driven-tests

    Example of OPA's Policy Tests like Table Driven Tests

  • I have created an example. You can define table entries as the following.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts