updated post skip instantiation to non primitive 64/116764/1
authorKalkere Ramesh, Sharan <sharan.kalkere.ramesh@att.com>
Tue, 12 Jan 2021 18:33:06 +0000 (13:33 -0500)
committerBenjamin, Max (mb388a) <mb388a@att.com>
Tue, 12 Jan 2021 18:33:07 +0000 (13:33 -0500)
updated post skip instantiation to non primitive set default

Issue-ID: SO-3477
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: Icbc5bf21592237cf04f2653313fb69a3ff9bf8b6

adapters/mso-catalog-db-adapter/src/test/java/org/onap/so/db/catalog/client/CatalogDbClientTest.java
bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/listeners/SkipCDSBuildingBlockListener.java
bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/listeners/SkipConfigVnfListener.java
mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/VnfResourceCustomization.java

index d6f2c6d..c202170 100644 (file)
@@ -197,7 +197,8 @@ public class CatalogDbClientTest extends CatalogDbAdapterBaseTest {
         assertNotNull(vnfResourceCustomization.getVnfResources());
         assertNotNull(vnfResourceCustomization.getVfModuleCustomizations());
         assertEquals("vSAMP10a", vnfResourceCustomization.getVnfResources().getModelName());
-        assertTrue("skip post instantiation configuration", vnfResourceCustomization.isSkipPostInstConf());
+        assertTrue("skip post instantiation configuration",
+                vnfResourceCustomization.isSkipPostInstConf().booleanValue());
     }
 
     @Test
index 2119ced..564ee91 100644 (file)
@@ -84,7 +84,7 @@ public class SkipCDSBuildingBlockListener implements FlowManipulator {
                 VnfResourceCustomization vrc = catalogDbClient.findVnfResourceCustomizationInList(customizationUUID,
                         vnfResourceCustomizations);
                 if (null != vrc) {
-                    boolean skipConfigVNF = vrc.isSkipPostInstConf();
+                    boolean skipConfigVNF = vrc.isSkipPostInstConf().booleanValue();
                     currentSequenceSkipCheck(execution, skipConfigVNF);
                 }
 
index 6589ae7..83f61e3 100644 (file)
@@ -34,7 +34,7 @@ public class SkipConfigVnfListener implements FlowManipulator {
         if (vnfResourceCustomizations != null && !vnfResourceCustomizations.isEmpty()) {
             VnfResourceCustomization vrc =
                     catalogDbClient.findVnfResourceCustomizationInList(vnfCustomizationUUID, vnfResourceCustomizations);
-            boolean skipConfigVNF = vrc.isSkipPostInstConf();
+            boolean skipConfigVNF = vrc.isSkipPostInstConf().booleanValue();
             if (skipConfigVNF) {
                 execution.setVariable(BBConstants.G_CURRENT_SEQUENCE,
                         ((int) execution.getVariable(BBConstants.G_CURRENT_SEQUENCE)) + 1);
index 3e79954..1b1df21 100644 (file)
@@ -118,7 +118,7 @@ public class VnfResourceCustomization implements Serializable {
     private String blueprintVersion;
 
     @Column(name = "SKIP_POST_INSTANTIATION_CONFIGURATION")
-    private boolean skipPostInstConf;
+    private Boolean skipPostInstConf = true;
 
     @Column(name = "VNFCINSTANCEGROUP_ORDER")
     private String vnfcInstanceGroupOrder;
@@ -327,11 +327,11 @@ public class VnfResourceCustomization implements Serializable {
         this.blueprintVersion = blueprintVersion;
     }
 
-    public boolean isSkipPostInstConf() {
+    public Boolean isSkipPostInstConf() {
         return skipPostInstConf;
     }
 
-    public void setSkipPostInstConf(boolean skipPostInstConf) {
+    public void setSkipPostInstConf(Boolean skipPostInstConf) {
         this.skipPostInstConf = skipPostInstConf;
     }