Fix broken build 86/123586/1
authorvasraz <vasyl.razinkov@est.tech>
Thu, 26 Aug 2021 00:24:51 +0000 (01:24 +0100)
committerVasyl Razinkov <vasyl.razinkov@est.tech>
Thu, 26 Aug 2021 00:28:57 +0000 (00:28 +0000)
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: I513b244dec9d420cd9314468647191f91314a3e0
Issue-ID: SDC-3687

catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogicTest.java

index 6b52ed8..09aae40 100644 (file)
@@ -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());