Fix notification serialization with odl-leaf-nodes-only 42/100242/1
authorPeter Puškár <ppuskar@frinx.io>
Mon, 14 Feb 2022 12:44:52 +0000 (13:44 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 24 Mar 2022 13:48:39 +0000 (14:48 +0100)
commit22ebe3e32aeac9983ad546dfc39e11514bf0e51e
tree99ee0976beffebaef5be441e36498f5cb3751ff8
parent7232c981c36337f1ed5c3237cda3602e4234e20f
Fix notification serialization with odl-leaf-nodes-only

Rather than attempting to roll a SchemaPath from PathArguments, use the
provided tool to perform that function -- in a centralized manner.

Add tests to cover serialization of augmentation and choice nodes.

JIRA: NETCONF-848
Change-Id: I9f6dffd9532bd3d52021bbac58473c3cf3b58937
Signed-off-by: Peter Puškár <ppuskar@frinx.io>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit c123de52b03a3ee4fba2da5e7ec18a214d3876e8)
13 files changed:
restconf/restconf-common-models/src/main/yang/augment-iip-module.yang [new file with mode: 0644]
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/formatters/JSONDataTreeCandidateFormatter.java
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/serializer/AbstractWebsocketSerializer.java
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/serializer/JsonDataTreeCandidateSerializer.java
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/serializer/XmlDataTreeCandidateSerializer.java
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/ListenerAdapterTest.java
restconf/restconf-nb-rfc8040/src/test/resources/instanceidentifier/yang/augment-iip-module.yang [new file with mode: 0644]
restconf/restconf-nb-rfc8040/src/test/resources/listener-adapter-test/notif-leaves-create.json
restconf/restconf-nb-rfc8040/src/test/resources/listener-adapter-test/notif-leaves-create.xml
restconf/restconf-nb-rfc8040/src/test/resources/listener-adapter-test/notif-leaves-del.json
restconf/restconf-nb-rfc8040/src/test/resources/listener-adapter-test/notif-leaves-delete.xml [new file with mode: 0644]
restconf/restconf-nb-rfc8040/src/test/resources/listener-adapter-test/notif-leaves-update.json
restconf/restconf-nb-rfc8040/src/test/resources/listener-adapter-test/notif-leaves-update.xml