From 30e728d280b77193500a7f0941db336ee60b80a6 Mon Sep 17 00:00:00 2001 From: Idan Amit Date: Thu, 18 Jan 2018 19:07:38 +0200 Subject: Update designer configuraiton file Updated the designer configuration file to support the new display options Made sure that the old code still works Change-Id: Ia63cb89b0f8cb92fc86e0804afe7e2c2caea0541 Issue-ID: SDC-938 Signed-off-by: Idan Amit --- .../resources/config/designers-configuration.yaml | 21 +++++++++++++-------- .../sdc/fe/servlets/DesignerStatusBLTest.java | 4 ++-- 2 files changed, 15 insertions(+), 10 deletions(-) (limited to 'catalog-fe/src') diff --git a/catalog-fe/src/main/resources/config/designers-configuration.yaml b/catalog-fe/src/main/resources/config/designers-configuration.yaml index 7064619878..abdf9ea5cd 100644 --- a/catalog-fe/src/main/resources/config/designers-configuration.yaml +++ b/catalog-fe/src/main/resources/config/designers-configuration.yaml @@ -1,17 +1,22 @@ designersList: - - displayName: DCAE - designerHost: 192.168.50.5 + - designerId: DCAE + designerHost: localhost designerPort: 8080 designerPath: "/dcae" designerStateUrl: "dcae" designerProtocol: http - buttonLocation: ["top", "tab"] - tabPresentation: ["VF", "SERVICE"] - - displayName: WORKFLOW - designerHost: 192.168.50.5 + designerDisplayOptions: + tab: + displayName: "monitor" + validResourceTypes: ["VF", "SERVICE"] + top: + displayName: "DCAE" + - designerId: WORKFLOW + designerHost: localhost designerPort: 9527 designerPath: "/" designerStateUrl: "workflowDesigner" designerProtocol: http - buttonLocation: ["top"] - tabPresentation: [] \ No newline at end of file + designerDisplayOptions: + top: + displayName: "Workflow Designer" \ No newline at end of file diff --git a/catalog-fe/src/test/java/org/openecomp/sdc/fe/servlets/DesignerStatusBLTest.java b/catalog-fe/src/test/java/org/openecomp/sdc/fe/servlets/DesignerStatusBLTest.java index 00c2d206d5..0b5b9cd613 100644 --- a/catalog-fe/src/test/java/org/openecomp/sdc/fe/servlets/DesignerStatusBLTest.java +++ b/catalog-fe/src/test/java/org/openecomp/sdc/fe/servlets/DesignerStatusBLTest.java @@ -54,7 +54,7 @@ public class DesignerStatusBLTest { ConfigurationManager.setTestInstance(configurationManager); when(configurationManager.getDesignersConfiguration()).thenReturn(designersConfiguration); - offlineDesigner.setDisplayName(offlineDesignerDisplayName); + offlineDesigner.setDesignerId(offlineDesignerDisplayName); offlineDesigner.setDesignerHost(offlineDesignerHost); offlineDesigner.setDesignerPort(offlineDesignerPort); offlineDesigner.setDesignerPath(offlineDesignerPath); @@ -64,7 +64,7 @@ public class DesignerStatusBLTest { offlineRequestString.append(offlineDesignerProtocol).append("://").append(onlineDesignerHost).append(":") .append(offlineDesignerPort).append(offlineDesignerPath); - onlineDesigner.setDisplayName(onlineDesignerDisplayName); + onlineDesigner.setDesignerId(onlineDesignerDisplayName); onlineDesigner.setDesignerHost(onlineDesignerHost); onlineDesigner.setDesignerPort(onlineDesignerPort); onlineDesigner.setDesignerPath(onlineDesignerPath); -- cgit 1.2.3-korg