From a8d3e1b8c759c21227690a425552a245da883e97 Mon Sep 17 00:00:00 2001 From: zhaoxiangjun666 Date: Thu, 10 Sep 2020 14:01:50 +0800 Subject: Support for Test Topology Auto Design- Service Import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add some test code and use lombok in catalog-model Test Topology Auto Design (NFV Testing Automatic Platform) Delete useless test code and add test code for new function Issue-ID: SDC-3179 Issue-ID: SDC-3085 Signed-off-by: zhaoxiangjun666 Change-Id: I7f555633a00848c273014caa18ea0e30d0b22113 --- catalog-ui/src/app/utils/component-factory.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'catalog-ui/src/app/utils') diff --git a/catalog-ui/src/app/utils/component-factory.ts b/catalog-ui/src/app/utils/component-factory.ts index 5fda9c8db2..fd82c27dd8 100644 --- a/catalog-ui/src/app/utils/component-factory.ts +++ b/catalog-ui/src/app/utils/component-factory.ts @@ -185,6 +185,12 @@ export class ComponentFactory { }; + public importComponentOnServer = (componentObject: Component): ng.IPromise => { + let component: Component = this.createComponent(componentObject); + return component.importComponentOnServer(); + + }; + public getComponentWithMetadataFromServer = (componentType:string, componentId:string):ng.IPromise => { let deferred = this.$q.defer(); let component = this.createEmptyComponent(componentType); -- cgit 1.2.3-korg