From 710bb1b8d3d3a305db0761121995f52a695f1509 Mon Sep 17 00:00:00 2001 From: Brad Crawford <34108612+furi0us333@users.noreply.github.com> Date: Wed, 7 Aug 2024 18:14:38 -0500 Subject: [PATCH] Update policy_development.md --- docs/knowledge_base/policy_development.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/knowledge_base/policy_development.md b/docs/knowledge_base/policy_development.md index 75fdda81..011a340b 100644 --- a/docs/knowledge_base/policy_development.md +++ b/docs/knowledge_base/policy_development.md @@ -56,7 +56,7 @@ Note: You can obtain a Job ID by using the [`phylum history`](../cli/commands/ph ## Evaluating policies locally -A policy can be evaluated using ` eval --data .rego --data constants.json --input input.json --schema schema --format pretty data.policy.v1`. +A policy can be evaluated using `opa eval --data .rego --data constants.json --input input.json --schema schema --format pretty data.policy.v1`. | Input | Description | Provider | | --- | --- | --- | @@ -66,7 +66,7 @@ A policy can be evaluated using ` eval --data .rego --data constant | `schema` | location of the schema files | Phylum | | `data.phylum.job` | entry point | Static value | -If everything is working, you will receive JSON output from `` that looks like this: +If everything is working, you will receive JSON output from `opa` that looks like this: ```json { @@ -119,7 +119,7 @@ test_allow_medium if { ``` -This test requires `constants.json` from the Phylum SDK. The test can be executed against the Phylum `default.rego` policy using ` test constants.json default.rego example_test.rego`. +This test requires `constants.json` from the Phylum SDK. The test can be executed against the Phylum `default.rego` policy using `opa test constants.json default.rego example_test.rego`. ## Evaluating policies using the Phylum API