Fix notification serialization with odl-leaf-nodes-only 06/99806/8
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 12:19:54 +0000 (13:19 +0100)
commitc123de52b03a3ee4fba2da5e7ec18a214d3876e8
tree1501ddd035d0d9574805f609f2c1283de4ea297f
parentb4bfedfd605f0e5ed5baca676d481214e5b412ac
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>
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