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
protected ModelInfoServiceProxy mapServiceProxyCustomizationToServiceProxy(
ServiceProxyResourceCustomization serviceProxyCustomization) {
- return modelMapper.map(serviceProxyCustomization, ModelInfoServiceProxy.class);
+ return modelMapper.map(serviceProxyCustomization.getSourceService(), ModelInfoServiceProxy.class);
}
}
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");