Delete restconf Change-Id: I0cc4ea8375ec22b67ee93e1a02a9131f56f044c2 Signed-off-by: Tomas Cere <tcere@cisco.com>
Fix license header violations in sal-rest-connector Change-Id: I2dfda9fe6b3185d20386cc9f6078c0b53f7be40b Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
BUG 2412 - restconf @POST invokeRpc with nopayload method * migration to new faster Infrastructure API and Codecs for method @POST invokeRpc(String,String,UriInfo) on @Path {/operations/identifier} New faster Infrastructure API works with NormizedNodeContext and we are replacing rpc call method from RestconfService to use NormalizedNodeContext * add DOMRpcService -> DOMRpcRouter as rpcRoutingTable holder (it needs to change in future commit, because we have SchemaContextListener in ControllerContext and we can have own RpcRoutingTable management there * fix tests (InvokeRpcMethodTest) * ignore tests - which are not able to fix now * remove old codecs from integration test suites to be sure of using corrct codecs Change-Id: I44119bf0337a1f714991a0e003dabab2da482d23 Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
BUG 2412 - restconf @PUT updateConfigurationData method migration * migration to new faster Infrastructure API and Codecs for method @PUT updateConfigurationData(String, NormalizedNodeContext) on @Path {/config/identifier} New faster Infrastructure API works with NormizedNodeContext and we are replacing updateConfigurationData method from RestconfService to use NormalizedNodeContext. * add fix or comment tests - problem with RestconfDocumentedExceptionMapper - it has to be fixed in future commit in this chain Change-Id: Idc2294daed170c9e7dd5a5a0464a961759b34992 Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
Apply style rules on whole sal-rest-connector No changes in function of code, just formatting. Change-Id: I52bf10a3b84fa61ec35c31145acbbc6b9bf349ec Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Bug 762: Fix sal-rest-connector unit tests The cnsn-to-json/simple-data-types/xml/data.xml test file used by CnSnToJsonBasicDataTypesTest actually contains some invalid union type data. The tests currently pass because union type input data isn't currently validated. Patch https://git.opendaylight.org/gerrit/#/c/7367/ in yangtools adds validation so the unit tests must be fixed before that patch is merged. In addition, the yangtools patch changes some static fields in TypeDefinitionAwareCodec to private which breaks compilation of CnSnToXmlTest. This patch modifies CnSnToXmlTest to not use the static fields. Change-Id: I020ffacd4a6c96265a191fa74f982de807e336a4 Signed-off-by: tpantelis <tpanteli@brocade.com>
Bug 1010: Implement restconf error responses - RestconfError (new): encapsulates error information as defined in the RESTCON RFC. - RestconfDocumentedException (new): exception that wraps RestconError info. - RestconfDocumentedExceptionMapper (new): JAX-RS ExceptionMapper that translates a RestconfDocumentedException appropriately to XML or JSON depending on the user's mime type. - JsonMapper: modified to handle null child schema as restconf error-info is defined as 'anyxml' and thus no schema may be present. - ControllerContext: added getRestconfModuleErrorsSchemaNode method to obtain the 'errors' container schema from the ietf-restconf module. - Removed ResponseException and changed occurrences in various classes that threw ResponseException to throw RestconfDocumentedException instead. - Added unit tests for new classes and modified existing ones accordingly. Change-Id: Idbe6f6cae9b40ba14701ee05dfadfdd51e961c6b Signed-off-by: tpantelis <tpanteli@brocade.com>
BUG 274 REST response instead of NumberFormatException Raised NumberFormatException is now catched and thrown next as WebApplicationException which is displayed as return message for REST call. Change-Id: I1b4ee74c6a953fe3b64ef47c07477c29d892a87c Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>