From dd6ddd5069aedb6f192f87ff0b8f56ea1848aebb Mon Sep 17 00:00:00 2001 From: angel raynov Date: Wed, 24 Jul 2024 16:34:47 +0300 Subject: [PATCH] write dummy policies for dredd --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6f99104..3c0fd7b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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