From 0373f194c665e21fcc73babdad3da66a691251a1 Mon Sep 17 00:00:00 2001 From: sourabh_sourabh Date: Wed, 16 Aug 2023 13:16:25 +0100 Subject: Modify data operation schema to accommodate additional information - Data operation schema is updated to add resourceIdentifier and options. - dmi plugin stub is modified to add both the attributes into kafka response message. Issue-ID:CPS-1837 Signed-off-by: sourabh_sourabh Change-Id: I624c32d07ccf396f3090766049622f43f5c3f44f --- .../onap/cps/ncmp/dmi/rest/stub/controller/DmiRestStubController.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dmi-plugin-demo-and-csit-stub') diff --git a/dmi-plugin-demo-and-csit-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/DmiRestStubController.java b/dmi-plugin-demo-and-csit-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/DmiRestStubController.java index 275331e18..987436feb 100644 --- a/dmi-plugin-demo-and-csit-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/DmiRestStubController.java +++ b/dmi-plugin-demo-and-csit-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/DmiRestStubController.java @@ -164,6 +164,8 @@ public class DmiRestStubController { response.setStatusCode(NcmpEventResponseCode.SUCCESS.getStatusCode()); response.setStatusMessage(NcmpEventResponseCode.SUCCESS.getStatusMessage()); response.setIds(dataOperationRequest.getCmHandles().stream().map(CmHandle::getId).collect(Collectors.toList())); + response.setResourceIdentifier(dataOperationRequest.getResourceIdentifier()); + response.setOptions(dataOperationRequest.getOptions()); final String ietfNetworkTopologySample = ResourceFileReaderUtil .getResourceFileContent(applicationContext.getResource( ResourceLoader.CLASSPATH_URL_PREFIX -- cgit 1.2.3-korg