From 2e71615fa27cefd1aee3fb85d04907f3d95d5d14 Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Mon, 27 Nov 2023 15:58:54 +0000 Subject: Publish trust level notification event - Add mapper that maps attribute value change event to cloud event - Add publisher that publish the cloud event from ncmp to client - Handle notifications for the uses cases below - Initial registration case - Device heart beat consumer case - Dmi status changes within dmi watchdog case - Added tests for mapper, publisher, and trustLevelManager - Added test for dmi watchdog Issue-ID: CPS-1910 Signed-off-by: JvD_Ericsson Change-Id: I7c0798346a221e703da58902b9d631115de8d91a Signed-off-by: halil.cakal Signed-off-by: JvD_Ericsson --- .../attribute-value-change-event-schema-1.0.0.json | 56 ---------------------- .../ncmpdataavc/avc-event-schema-1.0.0.json | 56 ++++++++++++++++++++++ 2 files changed, 56 insertions(+), 56 deletions(-) delete mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/attribute-value-change-event-schema-1.0.0.json create mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/avc-event-schema-1.0.0.json (limited to 'cps-ncmp-events') diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/attribute-value-change-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/attribute-value-change-event-schema-1.0.0.json deleted file mode 100644 index 9dee00e21e..0000000000 --- a/cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/attribute-value-change-event-schema-1.0.0.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "urn:cps:org.onap.cps.ncmp.events:attribute-value-change-event-schema:1.0.0", - "$ref": "#/definitions/AttributeValueChangeEvent", - "definitions": { - "AttributeValueChangeEvent": { - "javaType": "org.onap.cps.ncmp.events.avc.ncmp_to_client.AttributeValueChangeEvent", - "type": "object", - "additionalProperties": false, - "properties": { - "data": { - "$ref": "#/definitions/Data" - } - }, - "required": [ - "data" - ], - "title": "AttributeValueChangeEvent" - }, - "Data": { - "type": "object", - "additionalProperties": false, - "properties": { - "attributeValueChange": { - "type": "array", - "items": { - "$ref": "#/definitions/AttributeValueChange" - } - } - }, - "required": [ - "attributeValueChange" - ], - "title": "Data" - }, - "AttributeValueChange": { - "type": "object", - "additionalProperties": false, - "properties": { - "attributeName": { - "type": "string" - }, - "oldAttributeValue": { - "type": "string" - }, - "newAttributeValue": { - "type": "string" - } - }, - "required": [ - "attributeName" - ], - "title": "AttributeValueChange" - } - } -} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/avc-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/avc-event-schema-1.0.0.json new file mode 100644 index 0000000000..d24ec2c737 --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/avc-event-schema-1.0.0.json @@ -0,0 +1,56 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps.ncmp.events:avc-event-schema:1.0.0", + "$ref": "#/definitions/AvcEvent", + "definitions": { + "AvcEvent": { + "javaType": "org.onap.cps.ncmp.events.avc.ncmp_to_client.AvcEvent", + "type": "object", + "additionalProperties": false, + "properties": { + "data": { + "$ref": "#/definitions/Data" + } + }, + "required": [ + "data" + ], + "title": "AvcEvent" + }, + "Data": { + "type": "object", + "additionalProperties": false, + "properties": { + "attributeValueChange": { + "type": "array", + "items": { + "$ref": "#/definitions/Avc" + } + } + }, + "required": [ + "avc" + ], + "title": "Data" + }, + "Avc": { + "type": "object", + "additionalProperties": false, + "properties": { + "attributeName": { + "type": "string" + }, + "oldAttributeValue": { + "type": "string" + }, + "newAttributeValue": { + "type": "string" + } + }, + "required": [ + "attributeName" + ], + "title": "avc" + } + } +} \ No newline at end of file -- cgit 1.2.3-korg