Fix DefaultMapBodyOrder body sorting 04/112104/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 11 Jun 2024 18:03:45 +0000 (20:03 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 12 Jun 2024 12:16:21 +0000 (14:16 +0200)
commitb6f66eb654e77a3e20b0cd440f182eb90c1f730c
tree46b85d3076eb98e93a910cbcc548ff9b95f0d711
parente3070f198b8e7b1223c4aeaa0572d007ccb68c6d
Fix DefaultMapBodyOrder body sorting

NormalizedNodeContainer allows a MapEntryNode to return its children in
any order. That means we can very much trigger a case when body ordering
does not match expectations.

Improve test coverage to 100%, fixing the accidental UOE path as well as
improving reported messages.

JIRA: NETCONF-1325
Change-Id: Ieb6942105521928744466ec8573ca3839cb970c3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 85b4ce8affff70d8b8a31b78183f424eddf24790)
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/spi/DefaultMapBodyOrder.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/server/spi/DefaultMapBodyOrderTest.java [new file with mode: 0644]