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 <jeff.van.dam@est.tech>
Change-Id: I7c0798346a221e703da58902b9d631115de8d91a
Signed-off-by: halil.cakal <halil.cakal@est.tech>
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
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/avc-event-schema-1.0.0.json
similarity index 71%
rename from cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/attribute-value-change-event-schema-1.0.0.json
rename to cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/avc-event-schema-1.0.0.json
index 9dee00e..d24ec2c 100644
--- 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/avc-event-schema-1.0.0.json
@@ -1,10 +1,10 @@
{
"$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",
+ "$id": "urn:cps:org.onap.cps.ncmp.events:avc-event-schema:1.0.0",
+ "$ref": "#/definitions/AvcEvent",
"definitions": {
- "AttributeValueChangeEvent": {
- "javaType": "org.onap.cps.ncmp.events.avc.ncmp_to_client.AttributeValueChangeEvent",
+ "AvcEvent": {
+ "javaType": "org.onap.cps.ncmp.events.avc.ncmp_to_client.AvcEvent",
"type": "object",
"additionalProperties": false,
"properties": {
@@ -15,7 +15,7 @@
"required": [
"data"
],
- "title": "AttributeValueChangeEvent"
+ "title": "AvcEvent"
},
"Data": {
"type": "object",
@@ -24,16 +24,16 @@
"attributeValueChange": {
"type": "array",
"items": {
- "$ref": "#/definitions/AttributeValueChange"
+ "$ref": "#/definitions/Avc"
}
}
},
"required": [
- "attributeValueChange"
+ "avc"
],
"title": "Data"
},
- "AttributeValueChange": {
+ "Avc": {
"type": "object",
"additionalProperties": false,
"properties": {
@@ -50,7 +50,7 @@
"required": [
"attributeName"
],
- "title": "AttributeValueChange"
+ "title": "avc"
}
}
}
\ No newline at end of file