From 140355fd6ab11e3dec5106ef060b264857a4c775 Mon Sep 17 00:00:00 2001 From: Ramya Balaji Date: Tue, 17 Oct 2017 12:24:06 -0400 Subject: Changes for capability artifact check Ignore capability check for non VM level Start, Stop,Restart Issue-ID: APPC-281 Change-Id: I0bc888a9fbfede5923ba8b130f8ab4850559abcb Signed-off-by: Ramya Balaji --- .../appc/data/services/db/TestConfigResourceNode.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'appc-config/appc-data-services/provider/src/test') diff --git a/appc-config/appc-data-services/provider/src/test/java/org/openecomp/appc/data/services/db/TestConfigResourceNode.java b/appc-config/appc-data-services/provider/src/test/java/org/openecomp/appc/data/services/db/TestConfigResourceNode.java index edfc76f93..ee4db30b8 100644 --- a/appc-config/appc-data-services/provider/src/test/java/org/openecomp/appc/data/services/db/TestConfigResourceNode.java +++ b/appc-config/appc-data-services/provider/src/test/java/org/openecomp/appc/data/services/db/TestConfigResourceNode.java @@ -26,6 +26,7 @@ package org.openecomp.appc.data.services.db; import java.util.HashMap; import java.util.Map; +import static org.junit.Assert.assertFalse; import org.junit.Test; import org.openecomp.appc.data.services.AppcDataServiceConstant; import org.openecomp.appc.data.services.node.ConfigResourceNode; @@ -148,4 +149,13 @@ public class TestConfigResourceNode { node.saveConfigBlock(inParams, ctx); } + @Test + public void testcheckIfCapabilityCheckNeeded () throws Exception { + ConfigResourceNode node = new ConfigResourceNode(); + String findCapability="Start"; + String capLevel="vnf"; + boolean result=node.checkIfCapabilityCheckNeeded(capLevel,findCapability); + assertFalse(result); + } + } -- cgit 1.2.3-korg