From 3f5a8564f29f0284377688f9d3c288baf475d57a Mon Sep 17 00:00:00 2001 From: sebdet Date: Fri, 23 Aug 2019 08:31:36 -0700 Subject: Fix the policy version Change the code so that it create right queries as policy engine expects, for the get Policy the version must be an integer for legacy interface Issue-ID: CLAMP-384 Change-Id: I1839ae65bdda1752de6cdc08a95590d14647aeb9 Signed-off-by: sebdet --- src/main/resources/clds/camel/routes/loop-flows.xml | 9 +++++++++ src/main/resources/clds/camel/routes/policy-flows.xml | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'src/main/resources/clds') diff --git a/src/main/resources/clds/camel/routes/loop-flows.xml b/src/main/resources/clds/camel/routes/loop-flows.xml index 922d5f164..036e8efc8 100644 --- a/src/main/resources/clds/camel/routes/loop-flows.xml +++ b/src/main/resources/clds/camel/routes/loop-flows.xml @@ -41,6 +41,9 @@ ${body.getModelType()} + + 1.0.0 + null @@ -59,6 +62,9 @@ onap.policies.controlloop.Operational + + 1 + ${body} @@ -79,6 +85,9 @@ onap.policies.controlloop.Guard + + 1 + null diff --git a/src/main/resources/clds/camel/routes/policy-flows.xml b/src/main/resources/clds/camel/routes/policy-flows.xml index b6f30c37c..75ac66c6c 100644 --- a/src/main/resources/clds/camel/routes/policy-flows.xml +++ b/src/main/resources/clds/camel/routes/policy-flows.xml @@ -54,9 +54,9 @@ + message="Endpoint to get policy: {{clamp.config.policy.api.url}}/policy/api/v1/policytypes/${exchangeProperty[policyType]}/versions/1.0.0/policies/${exchangeProperty[policyName]}/versions/${exchangeProperty[policyVersion]}"> + uri="{{clamp.config.policy.api.url}}/policy/api/v1/policytypes/${exchangeProperty[policyType]}/versions/1.0.0/policies/${exchangeProperty[policyName]}/versions/${exchangeProperty[policyVersion]}?bridgeEndpoint=true&useSystemProperties=true&throwExceptionOnFailure=${exchangeProperty[raiseHttpExceptionFlag]}&authMethod=Basic&authUsername={{clamp.config.policy.api.userName}}&authPassword={{clamp.config.policy.api.password}}&connectionTimeToLive=5000&httpClient.connectTimeout=10000&httpClient.socketTimeout=20000&authenticationPreemptive=true&connectionClose=true" />