Relative path names are causing the lispflowmapping RPC CRUD tests to
fail with the error message:
IOError: [Errno 2] No such file or directory:
u'/opt/variables/lispflowmapping/rpc_add-key_ipv4.json'
Adding the ${CURDIR} variable in front of the path should fix the issue.
Change-Id: I63d7ef22b0aa9a7907cb529dc3440bcba7a2b577
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit
8b48459de4a846213156e81848afe935432b96d4)
*** Variables ***
${RPC_URL_PREFIX} /restconf/operations/lfm-mapping-database
*** Variables ***
${RPC_URL_PREFIX} /restconf/operations/lfm-mapping-database
-${IPV4_C_KEY} ../../../variables/lispflowmapping/rpc_add-key_ipv4.json
-${IPV4_RD} ../../../variables/lispflowmapping/rpc_get-remove_ipv4.json
-${MISS_RD} ../../../variables/lispflowmapping/rpc_get-remove_missing.json
-${IPV4_U_KEY} ../../../variables/lispflowmapping/rpc_update-key_ipv4.json
-${IPV4_C_MAP} ../../../variables/lispflowmapping/rpc_add-mapping_ipv4_ipv4.json
-${IPV4_U_MAP} ../../../variables/lispflowmapping/rpc_update-mapping_ipv4_ipv4.json
+${IPV4_C_KEY} ${CURDIR}/../../../variables/lispflowmapping/rpc_add-key_ipv4.json
+${IPV4_RD} ${CURDIR}/../../../variables/lispflowmapping/rpc_get-remove_ipv4.json
+${MISS_RD} ${CURDIR}/../../../variables/lispflowmapping/rpc_get-remove_missing.json
+${IPV4_U_KEY} ${CURDIR}/../../../variables/lispflowmapping/rpc_update-key_ipv4.json
+${IPV4_C_MAP} ${CURDIR}/../../../variables/lispflowmapping/rpc_add-mapping_ipv4_ipv4.json
+${IPV4_U_MAP} ${CURDIR}/../../../variables/lispflowmapping/rpc_update-mapping_ipv4_ipv4.json
*** Test Cases ***
Create Key
*** Test Cases ***
Create Key