Post stndDefined implementation fixes 35/112035/4
authorMichal Banka <michal.banka@nokia.com>
Tue, 1 Sep 2020 13:22:19 +0000 (15:22 +0200)
committerMichal Banka <michal.banka@nokia.com>
Mon, 7 Sep 2020 11:02:31 +0000 (13:02 +0200)
Update componentspec with stndDefined properties and latest VES version.
Update ConsulConfig to match actual VES properties.
Fix 7.30.2 dataformat version name to match MOD requirments.
Update external-schema-manager version to 1.4.3
and update properties format to JSON path notation.

Change-Id: Ib01dc20de0a864beb275aec8b0dae793e588251c
Signed-off-by: Michal Banka <michal.banka@nokia.com>
Issue-ID: DCAEGEN2-2264

Changelog.md
dpo/data-formats/ConsulConfig.json
dpo/data-formats/VES-7.30.2_ONAP-dataformat.json
dpo/spec/vescollector-componentspec.json
etc/collector.properties
pom.xml

index 73291b4..c0b2b0a 100644 (file)
@@ -26,4 +26,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
 ## [1.7.3] - 10/08/2020
         - [DCAEGEN2-2264](https://jira.onap.org/browse/DCAEGEN2-2264) - Add implementation of stndDefined fields validation
 ## [1.7.4] - 04/08/2020
-        - [DCAEGEN2-2212](https://jira.onap.org/browse/DCAEGEN2-2212) - Config fetch for VESCollector through DCAE-SDK (CBS Client)        
+        - [DCAEGEN2-2212](https://jira.onap.org/browse/DCAEGEN2-2212) - Config fetch for VESCollector through DCAE-SDK (CBS Client)
+        - [DCAEGEN2-2264](https://jira.onap.org/browse/DCAEGEN2-2264) - Post stndDefined implementation fixes        
index dc04abc..f227619 100644 (file)
       }
     }
   },
-  "collector.externalSchema.2ndStageValidation": 1,
+  "collector.externalSchema.checkflag": 1,
   "collector.externalSchema.schemasLocation": "./etc/externalRepo",
   "collector.externalSchema.mappingFileLocation": "./etc/externalRepo/schema-map.json",
-  "collector.externalSchema.schemaRefPath": "/event/stndDefinedFields/schemaReference",
-  "collector.externalSchema.stndDefinedDataPath": "/event/stndDefinedFields/data",
+  "event.externalSchema.schemaRefPath": "$.event.stndDefinedFields.schemaReference",
+  "event.externalSchema.stndDefinedDataPath": "$.event.stndDefinedFields.data",
   "collector.service.secure.port": "8443",
   "auth.method": "noAuth",
   "collector.keystore.file.location": "/opt/app/VESCollector/etc/keystore",
index ec6c261..f38d54e 100644 (file)
@@ -5,11 +5,10 @@
     "description": "VES spec for v7.2"
   },
   "dataformatversion": "1.0.0",
-
     "reference": {
         "name": "Common Event Format",
         "format": "JSON",
-        "version": "30.2",
+        "version": "30.2.0",
         "url" : "https://git.onap.org/dcaegen2/collectors/ves/tree/etc/CommonEventFormat_30.2_ONAP.json"
    }
 }
index 65972c6..5c3e4d9 100644 (file)
@@ -1,6 +1,6 @@
 {
   "self": {
-    "version": "1.5.4",
+    "version": "1.7.4",
     "name": "dcae-ves-collector",
     "description": "Collector for receiving VES events through restful interface",
     "component_type": "docker"
       "sourced_at_deployment": false,
       "policy_editable": false,
       "designer_editable": false
+    },
+    {
+      "name": "collector.externalSchema.checkflag",
+      "value": 1,
+      "description": "Schema stndDefined validation flag. When enabled, collector will validate stndDefined fields in stndDefined domain events against mapped local schemas listed in file from property collector.externalSchema.mappingFileLocation.",
+      "sourced_at_deployment": false,
+      "policy_editable": false,
+      "designer_editable": true
+    },
+    {
+      "name": "collector.externalSchema.schemasLocation",
+      "value": "./etc/externalRepo/",
+      "description": "External schemas repository. Path to schemas storage directory.",
+      "sourced_at_deployment": false,
+      "policy_editable": false,
+      "designer_editable": false
+    },
+    {
+      "name": "collector.externalSchema.mappingFileLocation",
+      "value": "./etc/externalRepo/schema-map.json",
+      "description": "Path to JSON file containing mapping of externally located stndDefined schemas to local schema files.",
+      "sourced_at_deployment": false,
+      "policy_editable": false,
+      "designer_editable": false
+    },
+    {
+      "name": "event.externalSchema.schemaRefPath",
+      "value": "$.event.stndDefinedFields.schemaReference",
+      "description": "An internal path from validated JSON. Defines which field is taken as public schema reference, which is later mapped.",
+      "sourced_at_deployment": false,
+      "policy_editable": false,
+      "designer_editable": false
+    },
+    {
+      "name": "event.externalSchema.stndDefinedDataPath",
+      "value": "$.event.stndDefinedFields.data",
+      "description": "An internal path from validated JSON. Defines which field of event will be validated during stndDefined validation.",
+      "sourced_at_deployment": false,
+      "policy_editable": false,
+      "designer_editable": false
     }
   ],
   "auxilary": {
index b0bffaa..7482c5a 100755 (executable)
@@ -57,8 +57,8 @@ collector.schema.file={\"v1\":\"./etc/CommonEventFormat_27.2.json\",\"v2\":\"./e
 collector.externalSchema.checkflag=1\r
 collector.externalSchema.schemasLocation=./etc/externalRepo/\r
 collector.externalSchema.mappingFileLocation=./etc/externalRepo/schema-map.json\r
-event.externalSchema.schemaRefPath=/event/stndDefinedFields/schemaReference\r
-event.externalSchema.stndDefinedDataPath=/event/stndDefinedFields/data\r
+event.externalSchema.schemaRefPath=$.event.stndDefinedFields.schemaReference\r
+event.externalSchema.stndDefinedDataPath=$.event.stndDefinedFields.data\r
 \r
 \r
 ## List all streamid per domain to be supported. The streamid should match to channel name on dmaapfile\r
diff --git a/pom.xml b/pom.xml
index 561eca6..1b4510b 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -78,7 +78,7 @@
     <spring-boot-starter-test.version>2.1.0.RELEASE</spring-boot-starter-test.version>\r
     <api-custom-header.version>1.1.4</api-custom-header.version>\r
     <functionaljava.version>4.8.1</functionaljava.version>\r
-    <external-schema-manager.version>1.4.1</external-schema-manager.version>\r
+    <external-schema-manager.version>1.4.3</external-schema-manager.version>\r
     <sdk.version>1.4.2</sdk.version>\r
   </properties>\r
   <build>\r