Fix lispflowmapping RPC CRUD tests
authorLorand Jakab <lojakab@cisco.com>
Tue, 9 Jun 2015 08:56:34 +0000 (11:56 +0300)
committerVratko Polák <vrpolak@cisco.com>
Wed, 10 Jun 2015 10:26:48 +0000 (10:26 +0000)
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)

test/csit/suites/lispflowmapping/basic/020_RPC_CRUD.robot

index b5943a03c20c40453258fd4ebaf4bb83ddba9f60..57fd21eae2e84c2529af09a57186a729a3b08fc3 100644 (file)
@@ -11,12 +11,12 @@ Resource          ../../../libraries/Utils.txt
 
 *** 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