Fix dataGet() of MapEntries 69/111369/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 12 Apr 2024 16:26:32 +0000 (18:26 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 12 Apr 2024 17:14:57 +0000 (19:14 +0200)
commit4007ec19eed842466aaac39a4f65b5c36c624a31
treee7ae0d70a38dd0cb4e210f626d65a8fb61c41338
parent9e7c58b162d9c508843e14fc583d001f370eab2f
Fix dataGet() of MapEntries

Expand RestconfDataGetTest to cover more NormalizedNode structures,
verifying we are producing what we need.

This flushes out an alignment problem between XML and JSON: the latter
does need the entrypoint to be MapNode, the other does not care.

Change-Id: Ic11863b6dec5bd1a5bb860dd3d3732c5e3c53384
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/spi/NormalizedFormattableBody.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/jaxrs/RestconfDataGetTest.java