From 17e3dbc0a2af683609c5d8cebdcc68884a29b1aa Mon Sep 17 00:00:00 2001 From: "Balaji, Ramya (rb111y)" Date: Wed, 23 May 2018 15:07:57 -0400 Subject: Healthcheck bug fixes Fixed code to set userid and password correctly. Also set the url in context when passed in reference artifact. Issue-ID: APPC-917 Change-Id: Iba5a873cc311ab5677b6223c08865c048dbdcf00 Signed-off-by: Balaji, Ramya (rb111y) --- .../java/org/onap/appc/artifact/handler/node/ArtifactHandlerNode.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'appc-inbound/appc-artifact-handler/provider/src') diff --git a/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/node/ArtifactHandlerNode.java b/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/node/ArtifactHandlerNode.java index 349821723..12cd7f7a5 100644 --- a/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/node/ArtifactHandlerNode.java +++ b/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/node/ArtifactHandlerNode.java @@ -76,6 +76,7 @@ import static org.onap.appc.artifact.handler.utils.SdcArtifactHandlerConstants.V import static org.onap.appc.artifact.handler.utils.SdcArtifactHandlerConstants.VNFC_INSTANCE; import static org.onap.appc.artifact.handler.utils.SdcArtifactHandlerConstants.VNFC_TYPE; import static org.onap.appc.artifact.handler.utils.SdcArtifactHandlerConstants.VNF_TYPE; +import static org.onap.appc.artifact.handler.utils.SdcArtifactHandlerConstants.URL; import com.att.eelf.configuration.EELFLogger; import com.att.eelf.configuration.EELFManager; @@ -319,6 +320,9 @@ public class ArtifactHandlerNode implements SvcLogicJavaPlugin { if (content.has(PORT_NUMBER)) { setAttribute(context, content::getString, PORT_NUMBER); } + if (content.has(URL)) { + setAttribute(context, content::getString, URL); + } processArtifactList(content, dbservice, context); processConfigTypeActions(content, dbservice, context); dbservice.processDeviceAuthentication(context, -- cgit 1.2.3-korg