From b75c36362e7f64577733255f6c80757e05ea0bed Mon Sep 17 00:00:00 2001 From: rameshiyer27 Date: Fri, 2 Feb 2024 17:40:15 +0000 Subject: Remove Dmaap from clamp Issue-ID: POLICY-4402 Signed-off-by: rameshiyer27 Change-Id: Ic281bc3845622a7c8b76107bb418158d8f389034 --- .../clamp/acm/participant/kubernetes/rest/ChartControllerTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'participant/participant-impl/participant-impl-kubernetes') diff --git a/participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/rest/ChartControllerTest.java b/participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/rest/ChartControllerTest.java index a6d6f315a..82d833f0b 100644 --- a/participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/rest/ChartControllerTest.java +++ b/participant/participant-impl/participant-impl-kubernetes/src/test/java/org/onap/policy/clamp/acm/participant/kubernetes/rest/ChartControllerTest.java @@ -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()); } -- cgit 1.2.3-korg l?h=1.2.1&id=04454012bdf43b8b16cb168b27ef7d4f3c72eb77'>diffstats
blob: 6c4e138f0f84d697bc3e88bf77f7c3899a84bfdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71