Fix RPC/action output writeout 87/110487/5
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Mar 2024 09:40:42 +0000 (10:40 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Mar 2024 10:40:30 +0000 (11:40 +0100)
commitd55953d293d5f791d2a158a079c5f6316fc3d87a
tree1d1dc3691ddc2125c014ad76edfc38e4d9dcec57
parent02ff0d10f495da1e27de7d5c38237a071070ae74
Fix RPC/action output writeout

AbstractNormalizedNodeBodyWriter's dispatch logic falls through to
writeData(), which ends up wrecking the output.

Add missing return statements and improve tests to cover these.

JIRA: NETCONF-1266
Change-Id: I5ab83bf7b6b79d54dedc76ce4785f120dfe61304
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/AbstractNormalizedNodeBodyWriter.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/jaxrs/AbstractRestconfTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/jaxrs/Netconf799Test.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/jaxrs/RestconfOperationsPostTest.java
restconf/restconf-nb/src/test/resources/instanceidentifier/yang/instance-identifier-module.yang