restore previous template behavior 69/34569/2
authorSmokowski, Kevin (ks6305) <ks6305@att.com>
Wed, 7 Mar 2018 20:02:33 +0000 (20:02 +0000)
committerKevin Smokowski <ks6305@att.com>
Fri, 9 Mar 2018 15:40:13 +0000 (15:40 +0000)
previously this exception was not thrown, it was caught  and ignored. This restores backwards compatibility

Change-Id: Ia07c409f47be1269f959134ddbd4aa2898004e7d
Issue-ID: CCSDK-203
Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java
restapi-call-node/provider/src/test/java/jtest/org/onap/ccsdk/sli/plugins/restapicall/TestRestapiCallNode.java

index c4ad4c5..572b204 100644 (file)
@@ -382,8 +382,7 @@ public class RestapiCallNode implements SvcLogicJavaPlugin {
             try {
                 n = Integer.parseInt(value1);
             } catch (NumberFormatException e) {
-                throw new SvcLogicException("Invalid input of repeat interval, should be an integer value " +
-                    e.getLocalizedMessage(), e);
+                log.info("value1 not set or not a number, n will remain set at zero");
             }
 
             newTemplate.append(template.substring(k, i1));
index 2da5b2c..09fa835 100644 (file)
@@ -91,7 +91,7 @@ public class TestRestapiCallNode {
         rcn.sendRequest(p, ctx);
     }
 
-    @Test(expected = SvcLogicException.class)
+    @Test
     public void testInvalidRepeatTimes() throws SvcLogicException {
         SvcLogicContext ctx = new SvcLogicContext();
         ctx.setAttribute("tmp.sdn-circuit-req-row_length", "a");