From 71e676dd1cd2ed4ae348cb686dfd6ed96a4fc5b4 Mon Sep 17 00:00:00 2001 From: bmiklos Date: Thu, 14 Jul 2022 17:15:43 +0200 Subject: 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 --- cps-ncmp-service/src/test/resources/expectedLcmEvent.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cps-ncmp-service/src/test/resources/expectedLcmEvent.json (limited to 'cps-ncmp-service/src/test/resources/expectedLcmEvent.json') diff --git a/cps-ncmp-service/src/test/resources/expectedLcmEvent.json b/cps-ncmp-service/src/test/resources/expectedLcmEvent.json new file mode 100644 index 000000000..1db16ee82 --- /dev/null +++ b/cps-ncmp-service/src/test/resources/expectedLcmEvent.json @@ -0,0 +1,12 @@ +{ + "eventId": "test-uuid", + "eventCorrelationId": "cmhandle-as-correlationid", + "eventTime": "2022-12-31T20:30:40.000+0000", + "eventSource": "org.onap.ncmp", + "eventType": "org.onap.ncmp.cmhandle.lcm.event", + "eventSchema": "org.onap.ncmp.cmhandle.lcm.event", + "eventSchemaVersion": "v1", + "event": { + "cmHandleId": "cmhandle-test" + } +} \ No newline at end of file -- cgit 1.2.3-korg