Merge "[SDNC-7] summary"
authorDan Timoney <dtimoney@att.com>
Tue, 25 Apr 2017 15:39:48 +0000 (15:39 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 25 Apr 2017 15:39:48 +0000 (15:39 +0000)
29 files changed:
dblib/common/pom.xml
dblib/features/pom.xml
dblib/installer/pom.xml
dblib/pom.xml
dblib/provider/pom.xml
filters/features/pom.xml
filters/installer/pom.xml
filters/pom.xml
filters/provider/pom.xml
pom.xml
rootpom/pom.xml
sli/common/pom.xml
sli/features/pom.xml
sli/installer/pom.xml
sli/pom.xml
sli/provider/pom.xml
sli/provider/src/test/java/org/openecomp/sdnc/sli/provider/SvcLogicExpressionResolverTest.java
sli/provider/src/test/resources/expression.tests
sli/recording/pom.xml
sliPluginUtils/features/pom.xml
sliPluginUtils/installer/pom.xml
sliPluginUtils/pom.xml
sliPluginUtils/provider/pom.xml
sliapi/features/pom.xml
sliapi/installer/pom.xml
sliapi/model/pom.xml
sliapi/pom.xml
sliapi/provider/pom.xml
version.properties

index fa25c98..722d99b 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <groupId>org.openecomp.sdnc.core</groupId>
                <artifactId>dblib</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
   </parent>
   <artifactId>dblib-common</artifactId>
   <packaging>bundle</packaging>
index 8111449..f6a4b7a 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <artifactId>dblib</artifactId>
                <groupId>org.openecomp.sdnc.core</groupId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>dblib-features</artifactId>
        <name>DBLIB Adaptor - Features</name>
index 08a92e1..0646479 100755 (executable)
@@ -4,7 +4,7 @@
     <parent>
         <artifactId>dblib</artifactId>
         <groupId>org.openecomp.sdnc.core</groupId>
-        <version>1.1.0-SNAPSHOT</version>
+        <version>1.1.1-SNAPSHOT</version>
     </parent>
     <artifactId>dblib-installer</artifactId>
     <name>DBLIB Adaptor - Karaf  Installer</name>
index 5adb663..32127cb 100755 (executable)
@@ -3,7 +3,7 @@
     <parent>
         <groupId>org.openecomp.sdnc.core</groupId>
         <artifactId>sdnc-core</artifactId>
-        <version>1.1.0-SNAPSHOT</version>
+        <version>1.1.1-SNAPSHOT</version>
     </parent>
 
 
@@ -16,7 +16,7 @@
     <name>DBLIB Adaptor</name>
     <description>The DBLIB adaptor allows service logic to access persistent data in a local sql database</description>
 
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.1.1-SNAPSHOT</version>
 
     <build>
     <plugins>
index 913adf3..9d9340f 100755 (executable)
@@ -4,10 +4,10 @@
        <parent>
                <groupId>org.openecomp.sdnc.core</groupId>
                <artifactId>dblib</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>dblib-provider</artifactId>
-       <version>1.1.0-SNAPSHOT</version>
+       <version>1.1.1-SNAPSHOT</version>
        <packaging>bundle</packaging>
        <name>DBLIB Adaptor - Provider</name>
        <url>http://maven.apache.org</url>
index 89f2633..74247a6 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <artifactId>filters</artifactId>
                <groupId>org.openecomp.sdnc.core</groupId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>filters-features</artifactId>
        <name>Filters - Features</name>
index be5fd81..cc2bdfb 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <groupId>org.openecomp.sdnc.core</groupId>
                <artifactId>filters</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>filters-installer</artifactId>
        <name>Filters - Karaf  Installer</name>
index 92cd42b..01d32bf 100644 (file)
@@ -4,7 +4,7 @@
     <parent>
         <groupId>org.openecomp.sdnc.core</groupId>
         <artifactId>sdnc-core</artifactId>
-        <version>1.1.0-SNAPSHOT</version>
+        <version>1.1.1-SNAPSHOT</version>
     </parent>
 
     <modelVersion>4.0.0</modelVersion>
@@ -16,7 +16,7 @@
     <name>Filters</name>
     <description>Servlet filter to implement ECOMP logging spec</description>
 
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.1.1-SNAPSHOT</version>
 
 
 
index 3113b24..9c6efb9 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <groupId>org.openecomp.sdnc.core</groupId>
                <artifactId>filters</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>filters-provider</artifactId>
        <packaging>bundle</packaging>
diff --git a/pom.xml b/pom.xml
index 32fbd4e..b27bd6c 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
        <organization>
                <name>OpenECOMP</name>
        </organization>
-       <version>1.1.0-SNAPSHOT</version>
+       <version>1.1.1-SNAPSHOT</version>
 
 
 </project>
index a5a5a3a..b2d08fa 100755 (executable)
@@ -6,7 +6,6 @@
                <groupId>org.opendaylight.odlparent</groupId>
                <artifactId>odlparent</artifactId>
                <version>1.7.1-Boron-SR1</version>
-               <relativePath>../../../../../opendaylight/odlparent</relativePath>
        </parent>
 
 
index eb06e6b..8aa805f 100755 (executable)
@@ -3,7 +3,7 @@
        <parent>
                <artifactId>sli</artifactId>
                <groupId>org.openecomp.sdnc.core</groupId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>sli-common</artifactId>
        <packaging>bundle</packaging>
index c6a8438..d796986 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <artifactId>sli</artifactId>
                <groupId>org.openecomp.sdnc.core</groupId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>sli-features</artifactId>
        <name>SLI - Features</name>
index d025100..b26767f 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <artifactId>sli</artifactId>
                <groupId>org.openecomp.sdnc.core</groupId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>sli-installer</artifactId>
        <name>SLI - Karaf  Installer</name>
index f3fea35..49f1fe1 100755 (executable)
@@ -5,7 +5,7 @@
        <parent>
                <groupId>org.openecomp.sdnc.core</groupId>
                <artifactId>sdnc-core</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <modelVersion>4.0.0</modelVersion>
        <packaging>pom</packaging>
@@ -59,7 +59,7 @@
        <organization>
                <name>openECOMP</name>
        </organization>
-       <version>1.1.0-SNAPSHOT</version>
+       <version>1.1.1-SNAPSHOT</version>
 
 
 </project>
index a767e18..12886b0 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <groupId>org.openecomp.sdnc.core</groupId>
                <artifactId>sli</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>sli-provider</artifactId>
        <packaging>bundle</packaging>
index d35d93c..6181548 100644 (file)
@@ -35,6 +35,7 @@ import org.openecomp.sdnc.sli.provider.SvcLogicExpressionResolver;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import junit.framework.Assert;
 import junit.framework.TestCase;
 
 public class SvcLogicExpressionResolverTest extends TestCase {
@@ -50,21 +51,22 @@ public class SvcLogicExpressionResolverTest extends TestCase {
                
                try
                {
-                       String testExpr = null;
                        SvcLogicContext ctx = new SvcLogicContext();
                        SvcLogicGraph graph = new SvcLogicGraph();
                        SvcLogicNode node = new SvcLogicNode(1, "return", graph);
                        graph.setRootNode(node);
-                       
-                       while ((testExpr = testsReader.readLine()) != null) {
-                               testExpr = testExpr.trim();
-                               if (testExpr.startsWith("#"))
+
+                       String line = null;
+                       int lineNo = 0;
+                       while ((line = testsReader.readLine()) != null) {
+                               ++lineNo;
+                               if (line.startsWith("#"))
                                {
-                                       testExpr = testExpr.substring(1).trim();
+                                       String testExpr = line.trim().substring(1).trim();
                                        String[] nameValue = testExpr.split("=");
                                        String name = nameValue[0].trim();
                                        String value = nameValue[1].trim();
-                                       
+
                                        if (name.startsWith("$"))
                                        {
                                                LOG.info("Setting context attribute "+name+" = "+value);
@@ -80,6 +82,12 @@ public class SvcLogicExpressionResolverTest extends TestCase {
                                }
                                else
                                {
+                                       // if the line contains #, what comes before is the expression to evaluate, and what comes after
+                                       // is the expected value
+                                       String[] substrings = line.split("#");
+                                       String expectedValue = substrings.length > 1 ? substrings[1].trim() : null;
+                                       String testExpr = substrings[0].trim();
+
                                        LOG.info("Parsing expression "+testExpr);
                                        SvcLogicExpression expr = SvcLogicExpressionFactory.parse(testExpr);
                                        if (expr == null)
@@ -96,7 +104,10 @@ public class SvcLogicExpressionResolverTest extends TestCase {
                                                }
                                                else
                                                {
-                                                       LOG.info("Expression "+testExpr+" evaluates to "+exprValue);
+                                                       LOG.info("Expression " + testExpr + " evaluates to " + exprValue);
+                                                       if (expectedValue != null) {
+                                                               Assert.assertEquals("Line " + lineNo + ": " + testExpr, expectedValue, exprValue);
+                                                       }
                                                }
                                        }
                                }
index c5661c3..848a0e7 100755 (executable)
@@ -6,19 +6,19 @@
 # $network.segment[0].provider-segmentation-id = 1212
 # $network.segment[1].provider-segmentation-id = 1213
 # $availability-zone = mtsnj-esx-az01
-length($uni-circuit-id) > 0
-$uni-cir-units * 1000 * 100 / 100
-$uni-cir-units / 1000
-$uni-cir-units - 100
-$uni-cir-units + 100
-(value * 3 - $arg1 > 0) and (length($uni-circuit-id) == 0)
-'pg-'+$network.name
-$network.segment[0].provider-segmentation-id
-toUpperCase($network.name)
-toLowerCase($network.name)
-toUpperCase(substr($availability-zone, 0, 5))
-convertBase(1234, 10)
-convertBase(10, 16, 10)
-convertBase(ZZ, 36, 10)
-convertBase(10, 10, 36)
-(0 - 1) * $arg1
+length($uni-circuit-id) > 0 # true
+$uni-cir-units * 1000 * 100 / 100 # 10000
+$uni-cir-units / 1000 # 0
+$uni-cir-units - 100 # -90
+$uni-cir-units + 100 # 110
+(value * 3 - $arg1 > 0) and (length($uni-circuit-id) == 0) # true
+'pg-'+$network.name # pg-vCE0001.in
+$network.segment[0].provider-segmentation-id # 1212
+toUpperCase($network.name) # VCE0001.IN
+toLowerCase($network.name) # vce0001.in
+toUpperCase(substr($availability-zone, 0, 5)) # MTSNJ
+convertBase(1234, 10) # 1234
+convertBase(10, 16, 10) # 16
+convertBase(ZZ, 36, 10) # 1295
+convertBase(10, 10, 36) # a
+(0 - 1) * $arg1 # -1
index 6f00e04..f539668 100755 (executable)
@@ -4,7 +4,7 @@
   <parent>
     <groupId>org.openecomp.sdnc.core</groupId>
     <artifactId>sli</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.1.1-SNAPSHOT</version>
   </parent>
   <artifactId>sli-recording</artifactId>
   <packaging>bundle</packaging>
index 0ed4b0e..46a8b04 100755 (executable)
@@ -8,7 +8,7 @@
        <parent>
                <artifactId>sliPluginUtils</artifactId>
                <groupId>org.openecomp.sdnc.core</groupId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
 
        <name>SliPluginUtils Plugin - Features</name>
index cae4261..5562535 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <artifactId>sliPluginUtils</artifactId>
                <groupId>org.openecomp.sdnc.core</groupId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>sliPluginUtils-installer</artifactId>
        <name>SLI Plugin Utilities - Karaf  Installer</name>
index 4feabcd..d94e361 100755 (executable)
@@ -3,7 +3,7 @@
 
        <groupId>org.openecomp.sdnc.core</groupId>
        <artifactId>sliPluginUtils</artifactId>
-       <version>1.1.0-SNAPSHOT</version>
+       <version>1.1.1-SNAPSHOT</version>
        <packaging>pom</packaging>
        <modelVersion>4.0.0</modelVersion>
 
@@ -11,7 +11,7 @@
        <parent>
                <groupId>org.openecomp.sdnc.core</groupId>
                <artifactId>sdnc-core</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <name>Service Logic Interface Plugin Utilities</name>
        <description>A package of static utility functions to be used when developing SLI plugins</description>
index d7e2042..c7468e9 100755 (executable)
@@ -8,7 +8,7 @@
        <parent>
                <groupId>org.openecomp.sdnc.core</groupId>
                <artifactId>sliPluginUtils</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
 
        <name>SliPluginUtils Plugin - Provider</name>
index 02538cc..9f2ed4f 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <artifactId>sliapi</artifactId>
                <groupId>org.openecomp.sdnc.core</groupId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>sliapi-features</artifactId>
 
index e8f21eb..38646e5 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <artifactId>sliapi</artifactId>
                <groupId>org.openecomp.sdnc.core</groupId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>sliapi-installer</artifactId>
        <packaging>pom</packaging>
index 7d7e4c9..4c933b2 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <artifactId>sliapi</artifactId>
                <groupId>org.openecomp.sdnc.core</groupId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>sliapi-model</artifactId>
        <packaging>bundle</packaging>
index e613b95..c6a9b93 100755 (executable)
@@ -6,13 +6,13 @@
        <parent>
                <groupId>org.openecomp.sdnc.core</groupId>
                <artifactId>sdnc-core</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
 
        <packaging>pom</packaging>
        <groupId>org.openecomp.sdnc.core</groupId>
        <artifactId>sliapi</artifactId>
-       <version>1.1.0-SNAPSHOT</version>
+       <version>1.1.1-SNAPSHOT</version>
 
        <properties>
                <feature-name>sliapi</feature-name>
index d942912..4d78fa5 100755 (executable)
@@ -4,7 +4,7 @@
        <parent>
                <artifactId>sliapi</artifactId>
                <groupId>org.openecomp.sdnc.core</groupId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.1.1-SNAPSHOT</version>
        </parent>
        <artifactId>sliapi-provider</artifactId>
        <packaging>bundle</packaging>
index 3e97158..ca85875 100644 (file)
@@ -6,7 +6,7 @@
 
 release_name=1
 sprint_number=1
-feature_revision=0
+feature_revision=1
 
 base_version=${release_name}.${sprint_number}.${feature_revision}