From a1b6bef1eea5144fb9a6f33b89f2daf914415e08 Mon Sep 17 00:00:00 2001 From: FrancescoFioraEst Date: Tue, 12 Jul 2022 14:50:18 +0100 Subject: Remove usage of jackson libraries from clamp runtime acm Issue-ID: POLICY-4105 Change-Id: I04488a8a246e4c161e9a9eca86634844aba27872 Signed-off-by: FrancescoFioraEst --- .../resources/clds/camel/rest/clamp-api-v2.xml | 35 ---------------------- .../main/resources/clds/camel/routes/acm-flows.xml | 28 ----------------- .../RuntimeCommissioningResponseItTestCase.java | 14 --------- 3 files changed, 77 deletions(-) (limited to 'runtime') 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 7db468024..23eb6b37d 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 @@ -1713,41 +1713,6 @@ - - - - - - - - application/json - - - true - - - - - java.lang.Exception - - true - - - - - 500 - - - GET JSON Schema FAILED - - - - - - - - - - - - - GET - - - application/json - - - ${header.section} - - - - - - - - - - diff --git a/runtime/src/test/java/org/onap/policy/clamp/runtime/RuntimeCommissioningResponseItTestCase.java b/runtime/src/test/java/org/onap/policy/clamp/runtime/RuntimeCommissioningResponseItTestCase.java index 8c9c5b3e4..2d82dde86 100644 --- a/runtime/src/test/java/org/onap/policy/clamp/runtime/RuntimeCommissioningResponseItTestCase.java +++ b/runtime/src/test/java/org/onap/policy/clamp/runtime/RuntimeCommissioningResponseItTestCase.java @@ -48,20 +48,6 @@ public class RuntimeCommissioningResponseItTestCase { + " \"topology_template\": {}," + " \"name\": \"ToscaServiceTemplateSimple\", \"version\": \"1.0.0\", \"metadata\": {}}"; - @Test - public void testToscaServiceTemplateSchemaStatus() { - ProducerTemplate prodTemplate = camelContext.createProducerTemplate(); - - Exchange exchangeResponse = - prodTemplate.send("direct:get-json-schema", ExchangeBuilder.anExchange(camelContext) - .withProperty("section", "data_types") - .withProperty("raiseHttpExceptionFlag", "true") - .build()); - - assertThat(HttpStatus.valueOf((Integer) exchangeResponse.getIn().getHeader(Exchange.HTTP_RESPONSE_CODE)) - .is2xxSuccessful()).isTrue(); - } - @Test public void testToscaServiceTemplateStatus() { ProducerTemplate prodTemplate = camelContext.createProducerTemplate(); -- cgit 1.2.3-korg