Remove Dmaap from clamp 00/137200/1
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>
Fri, 2 Feb 2024 17:40:15 +0000 (17:40 +0000)
committerrameshiyer27 <ramesh.murugan.iyer@est.tech>
Fri, 9 Feb 2024 11:35:07 +0000 (11:35 +0000)
Issue-ID: POLICY-4402
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
Change-Id: Ic281bc3845622a7c8b76107bb418158d8f389034

participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/rest/ChartControllerTest.java
runtime-acm/src/test/resources/application-prometheus-noauth.yaml

index a6d6f31..82d833f 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2021-2022 Nordix Foundation.
+ *  Copyright (C) 2021-2022,2024 Nordix Foundation.
  *  Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -57,6 +57,7 @@ import org.springframework.boot.test.mock.mockito.MockBean;
 import org.springframework.context.annotation.Import;
 import org.springframework.http.MediaType;
 import org.springframework.mock.web.MockMultipartFile;
+import org.springframework.mock.web.MockPart;
 import org.springframework.test.context.junit.jupiter.SpringExtension;
 import org.springframework.test.web.servlet.MockMvc;
 import org.springframework.test.web.servlet.RequestBuilder;
@@ -191,7 +192,8 @@ class ChartControllerTest {
         when(chartService.saveChart(charts.get(0), chartFile, null)).thenReturn(charts.get(0));
 
         requestBuilder = MockMvcRequestBuilders.multipart(ONBOARD_CHART_URL)
-            .file(chartFile).file(overrideFile).param("info", getChartInfoJson());
+            .file("chartFile", chartFile.getBytes()).file("overrideFile", overrideFile.getBytes())
+                .part(new MockPart("info", getChartInfoJson().getBytes()));
 
         mockMvc.perform(requestBuilder).andExpect(status().isOk());
     }
index b344911..e961df0 100644 (file)
@@ -30,11 +30,11 @@ runtime:
         topic: POLICY-ACRUNTIME-PARTICIPANT
         servers:
           - localhost
-        topicCommInfrastructure: dmaap
+        topicCommInfrastructure: noop
         fetchTimeout: 15000
     topicSinks:
       -
-        topicCommInfrastructure: dmaap
+        topicCommInfrastructure: noop
         servers:
           - localhost
         topic: POLICY-ACRUNTIME-PARTICIPANT