Skip to content

Commit

Permalink
Update policy_development.md
Browse files Browse the repository at this point in the history
  • Loading branch information
furi0us333 authored Aug 7, 2024
1 parent b8b0d41 commit 710bb1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/knowledge_base/policy_development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <YOUR POLICY>.rego --data constants.json --input input.json --schema schema --format pretty data.policy.v1`.
A policy can be evaluated using `opa eval --data <YOUR POLICY>.rego --data constants.json --input input.json --schema schema --format pretty data.policy.v1`.

| Input | Description | Provider |
| --- | --- | --- |
Expand All @@ -66,7 +66,7 @@ A policy can be evaluated using ` eval --data <YOUR POLICY>.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
{
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 710bb1b

Please sign in to comment.