Changed to set source service as model info 74/92374/1
authorBoslet, Cory <cory.boslet@att.com>
Wed, 31 Jul 2019 15:23:30 +0000 (11:23 -0400)
committerBenjamin, Max (mb388a) <mb388a@att.com>
Wed, 31 Jul 2019 15:23:31 +0000 (11:23 -0400)
Changed to set source service as model info for service proxy per sniro.
Updated junit test to account for source service change.

Issue-ID: SO-2179
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: I43161f0109b62a895d5122a7b0aca0eea8694b16

bpmn/MSOCommonBPMN/src/main/java/org/onap/so/bpmn/servicedecomposition/tasks/BBInputSetupMapperLayer.java
bpmn/MSOCommonBPMN/src/test/java/org/onap/so/bpmn/servicedecomposition/tasks/BBInputSetupTest.java

index 63dd725..41cd87e 100644 (file)
@@ -581,6 +581,6 @@ public class BBInputSetupMapperLayer {
 
     protected ModelInfoServiceProxy mapServiceProxyCustomizationToServiceProxy(
             ServiceProxyResourceCustomization serviceProxyCustomization) {
-        return modelMapper.map(serviceProxyCustomization, ModelInfoServiceProxy.class);
+        return modelMapper.map(serviceProxyCustomization.getSourceService(), ModelInfoServiceProxy.class);
     }
 }
index 787957d..bff13f8 100644 (file)
@@ -2071,7 +2071,7 @@ public class BBInputSetupTest {
         ServiceProxy expected = new ServiceProxy();
         expected.setType("TRANSPORT");
         expected.setModelInfoServiceProxy(new ModelInfoServiceProxy());
-        expected.getModelInfoServiceProxy().setModelCustomizationUuid("modelCustomizationUUID");
+        expected.getModelInfoServiceProxy().setModelUuid("modelUUID");
         expected.setServiceInstance(new ServiceInstance());
         expected.getServiceInstance().setModelInfoServiceInstance(new ModelInfoServiceInstance());
         expected.getServiceInstance().getModelInfoServiceInstance().setModelUuid("modelUUID");