From 09d8a86e2126ccc9a12456ddead12a5fe8f58697 Mon Sep 17 00:00:00 2001 From: brunomilitzer Date: Mon, 30 Aug 2021 18:40:01 +0100 Subject: Fixed Delete Instance Properties Endpoint Fixed issue regarding that control loops was not getting instantiated Fixed issue regarding state change that was not receiving paramaters Added appropriate Camel Endpoints Unit tests will be applied on POLICY-3568 and POLICY-3567 Issue-ID: POLICY-3558 Change-Id: I11a1093bdb16651fe1c0ad8e267ded5390267a30 Signed-off-by: brunomilitzer --- .../resources/clds/camel/rest/clamp-api-v2.xml | 91 +++++++++++++++++++++- .../clds/camel/routes/controlloop-flows.xml | 70 ++++++++++++++++- 2 files changed, 158 insertions(+), 3 deletions(-) (limited to 'runtime/src') diff --git a/runtime/src/main/resources/clds/camel/rest/clamp-api-v2.xml b/runtime/src/main/resources/clds/camel/rest/clamp-api-v2.xml index f800efe8d..55e1f8ad1 100644 --- a/runtime/src/main/resources/clds/camel/rest/clamp-api-v2.xml +++ b/runtime/src/main/resources/clds/camel/rest/clamp-api-v2.xml @@ -1587,6 +1587,50 @@ + + + + + false + + + application/json + + + + + + + + java.lang.Exception + + true + + + + + + 500 + + + Deleting Tosca Instantiation FAILED + + + + + + + message="GET Tosca Instantiation Order State JSON request failed: ${exception.stacktrace}"/> 500 - GET Tosca Instantiation JSON FAILED + GET Tosca Instantiation Order State JSON FAILED @@ -1802,6 +1846,49 @@ + + + + + false + + + application/json + + + + + + + + java.lang.Exception + + true + + + + + + 500 + + + Deleting Tosca Instance Properties FAILED + + + + + diff --git a/runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml b/runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml index 12b43dd9f..ac83ffd7a 100644 --- a/runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml +++ b/runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml @@ -110,6 +110,37 @@ + + + + + + + DELETE + + + application/json + + + ${header.name} + + + ${header.version} + + + + + + + + + + @@ -135,6 +166,37 @@ + + + + + + + DELETE + + + application/json + + + ${header.name} + + + ${header.version} + + + + + + + + + + @@ -198,10 +260,16 @@ application/json + + ${header.name} + + + ${header.version} + + uri="{{clamp.config.controlloop.runtime.url}}/onap/controlloop/v2/instantiationState?name=${exchangeProperty[name]}&version=${exchangeProperty[version]}&bridgeEndpoint=true&useSystemProperties=true&throwExceptionOnFailure=${exchangeProperty[raiseHttpExceptionFlag]}&authMethod=Basic&authUsername={{clamp.config.controlloop.runtime.userName}}&authPassword={{clamp.config.controlloop.runtime.password}}&authenticationPreemptive=true&connectionClose=true"/> -- cgit 1.2.3-korg