adding yang+json headers to PUT request
[integration/test.git] / csit / suites / sfc / Clustering_Datastore / 020_simple_clustering.robot
index bea5e411a9e15c1a1054d6df99cca9ccb175af6c..61818742708155b74d062adf448acf14255c83c4 100644 (file)
@@ -1,5 +1,5 @@
 *** Settings ***
-Documentation     Test suite for GBP Tenants, Operates functions from Restconf APIs.
+Documentation     Test suite for SFC Service Functions, Operates functions from Restconf APIs.
 Suite Teardown    Delete All Sessions
 Library           RequestsLibrary
 Library           SSHLibrary
@@ -13,17 +13,17 @@ ${SFC_API}        /restconf/config/service-function:service-functions
 ${SFC_FUNCTIONS_FILE}    ${CURDIR}/../../../variables/sfc/service-functions.json
 
 *** Test Cases ***
-Add Service Functions To One Node
+Add Service Functions To First Node
     [Documentation]    Add service functions from JSON file
     Create Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
     ${jsonbody}    Read JSON From File    ${SFC_FUNCTIONS_FILE}
-    Add Elements To URI From File    ${SFC__API}    ${SFC_FUNCTIONS_FILE}
+    Add Elements To URI From File    ${SFC_API}    ${SFC_FUNCTIONS_FILE}    ${HEADERS_YANG_JSON}
     ${resp}    RequestsLibrary.Get    session    ${SFC_API}
     Should Be Equal As Strings    ${resp.status_code}    200
     ${result}    To JSON    ${resp.content}
     Lists Should be Equal    ${result}    ${jsonbody}
 
-Read Service Functions From Other Node
+Read Service Functions From Second Node
     Create Session    session    http://${ODL_SYSTEM_2_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
     ${jsonbody}    Read JSON From File    ${SFC_FUNCTIONS_FILE}
     ${resp}    RequestsLibrary.Get    session    ${SFC_API}
@@ -31,6 +31,14 @@ Read Service Functions From Other Node
     ${result}    To JSON    ${resp.content}
     Lists Should be Equal    ${result}    ${jsonbody}
 
+Read Service Functions From Third Node
+    Create Session    session    http://${ODL_SYSTEM_3_IP}:${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
+    ${result}    To JSON    ${resp.content}
+    Lists Should be Equal    ${result}    ${jsonbody}
+
 *** Keywords ***
 Read JSON From File
     [Arguments]    ${filepath}