Bug 5509 - HTTP Patch in Restconf doesn't support general absolute or relative target... 95/38195/44
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Thu, 28 Apr 2016 14:23:53 +0000 (16:23 +0200)
committerIvan Hrasko <ihrasko@cisco.com>
Mon, 18 Jul 2016 13:54:43 +0000 (15:54 +0200)
commitcb084f27c4c28285cec44f5cd11634b54b2dcc1c
treeecda5505c8c2a8be6814c78d185c01450e3f746b
parentccbba407d2b0febc831db6cfe87b52a82d012f19
Bug 5509 - HTTP Patch in Restconf doesn't support general absolute or relative target xpath

- yang patch for xml media now supports relative or absolute xpaths
- only create, merge, replace and insert operations require value to be present
- if value is not present with create, merge, replace or insert operation
then error 400 is returned
- if value is used with other operations then error 400 is returned
- deleting sublist values instead of full parent
- support for multiple values
- added unit tests

Change-Id: I9828ceb7368760642b22b3a336884b949f0edfcc
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
opendaylight/restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/rest/impl/StringModuleInstanceIdentifierCodec.java
opendaylight/restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/rest/impl/XmlToPATCHBodyReader.java
opendaylight/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/AbstractBodyReaderTest.java
opendaylight/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/TestXmlPATCHBodyReader.java
opendaylight/restconf/sal-rest-connector/src/test/resources/instanceidentifier/xml/xmlPATCHdataAbsoluteTargetPath.xml [new file with mode: 0644]
opendaylight/restconf/sal-rest-connector/src/test/resources/instanceidentifier/xml/xmlPATCHdataValueMissing.xml [new file with mode: 0644]
opendaylight/restconf/sal-rest-connector/src/test/resources/instanceidentifier/xml/xmlPATCHdataValueNotSupported.xml [new file with mode: 0644]