524 bug - %2F slashes translation behind mount point (unit test) 63/5863/1
authorJozef Gloncak <jgloncak@cisco.com>
Wed, 2 Apr 2014 09:43:31 +0000 (11:43 +0200)
committerJozef Gloncak <jgloncak@cisco.com>
Wed, 2 Apr 2014 09:57:50 +0000 (11:57 +0200)
commitaa73d997f74dbdc5f42863776aaccce2a737c763
tree6fecc6e2e16b26d273d6bdc252d364231599b500
parent59cb3e27630fb1fd965152f9e1584213e89fa62f
524 bug - %2F slashes translation behind mount point (unit test)

New test getDataWithSlashesBehindMountPoint() tests whether URI identifier
which contains slashes encoded as %2F (e.g. in key part of URI) is translated to identifier with simple slash
characters (/).

It is checked whether InstanceIdentifier instance is created with simple
slashes. The instance is then used as input parameter of method
BrokerFacade.readOperationalDataBehindMountPoint() to get data from
datastore.

If %2F are correctly replaced with / test is succesful.

Change-Id: I131bda42fb568af23d6a1b0bbb72c505db8748e3
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestGetOperationTest.java
opendaylight/md-sal/sal-rest-connector/src/test/resources/full-versions/test-module/test-module