Fix failing LISP tests due to implementation changes 88/27388/4
authorLorand Jakab <lojakab@cisco.com>
Tue, 29 Sep 2015 19:44:58 +0000 (22:44 +0300)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 1 Oct 2015 13:38:02 +0000 (13:38 +0000)
commit15c82276d2f3f10be7aca103f9815194c0b92f57
treedd4c182ee8591a3acfae6e23795896e921b56af7
parent842cef582fe9e3743585061a5ccb6355e5297802
Fix failing LISP tests due to implementation changes

When returning a mapping on the RESTCONF interface, the mapping service
crafted the same object as the one sent on the southbound, according to
the LISP protocol (which is a Map-Reply with no locator records, action
bit: forward native). However, getting a reply on the northbound with
HTTP code 200 when actually there is no mapping in the database is
confusing, and not what a NB user would expect. The behavior of the
mapping service was changed in Beryllium to return HTTP 404 when no
mapping is present.

This commit accounts for the above change, and additionally factors out
common variables and keywords into Variables.py and a new LISP resource
respectively.

Change-Id: Ia7c8fd2adb2408f2b1c17865bf5512307dc1e635
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
csit/libraries/LISPFlowMapping.robot [new file with mode: 0644]
csit/suites/lispflowmapping/basic/020_RPC_CRUD.robot
csit/suites/lispflowmapping/basic/030_RPC_Datatypes.robot
csit/variables/Variables.py