From: sebdet Date: Fri, 19 Feb 2021 15:32:47 +0000 (+0100) Subject: Change PAP Urls called X-Git-Tag: 6.0.1~3^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=dadac06a2eef145528d548aa78b89227a86f3520;p=policy%2Fclamp.git Change PAP Urls called Due to the changes done on the PAP Url (+return code), the camel flows must be adapted. There is no change required for the return code PAP change as Camel already catches all non 2XX code. Issue-ID: POLICY-3068 Signed-off-by: sebdet Change-Id: I77549f944d28acd5e39e4d9e7e47688146db3681 --- diff --git a/src/main/resources/clds/camel/routes/loop-flows.xml b/src/main/resources/clds/camel/routes/loop-flows.xml index d5ab050cf..f6a838ef0 100644 --- a/src/main/resources/clds/camel/routes/loop-flows.xml +++ b/src/main/resources/clds/camel/routes/loop-flows.xml @@ -43,6 +43,9 @@ ${body.getPolicyModel().getVersion()} + + ${body.getPdpGroup()} + 1.0.0 @@ -70,8 +73,8 @@ 1.0.0 - - ${body} + + ${body.getPdpGroup()} null diff --git a/src/main/resources/clds/camel/routes/policy-flows.xml b/src/main/resources/clds/camel/routes/policy-flows.xml index dda5f2cf2..0a9c1f511 100644 --- a/src/main/resources/clds/camel/routes/policy-flows.xml +++ b/src/main/resources/clds/camel/routes/policy-flows.xml @@ -107,9 +107,9 @@ + message="Endpoint to get policy deployment status: {{clamp.config.policy.pap.url}}/policy/pap/v1/policies/status/${exchangeProperty[policyPdpGroup]}/${exchangeProperty[policyName]}/1.0.0"> + uri="{{clamp.config.policy.pap.url}}/policy/pap/v1/policies/status/${exchangeProperty[policyPdpGroup]}/${exchangeProperty[policyName]}/1.0.0?bridgeEndpoint=true&useSystemProperties=true&throwExceptionOnFailure=${exchangeProperty[raiseHttpExceptionFlag]}&authMethod=Basic&authUsername={{clamp.config.policy.pap.userName}}&authPassword={{clamp.config.policy.pap.password}}&httpClient.connectTimeout=10000&httpClient.socketTimeout=20000&authenticationPreemptive=true&connectionClose=true"/> java.lang.Exception