From 05d0a1772ba64089db033e1e4ce55e0549aef81d Mon Sep 17 00:00:00 2001 From: Piotr Darosz Date: Mon, 2 Sep 2019 09:42:33 +0200 Subject: catalog-be code coverage increase Added tests for ArtifactExternalServlet Change-Id: Ic20e172e910f9c5e18d3f43f78a10a36c588f16d Issue-ID: SDC-2326 Signed-off-by: Piotr Darosz --- .../openecomp/sdc/be/externalapi/servlet/ArtifactExternalServlet.java | 1 + 1 file changed, 1 insertion(+) (limited to 'catalog-be/src/main/java') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/externalapi/servlet/ArtifactExternalServlet.java b/catalog-be/src/main/java/org/openecomp/sdc/be/externalapi/servlet/ArtifactExternalServlet.java index a4e465eaf8..6975cd9941 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/externalapi/servlet/ArtifactExternalServlet.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/externalapi/servlet/ArtifactExternalServlet.java @@ -1125,6 +1125,7 @@ public class ArtifactExternalServlet extends AbstractValidationsServlet { } } catch (ComponentException e) { responseFormat = getComponentsUtils().getResponseFormat(e); + responseWrapper.setInnerElement(buildErrorResponse(responseFormat)); } finally { getComponentsUtils().auditExternalDownloadArtifact(responseFormat, new ResourceCommonInfo(resourceInstanceName, componentTypeValue), -- cgit 1.2.3-korg