diff options
author | 2016-09-29 16:26:15 +0800 | |
---|---|---|
committer | 2016-09-29 16:26:15 +0800 | |
commit | cee5085e4a3868d1dabfed4d032a7446ea49fee9 (patch) | |
tree | 2a9536a800b41c98a4a63483d120ecd2ea935228 /catalog-core/catalog-mgr/src/test | |
parent | 8f0af18222fa4474b1e405c2cd2b473b411d671c (diff) |
Clean Code. Extracting common methods.
Dynamically Obtain the download-uri of service template.
Change-Id: I79e60b6105bdad9cf9682776bc9dda7d2034fc54
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
Diffstat (limited to 'catalog-core/catalog-mgr/src/test')
-rw-r--r-- | catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/ServiceTemplateWrapperTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/ServiceTemplateWrapperTest.java b/catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/ServiceTemplateWrapperTest.java index ac87302b..1cbf2ad3 100644 --- a/catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/ServiceTemplateWrapperTest.java +++ b/catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/ServiceTemplateWrapperTest.java @@ -319,8 +319,7 @@ public class ServiceTemplateWrapperTest { private ServiceTemplateData setServiceTemplate() { ServiceTemplateData serviceTemplate = new ServiceTemplateData(); serviceTemplate.setCsarId("123456"); - serviceTemplate.setDownloadUri(MsbAddrConfig.getMsbAddress() - + "/files/catalog/NSAR/ZTE/NanocellGW/v1.0/Definitions/segw.yml"); + serviceTemplate.setDownloadUri("/Definitions/segw.yml"); String inputs = "{\"inputs\":[{\"name\": \"SubscribersPerNfc\"," + "\"type\": \"STRING\",\"description\": \"\",\"required\": false}]," + "\"outputs\":[]}"; @@ -362,7 +361,7 @@ public class ServiceTemplateWrapperTest { ServiceTemplate serviceTemplate = new ServiceTemplate(); serviceTemplate.setCsarid("123456"); serviceTemplate.setDownloadUri(MsbAddrConfig.getMsbAddress() - + "/files/catalog/NSAR/ZTE/NanocellGW/v1.0/Definitions/segw.yml"); + + "/files/catalog-http/NSAR/ZTE/NanocellGW/v1.0/NanocellGW/Definitions/segw.yml"); InputParameter[] inputs = getServiceTemplateInputs(); serviceTemplate.setInputs(inputs); ServiceTemplateOperation[] operations = getServiceTemplateOperation(); |