diff options
Diffstat (limited to 'catalog-be/src')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/tosca/utils/OperationArtifactUtil.java | 2 | ||||
-rw-r--r-- | catalog-be/src/test/java/org/openecomp/sdc/be/tosca/utils/OperationArtifactUtilTest.java | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/utils/OperationArtifactUtil.java b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/utils/OperationArtifactUtil.java index 401c03d44f..03c161e6d3 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/utils/OperationArtifactUtil.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/utils/OperationArtifactUtil.java @@ -64,7 +64,7 @@ public class OperationArtifactUtil { // Service Proxy is only in Node Template interface if(componentInstance != null) { return createOperationArtifactPathInService(componentInstance.getToscaComponentName() - + "_v" + component.getVersion(), operation); + + "_v" + componentInstance.getComponentVersion(), operation); } // Resource Instance is part of Node Type interface else { diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/utils/OperationArtifactUtilTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/utils/OperationArtifactUtilTest.java index 32d0acc640..3bd62b8d1c 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/utils/OperationArtifactUtilTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/utils/OperationArtifactUtilTest.java @@ -75,6 +75,7 @@ public class OperationArtifactUtilTest { component.setVersion("1.0"); ComponentInstance componentInstance = new ComponentInstance(); componentInstance.setToscaComponentName("org.openecomp.resource.vf.TestResource"); + componentInstance.setComponentVersion("1.0"); final OperationDataDefinition op = new OperationDataDefinition(); final ArtifactDataDefinition implementation = new ArtifactDataDefinition(); implementation.setArtifactName("createBPMN.bpmn"); |