From: vasraz Date: Thu, 26 Aug 2021 00:24:51 +0000 (+0100) Subject: Fix broken build X-Git-Tag: 1.9.1~29 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F123586%2F1;p=sdc.git Fix broken build Signed-off-by: Vasyl Razinkov Change-Id: I513b244dec9d420cd9314468647191f91314a3e0 Issue-ID: SDC-3687 --- diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogicTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogicTest.java index 6b52ed8d87..09aae40244 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogicTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogicTest.java @@ -1492,7 +1492,7 @@ public class ResourceBusinessLogicTest { roleProp.setName("role"); roleProp.setType("string"); vduCp.getProperties().add(roleProp); - when(toscaOperationFacade.getLatestByToscaResourceNameAndModel("tosca.nodes.nfv.VduCp", "testModel")).thenReturn(Either.left(vduCp)); + when(toscaOperationFacade.getLatestByToscaResourceNameAndModel("tosca.nodes.nfv.VduCp", "testModel_myVnf1.0")).thenReturn(Either.left(vduCp)); when(yamlTemplateParsingHandler.parseResourceInfoFromYAML(any(), any(), any(), any(), any(), any())).thenReturn(parsedToscaYamlInfo); @@ -1536,7 +1536,6 @@ public class ResourceBusinessLogicTest { }). when(toscaOperationFacade).associateOrAddCalculatedCapReq(any(), any(), any()); - when(toscaOperationFacade.updateCalculatedCapabilitiesRequirements(any(), any(), any())).thenReturn(StorageOperationStatus.OK); when(groupBusinessLogic.validateUpdateVfGroupNames(any(), any())).thenReturn(Either.left(Collections.EMPTY_MAP)); @@ -1557,7 +1556,6 @@ public class ResourceBusinessLogicTest { return Either.left(resourceResponse); }).when(toscaOperationFacade).getToscaFullElement("myVnf"); - Resource result = bl.createResourceFromCsar(resourceResponse, user, csar, "1234"); assertEquals("myDomain.myVnf", result.getToscaResourceName());