summaryrefslogtreecommitdiffstats
path: root/ms/gra/gra-app/src/main/java
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2021-11-29 16:01:45 -0500
committerDan Timoney <dtimoney@att.com>2021-12-02 12:58:16 -0500
commit4d0e2bd865cf490eb3f8d72dbbf02dd3ba8e5178 (patch)
treeed14c5b16345b2dab67e5b380037b95e6eb1d328 /ms/gra/gra-app/src/main/java
parent749b6f7c68f3a343ba9aae5a2f5f0f5d6d1909ea (diff)
Add test cases for gra microservice
Add test cases for GRA microservice to address test coverage being under target Issue-ID: SDNC-1638 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: If9422cdb577ef3984f17f4ef7aa2cd7e362e2fd4
Diffstat (limited to 'ms/gra/gra-app/src/main/java')
-rw-r--r--ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/controllers/ServiceDataHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/controllers/ServiceDataHelper.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/controllers/ServiceDataHelper.java
index adcd504..44cd163 100644
--- a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/controllers/ServiceDataHelper.java
+++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/controllers/ServiceDataHelper.java
@@ -280,7 +280,7 @@ public class ServiceDataHelper {
}
public boolean networkExists(String svcInstanceId, String networkId) {
- List<ConfigNetworks> configNetworks = configNetworksRepository.findBySvcInstanceId(svcInstanceId);
+ List<ConfigNetworks> configNetworks = configNetworksRepository.findBySvcInstanceIdAndNetworkId(svcInstanceId, networkId);
if ((configNetworks != null) && !configNetworks.isEmpty()) {
return(true);
} else {