Conftest verify
conftest_verifyExecute test rules in Rego test files to validate policy correctness, producing pass/fail results per file.
Instructions
Run the test_* rules inside *_test.rego files within a conftest policy directory, verifying that the policies themselves are correct. Equivalent to opa test but using conftest's policy-loading machinery. Returns per-file pass/fail results. Requires conftest on PATH or CONFTEST_BINARY set; returns CONFTEST_NOT_FOUND otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | No | Path to the directory containing both the Rego policies and the `*_test.rego` test files. Must be inside an allowed root (OPA_MCP_ALLOWED_PATHS). Omit to use conftest's default `./policy` directory. | |
| namespace | No | Namespace to verify. Defaults to `main`. Omit to verify all namespaces. | |
| data | No | Paths to data directories. Each must be inside an allowed root (OPA_MCP_ALLOWED_PATHS). |