Resource Resolution Service: Source Rest
authorSingal, Kapil (ks220y) <ks220y@att.com>
Sun, 20 Jan 2019 22:49:52 +0000 (17:49 -0500)
committerSingal, Kapil (ks220y) <ks220y@att.com>
Sun, 20 Jan 2019 23:07:36 +0000 (18:07 -0500)
Complex Data Processing for Primary-Config-Data DataSource Resource Resolution Service

Change-Id: I62492b5c4e3c0b831f9027df5d42c6b80186debc
Issue-ID: CCSDK-674
Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
31 files changed:
components/core/src/test/resources/dictionary/dictionary_schema.json
components/model-catalog/blueprint-model/service-blueprint/vFW/Definitions/vFW_spinup.json
components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/baseconfig-mapping.json
components/model-catalog/blueprint-model/starter-blueprint/baseconfiguration/Definitions/resources_definition_types.json
components/model-catalog/resource-dictionary/starter-dictionary/image_name.json
components/model-catalog/resource-dictionary/starter-dictionary/key_name.json
components/model-catalog/resource-dictionary/starter-dictionary/mdsal-source.json
components/model-catalog/resource-dictionary/starter-dictionary/onap_private_net_id.json
components/model-catalog/resource-dictionary/starter-dictionary/onap_private_subnet_id.json
components/model-catalog/resource-dictionary/starter-dictionary/pub_key.json
components/model-catalog/resource-dictionary/starter-dictionary/sample-licenses.json
components/model-catalog/resource-dictionary/starter-dictionary/sample-mdsal-source.json
components/model-catalog/resource-dictionary/starter-dictionary/vfw_private_ip_0.json
components/model-catalog/resource-dictionary/starter-dictionary/vfw_private_ip_1.json
components/model-catalog/resource-dictionary/starter-dictionary/vnf-name.json
components/model-catalog/resource-dictionary/starter-dictionary/vnf_name.json
components/model-catalog/resource-dictionary/starter-dictionary/vpg_private_ip_0.json
components/model-catalog/resource-dictionary/starter-dictionary/vsn_private_ip_0.json
components/resource-dict/load/resource_dictionary/mdsal-source.json
components/resource-dict/load/resource_dictionary/vfw_private_ip_0.json
components/resource-dict/load/resource_dictionary/vfw_private_ip_1.json
components/resource-dict/load/resource_dictionary/vnf-name.json
components/resource-dict/load/resource_dictionary/vnf_name.json
components/resource-dict/load/resource_dictionary/vpg_private_ip_0.json
components/resource-dict/load/resource_dictionary/vsn_private_ip_0.json
components/resource-dict/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/resource/dict/ResourceDictionaryConstants.kt
components/resource-dict/src/test/java/org/onap/ccsdk/apps/controllerblueprints/resource/dict/factory/ResourceSourceMappingFactoryTest.java
components/resource-dict/src/test/kotlin/org/onap/ccsdk/apps/controllerblueprints/resource/dict/utils/ResourceDictionaryTestUtils.kt
components/resource-dict/src/test/resources/validation/cyclic.json
components/resource-dict/src/test/resources/validation/duplicate.json
components/resource-dict/src/test/resources/validation/success.json

index f9ef9ee..51db5f5 100644 (file)
@@ -54,7 +54,7 @@
                                "aai": {\r
                                        "type": "any"\r
                                },\r
