From d11a4dd882e3337f13a83d219001960339243ba9 Mon Sep 17 00:00:00 2001 From: Eylon Malin Date: Tue, 4 Feb 2020 23:21:33 +0200 Subject: regression unit test for getServicesByProjectNames Issue-ID: VID-758 Signed-off-by: Eylon Malin Change-Id: Ibb4f6b63448dfb53bae5c262b3d8ce4f253935e0 --- vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java | 2 +- vid-app-common/src/main/java/org/onap/vid/aai/AaiClientInterface.java | 3 ++- vid-app-common/src/main/java/org/onap/vid/services/AaiServiceImpl.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'vid-app-common/src/main/java/org') diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java b/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java index 1baca9ffa..78164462c 100644 --- a/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java @@ -149,7 +149,7 @@ public class AaiClient implements AaiClientInterface { } @Override - public AaiResponse getServicesByProjectNames(List projectNames){ + public AaiResponse getServicesByProjectNames(List projectNames){ Response resp = doAaiGet(getUrlFromLIst("business/projects?", "project-name=", projectNames), false); return processAaiResponse(resp, ProjectResponse.class, null); } diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/AaiClientInterface.java b/vid-app-common/src/main/java/org/onap/vid/aai/AaiClientInterface.java index b39b80943..b4b908cc3 100644 --- a/vid-app-common/src/main/java/org/onap/vid/aai/AaiClientInterface.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/AaiClientInterface.java @@ -31,6 +31,7 @@ import org.onap.vid.aai.model.AaiGetTenatns.GetTenantsResponse; import org.onap.vid.aai.model.ModelVer; import org.onap.vid.aai.model.OwningEntityResponse; import org.onap.vid.aai.model.PortDetailsTranslator; +import org.onap.vid.aai.model.ProjectResponse; import org.onap.vid.aai.model.Properties; import org.onap.vid.aai.model.ResourceType; import org.onap.vid.model.SubscriberList; @@ -76,7 +77,7 @@ public interface AaiClientInterface extends ProbeInterface { ModelVer getLatestVersionByInvariantId(String modelInvariantId); - AaiResponse getServicesByProjectNames(List projectNames); + AaiResponse getServicesByProjectNames(List projectNames); AaiResponse getServiceModelsByDistributionStatus(); diff --git a/vid-app-common/src/main/java/org/onap/vid/services/AaiServiceImpl.java b/vid-app-common/src/main/java/org/onap/vid/services/AaiServiceImpl.java index a992519cf..a73d690da 100644 --- a/vid-app-common/src/main/java/org/onap/vid/services/AaiServiceImpl.java +++ b/vid-app-common/src/main/java/org/onap/vid/services/AaiServiceImpl.java @@ -186,7 +186,7 @@ public class AaiServiceImpl implements AaiService { return serviceInstanceSearchResultList; } - private List getServicesByProjectNames(List projectNames, RoleValidator roleValidator) { + List getServicesByProjectNames(List projectNames, RoleValidator roleValidator) { AaiResponse projectByIdResponse = aaiClient.getServicesByProjectNames(projectNames); List serviceInstanceSearchResultList = new ArrayList<>(); if (projectByIdResponse.getT() != null) { -- cgit 1.2.3-korg