Editing path to resources file in SFC Clustering
authorTomas Cechvala <tcechval@cisco.com>
Tue, 11 Aug 2015 15:29:48 +0000 (17:29 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 12 Aug 2015 08:24:48 +0000 (08:24 +0000)
Adding CURDIR variable into resources path.

Change-Id: I69cc2f9c1de3a829c3940c7aaf9620940fa3fafd
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
test/csit/suites/sfc/Clustering_Datastore/020_simple_clustering.robot

index e92d1663b3ebbcd1e5d7fb215f08582801ee5587..5885d8b225432d360f703e594b7ae7a1148b7d92 100644 (file)
@@ -10,13 +10,13 @@ Resource          ../../../libraries/Utils.robot
 
 *** Variables ***
 ${SFC_API}    /restconf/config/service-function:service-functions
-${SFC_FUNCTIONS_FILE}  ../../../variables/sfc/service-functions.json
+${SFC_FUNCTIONS_FILE}    ${CURDIR}/../../../variables/sfc/service-functions.json
 
 
 *** Test Cases ***
 Add Service Functions To One Node
     [Documentation]    Add service functions from JSON file
-    Create Session    session    ${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
+    Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
     ${jsonbody}    Read JSON From File    ${SFC_FUNCTIONS_FILE}
     Add Elements To URI From File    ${SFC__API}    ${SFC_FUNCTIONS_FILE}
     ${resp}    RequestsLibrary.Get    session    ${SFC_API}
@@ -25,7 +25,7 @@ Add Service Functions To One Node
     Lists Should be Equal    ${result}    ${jsonbody}
 
 Read Service Functions From Other Node
-    Create Session    session    ${CONTROLLER1}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
+    Create Session    session    http://${CONTROLLER1}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
     ${jsonbody}    Read JSON From File    ${SFC_FUNCTIONS_FILE}
     ${resp}    RequestsLibrary.Get    session    ${SFC_API}
     Should Be Equal As Strings    ${resp.status_code}   200