summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-events/src/main
diff options
context:
space:
mode:
authorbmiklos <miklos.baranyak@est.tech>2022-07-14 17:15:43 +0200
committerbmiklos <miklos.baranyak@est.tech>2022-07-20 11:39:35 +0200
commit71e676dd1cd2ed4ae348cb686dfd6ed96a4fc5b4 (patch)
treeab0c2e1c7e742f2da31624c5e5dd7f6343de3288 /cps-ncmp-events/src/main
parent21c17c999c4787f3d11e69b246143e86a10a62df (diff)
Refractor code to use the new LcmEvent schema
-Old schema deleted and comments from tests are removed -EventDateTimeFormatter utility added -From LcmEventsCreator.populateLcmEvent the NcmpServiceCmHandle param removed and tests are fixed accordingly -Changes made in test of the LcmEventsCreator for payload testing to make it more clear Issue-ID: CPS-1147 Change-Id: Id87c81f2755a6617a0fc68ba92a3d0e3170fd20f Signed-off-by: bmiklos <miklos.baranyak@est.tech>
Diffstat (limited to 'cps-ncmp-events/src/main')
-rw-r--r--cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json81
1 files changed, 0 insertions, 81 deletions
diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json b/cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json
deleted file mode 100644
index 8685034dcd..0000000000
--- a/cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
-
- "$schema": "https://json-schema.org/draft/2019-09/schema",
- "$id": "urn:cps:org.onap.ncmp.cmhandle.lcm-event:v1",
-
- "$ref": "#/definitions/NcmpEvent",
-
- "definitions": {
-
- "NcmpEvent": {
- "description": "The payload for NCMP event.",
- "type": "object",
- "javaType" : "org.onap.ncmp.cmhandle.lcm.event.NcmpEvent",
- "properties": {
- "eventId": {
- "description": "The unique id identifying the event for the specified source.",
- "type": "string"
- },
- "eventCorrelationId": {
- "description": "The id identifying the event for the specified source.",
- "type": "string"
- },
- "eventTime": {
- "description": "The timestamp when the data has been observed.",
- "type": "string"
- },
- "eventSource": {
- "description": "The source of the event.",
- "type": "string"
- },
- "eventType": {
- "description": "The type of the event.",
- "type": "string"
- },
- "eventSchema": {
- "description": "The schema, including its version, that this event adheres to.",
- "type": "string"
- },
- "event": {
- "$ref": "#/definitions/Event"
- }
- },
- "required": [
- "eventId",
- "eventTime",
- "eventSource",
- "eventType",
- "eventSchema",
- "event"
- ],
- "additionalProperties": false
- },
-
- "Event": {
- "description": "The Payload of an event.",
- "type": "object",
- "properties": {
- "cmHandleId": {
- "description": "cmHandle id",
- "type": "string"
- },
- "cmhandle-state": {
- "description": "State of cmHandle.",
- "type": "string",
- "enum": ["ADVISED", "READY", "LOCKED", "DELETING", "DELETED"]
- },
- "cmhandle-properties": {
- "description": "cmHandle properties as json object.",
- "type": "object",
- "default": null,
- "existingJavaType": "java.util.List<java.util.Map<String,String>>",
- "additionalProperties": false
- }
- },
- "required": [
- "operation"
- ],
- "additionalProperties": false
- }
- }
-}