From e62912c83af828da5a3b1faed906ed4872293523 Mon Sep 17 00:00:00 2001 From: Mathias Brunkow Moser Date: Mon, 13 May 2024 17:58:13 +0200 Subject: [PATCH] chore(test): added another valid policy --- charts/digital-product-pass/values.yaml | 15 ++++++++++++++- .../src/main/resources/application.yml | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/charts/digital-product-pass/values.yaml b/charts/digital-product-pass/values.yaml index 01997a874..fa4abcd27 100644 --- a/charts/digital-product-pass/values.yaml +++ b/charts/digital-product-pass/values.yaml @@ -196,7 +196,7 @@ backend: - action: "USE" logicalConstraint: "odrl:and" constraints: - - leftOperand: "Membership" + - leftOperand: "cx-policy:Membership" operator: "odrl:eq" rightOperand: "active" - leftOperand: "cx-policy:FrameworkAgreement" @@ -207,6 +207,19 @@ backend: rightOperand: "cx.circular.dpp:1" prohibition: [] obligation: [] + - permission: + - action: "USE" + logicalConstraint: "odrl:and" + constraints: + - leftOperand: "cx-policy:Membership" + operator: "odrl:eq" + rightOperand: "active" + - leftOperand: "cx-policy:FrameworkAgreement" + operator: "odrl:eq" + rightOperand: "circulareconomy:1.0" + prohibition: [ ] + obligation: [ ] + digitalTwinRegistry: endpoints: search: "/lookup/shells" diff --git a/dpp-backend/digitalproductpass/src/main/resources/application.yml b/dpp-backend/digitalproductpass/src/main/resources/application.yml index 73f997f18..38f37f9a5 100644 --- a/dpp-backend/digitalproductpass/src/main/resources/application.yml +++ b/dpp-backend/digitalproductpass/src/main/resources/application.yml @@ -159,7 +159,7 @@ configuration: - action: "USE" logicalConstraint: "odrl:and" constraints: - - leftOperand: "Membership" + - leftOperand: "cx-policy:Membership" operator: "odrl:eq" rightOperand: "active" - leftOperand: "cx-policy:FrameworkAgreement"