diff --git a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java index cc4a4db3ee..cd276d9c33 100644 --- a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java +++ b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java @@ -195,7 +195,7 @@ public Map> getAllStoredPolicies() { } public void deletePolicy(final String policyId) { - log.info("Getting all policies to find correct bpn number"); + log.info("Getting all policies to find correct BPN"); final List bpnsContainingPolicyId = PolicyHelper.findBpnsByPolicyId(getAllStoredPolicies(), policyId); if (bpnsContainingPolicyId.isEmpty()) { @@ -306,8 +306,6 @@ private List createDefaultPolicyFromConfig( new Constraint(acceptedPolicy.getLeftOperand(), new Operator(OperatorType.fromValue(acceptedPolicy.getOperator())), acceptedPolicy.getRightOperand()))); - final Policy policy = new Policy("default-policy", OffsetDateTime.now(), - OffsetDateTime.now().plusYears(DEFAULT_POLICY_LIFETIME_YEARS), final Policy policy = new Policy(ConfiguredDefaultPolicy.DEFAULT_POLICY_ID, OffsetDateTime.now(), OffsetDateTime.now().plusYears(ConfiguredDefaultPolicy.DEFAULT_POLICY_LIFETIME_YEARS), List.of(new Permission(PolicyType.USE, new Constraints(constraints, constraints))));