Bug 7240 - Restconf returns Status.Ok if delete fails 83/48783/1
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 12:46:33 +0000 (12:46 +0000)
commita96e53c9cb5b902aa66232cb175fe00ade3a4475
tree3f389d33bd36f5c415e2fe232fdaeb829208d501
parent7c43e0b0e18fcda26907903b15659b2cdb2bb5e1
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