Skip to content

Commit

Permalink
write dummy policies for dredd
Browse files Browse the repository at this point in the history
  • Loading branch information
angelraynovft committed Jul 24, 2024
1 parent 3fcf6c2 commit dd6ddd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ jobs:
- run:
name: Add a dummy OPA policy.
command: |
curl -X PUT http://localhost:8181/v1/policies/publication_based_authorization -H 'Content-Type: text/plain' --data-raw 'package draft_annotations_api.publication_based_authorization is_authorized {true}'
curl -X PUT http://localhost:8181/v1/policies/read -H 'Content-Type: text/plain' --data-raw 'package draft_annotations_api.read is_authorized {true}'
curl -X PUT http://localhost:8181/v1/policies/write -H 'Content-Type: text/plain' --data-raw 'package draft_annotations_api.write is_authorized {true}'
- run:
name: Dredd API Testing
command: dredd
Expand Down

0 comments on commit dd6ddd5

Please sign in to comment.