From f4c3f0fcebec726ea74b44f9bca3b68e66176671 Mon Sep 17 00:00:00 2001 From: sourabh_sourabh Date: Thu, 8 Jun 2023 15:25:33 +0100 Subject: Patch # 1: Data operation response event (NCMP → Client App) to comply with CloudEvents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed header definitions (since we now use CloudEvents) - Used 'dataOperation' instead of batch where appropriate. - Modified test json Issue-ID: CPS-1724 Signed-off-by: sourabh_sourabh Change-Id: Ic0f65297b944adf9cf5f3c2cbec679a031a675ec Signed-off-by: sourabh_sourabh --- .../src/test/resources/dataOperationEvent.json | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cps-ncmp-service/src/test/resources/dataOperationEvent.json (limited to 'cps-ncmp-service/src/test/resources/dataOperationEvent.json') diff --git a/cps-ncmp-service/src/test/resources/dataOperationEvent.json b/cps-ncmp-service/src/test/resources/dataOperationEvent.json new file mode 100644 index 000000000..42268c0ef --- /dev/null +++ b/cps-ncmp-service/src/test/resources/dataOperationEvent.json @@ -0,0 +1,32 @@ +{ + "data":{ + "responses":[ + { + "operationId":"1", + "ids":[ + "123", + "124" + ], + "statusCode":1, + "statusMessage":"Batch operation success on the above cmhandle ids ", + "responseContent":{ + "ietf-netconf-monitoring:netconf-state":{ + "schemas":{ + "schema":[ + { + "identifier":"ietf-tls-server", + "version":"2016-11-02", + "format":"ietf-netconf-monitoring:yang", + "namespace":"urn:ietf:params:xml:ns:yang:ietf-tls-server", + "location":[ + "NETCONF" + ] + } + ] + } + } + } + } + ] + } +} \ No newline at end of file -- cgit 1.2.3-korg