-                               "mdsal": {\r
+                               "primary-config-data": {\r
                                        "type": "object",\r
                                        "properties": {\r
                                                "path": {\r
                                                }\r
                                        }\r
                                },\r
-                               "mdsal": {\r
+                               "primary-config-data": {\r
                                        "type": "object",\r
                                        "properties": {\r
                                                "names": {\r
index 13847bb..4484d55 100644 (file)
                   },
                   "input-param": false,
                   "dictionary-name": "vnf-name",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "image_name",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "key_name",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "pub_key",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "onap_private_net_id",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "onap_private_subnet_id",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "vnf-name",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "image_name",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "key_name",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "pub_key",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "onap_private_net_id",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "onap_private_subnet_id",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "vfw_private_ip_0",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "vsn_private_ip_0",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "vpg_private_ip_0",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "vnf-name",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "image_name",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "key_name",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "pub_key",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "onap_private_net_id",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "onap_private_subnet_id",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "vfw_private_ip_1",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
                   },
                   "input-param": false,
                   "dictionary-name": "vnf-name",
-                  "dictionary-source": "mdsal",
+                  "dictionary-source": "primary-config-data",
                   "dependencies": [
                     "service-instance-id",
                     "vnf-id"
index c457086..67d2a91 100644 (file)
@@ -27,7 +27,7 @@
       "type": "string"
     },
     "dictionary-name": "vnf_name",
-    "dictionary-source": "mdsal",
+    "dictionary-source": "primary-config-data",
     "dependencies": [
       "service-instance-id",
       "vnf-id"
index 37ef5ae..57a0ef3 100755 (executable)
@@ -10,7 +10,7 @@
     "input": {
       "type": "source-input"
     },
-    "mdsal": {
+    "primary-config-data": {
       "type": "source-rest",
       "properties": {
         "type": "JSON",
index 1f1b3e6..6eb8d92 100755 (executable)
@@ -10,7 +10,7 @@
     "input": {
       "type": "source-input"
     },
-    "mdsal": {
+    "primary-config-data": {
       "type": "source-rest",
       "properties": {
         "type": "JSON",
index 300a71f..67661ec 100755 (executable)
@@ -7,7 +7,7 @@
   },
   "updated-by": "brindasanth@onap.com",
   "sources": {
-    "mdsal": {
+    "primary-config-data": {
       "type": "source-rest",
       "properties": {
         "type": "JSON",
index bb70fe3..3dd74f7 100755 (executable)
@@ -10,7 +10,7 @@
     "input": {
       "type": "source-input"
     },
-    "mdsal": {
+    "primary-config-data": {
       "type": "source-rest",
       "properties": {
         "type": "JSON",
index d38ceb4..6cb22c3 100755 (executable)
@@ -10,7 +10,7 @@
     "input": {
       "type": "source-input"
     },
-    "mdsal": {
+    "primary-config-data": {
       "type": "source-rest",
       "properties": {
         "type": "JSON",
index ce6c2f2..fe172ca 100755 (executable)
@@ -10,7 +10,7 @@
     "input": {
       "type": "source-input"
     },
-    "mdsal": {
+    "primary-config-data": {
       "type": "source-rest",
       "properties": {
         "type": "JSON",
index 5834dd4..c0f78ac 100644 (file)
@@ -11,7 +11,7 @@
   },\r
   "updated-by": "brindasanth@onap.com",\r
   "sources": {\r
-    "mdsal": {\r
+    "primary-config-data": {\r
       "type": "source-rest",\r
       "properties": {\r
         "type": "JSON",\r
index 25464d3..75d7ca0 100644 (file)
@@ -7,7 +7,7 @@
   },\r
   "updated-by": "brindasanth@onap.com",\r
   "sources": {\r
-    "mdsal": {\r
+    "primary-config-data": {\r
       "type": "source-rest",\r
       "properties": {\r
         "type": "JSON",\r
index 71a4df2..4c227f9 100755 (executable)
@@ -12,7 +12,7 @@
       "properties" : {
       }
     },
-    "mdsal" : {
+    "primary-config-data" : {
       "type" : "source-rest",
       "properties" : {
         "type" : "JSON",
index 481edae..0df08c0 100755 (executable)
@@ -12,7 +12,7 @@
       "properties" : {
       }
     },
-    "mdsal" : {
+    "primary-config-data" : {
       "type" : "source-rest",
       "properties" : {
         "type" : "JSON",
index 89b3dc1..4c0320a 100755 (executable)
@@ -7,7 +7,7 @@
     "type" : "string"
   },
   "sources" : {
-    "mdsal" : {
+    "primary-config-data" : {
       "type" : "source-rest",
       "properties" : {
         "type" : "JSON",
index c55f1c1..e9d8a3b 100755 (executable)
@@ -7,7 +7,7 @@
     "type" : "string"
   },
   "sources" : {
-    "mdsal" : {
+    "primary-config-data" : {
       "type" : "source-rest",
       "properties" : {
         "type" : "JSON",
index 13d8999..586aa0c 100755 (executable)
@@ -12,7 +12,7 @@
       "properties" : {
       }
     },
-    "mdsal" : {
+    "primary-config-data" : {
       "type" : "source-rest",
       "properties" : {
         "type" : "JSON",
index fcd6d8d..1fe4797 100755 (executable)
@@ -12,7 +12,7 @@
       "properties" : {
       }
     },
-    "mdsal" : {
+    "primary-config-data" : {
       "type" : "source-rest",
       "properties" : {
         "type" : "JSON",
index b38986a..fa72e5d 100644 (file)
@@ -7,7 +7,7 @@
   },\r
   "updated-by": "brindasanth@onap.com",\r
   "sources": {\r
-    "mdsal": {\r
+    "primary-config-data": {\r
       "type": "source-rest",\r
       "properties": {\r
         "type": "JSON",\r
index 7c8d4f4..59f5151 100644 (file)
@@ -13,7 +13,7 @@
         "key" : "vfw_private_ip_0"
       }
     },
-    "mdsal" : {
+    "primary-config-data" : {
       "type" : "source-rest",
       "properties" : {
         "type" : "JSON",
index 0553b8c..6dda72f 100644 (file)
@@ -13,7 +13,7 @@
         "key" : "vfw_private_ip_1"
       }
     },
-    "mdsal" : {
+    "primary-config-data" : {
       "type" : "source-rest",
       "properties" : {
         "type" : "JSON",
index 47371d1..708030e 100644 (file)
@@ -7,7 +7,7 @@
     "type" : "string"\r
   },\r
   "sources" : {\r
-    "mdsal" : {\r
+    "primary-config-data" : {\r
       "type" : "source-rest",\r
       "properties" : {\r
         "type" : "JSON",\r
index 4617a26..3164367 100644 (file)
@@ -7,7 +7,7 @@
     "type" : "string"\r
   },\r
   "sources" : {\r
-    "mdsal" : {\r
+    "primary-config-data" : {\r
       "type" : "source-rest",\r
       "properties" : {\r
         "type" : "JSON",\r
index 912cfb9..9bef3c7 100644 (file)
@@ -13,7 +13,7 @@
         "key" : "vpg_private_ip_0"
       }
     },
-    "mdsal" : {
+    "primary-config-data" : {
       "type" : "source-rest",
       "properties" : {
         "type" : "JSON",
index bf98738..52a4542 100644 (file)
@@ -13,7 +13,7 @@
         "key" : "vsn_private_ip_0"
       }
     },
-    "mdsal" : {
+    "primary-config-data" : {
       "type" : "source-rest",
       "properties" : {
         "type" : "JSON",
index 0004b02..aa06c9d 100644 (file)
@@ -24,7 +24,7 @@ package org.onap.ccsdk.apps.controllerblueprints.resource.dict
 object ResourceDictionaryConstants {
     const val SOURCE_INPUT = "input"
     const val SOURCE_DEFAULT = "default"
-    const val SOURCE_MDSAL = "mdsal"
+    const val SOURCE_PRIMARY_CONFIG_DATA = "primary-config-data"
     const val SOURCE_PRIMARY_DB = "primary-db"
 
     const val MODEL_DIR_RESOURCE_DEFINITION: String = "resource_dictionary"
index 3f5aef4..f11638e 100644 (file)
@@ -28,7 +28,7 @@ public class ResourceSourceMappingFactoryTest {
         ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("primary-db", "source-primary-db");\r
         ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("input", "source-input");\r
         ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("default", "source-default");\r
-        ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("mdsal", "source-rest");\r
+        ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("primary-config-data", "source-rest");\r
 \r
         String nodeTypeName = ResourceSourceMappingFactory.INSTANCE.getRegisterSourceMapping("primary-db");\r
         Assert.notNull(nodeTypeName, "Failed to get primary-db mapping");\r
index 50e5c32..74ef6d6 100644 (file)
@@ -25,6 +25,6 @@ object ResourceDictionaryTestUtils {
         ResourceSourceMappingFactory.registerSourceMapping("primary-db", "source-primary-db")\r
         ResourceSourceMappingFactory.registerSourceMapping("input", "source-input")\r
         ResourceSourceMappingFactory.registerSourceMapping("default", "source-default")\r
-        ResourceSourceMappingFactory.registerSourceMapping("mdsal", "source-rest")\r
+        ResourceSourceMappingFactory.registerSourceMapping("primary-config-data", "source-rest")\r
     }\r
 }
\ No newline at end of file
index 7e6472f..98cd144 100644 (file)
@@ -29,7 +29,7 @@
       "required": true\r
     },\r
     "dictionary-name": "bundle-id",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "vnf-id"\r
     ]\r
@@ -42,7 +42,7 @@
       "required": true\r
     },\r
     "dictionary-name": "bundle-ip",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "vnf-id"\r
     ]\r
@@ -54,7 +54,7 @@
       "type": "string"\r
     },\r
     "dictionary-name": "bundle-mac",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "vnf-id",\r
       "bundle-id"\r
@@ -67,7 +67,7 @@
       "type": "string"\r
     },\r
     "dictionary-name": "managed-ip",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "loopback-ip"\r
     ]\r
@@ -90,7 +90,7 @@
       "type": "string"\r
     },\r
     "dictionary-name": "managed-ip1",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "loopback-ip"\r
     ]\r
index 28ab71f..7581ff6 100644 (file)
@@ -29,7 +29,7 @@
       "required": true\r
     },\r
     "dictionary-name": "bundle-id",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "vnf-id"\r
     ]\r
@@ -42,7 +42,7 @@
       "required": true\r
     },\r
     "dictionary-name": "bundle-ip",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "vnf-id"\r
     ]\r
@@ -54,7 +54,7 @@
       "type": "string"\r
     },\r
     "dictionary-name": "bundle-mac",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "vnf-id",\r
       "bundle-id"\r
@@ -67,7 +67,7 @@
       "type": "string"\r
     },\r
     "dictionary-name": "bundle-mac",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "loopback-ip"\r
     ]\r
@@ -90,7 +90,7 @@
       "type": "string"\r
     },\r
     "dictionary-name": "managed-ip1",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "loopback-ip"\r
     ]\r
index 5d0e898..486251d 100644 (file)
@@ -29,7 +29,7 @@
       "required": true\r
     },\r
     "dictionary-name": "bundle-id",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "vnf-id"\r
     ]\r
@@ -42,7 +42,7 @@
       "required": true\r
     },\r
     "dictionary-name": "bundle-ip",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "vnf-id"\r
     ]\r
@@ -54,7 +54,7 @@
       "type": "string"\r
     },\r
     "dictionary-name": "bundle-mac",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "vnf-id",\r
       "bundle-id"\r
@@ -67,7 +67,7 @@
       "type": "string"\r
     },\r
     "dictionary-name": "managed-ip",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "loopback-ip"\r
     ]\r
@@ -90,7 +90,7 @@
       "type": "string"\r
     },\r
     "dictionary-name": "managed-ip1",\r
-    "dictionary-source": "mdsal",\r
+    "dictionary-source": "primary-config-data",\r
     "dependencies": [\r
       "loopback-ip"\r
     ]\r