Bug 7240 - Restconf returns Status.Ok if delete fails 05/48705/2
authorJakub Toth <jatoth@cisco.com>
Fri, 25 Nov 2016 15:03:24 +0000 (16:03 +0100)
committerJakub Toth <jatoth@cisco.com>
Tue, 29 Nov 2016 10:06:40 +0000 (10:06 +0000)
commit90c9b68c357411e079f8703db9f9ea5654b791fa
tree92d522d0c9da2e57900d3b2540ffa686b687371e
parent655930e448934c1187a669f0186c16a64ba6806b
Bug 7240 - Restconf returns Status.Ok if delete fails

  * add a private class for setting Throwable object
  * if operation failed, set Throwable object to object created from
    private class
  * throw RestconfDocumentedException in Restconf (doesn't in hijack
    thread) if Throwable object isn't null
  * add test

Change-Id: I413c5d3c969969903951da876277439ac2b67d66
Signed-off-by: Jakub Toth <jatoth@cisco.com>
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/RestconfImpl.java
restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestDeleteOperationTest.java