Editing rest calls in GBP demos
[integration/test.git] / csit / suites / groupbasedpolicy / GBP / 3-node / gbp1 / 001_set_odl.robot
index fea2008905c009e804bbc2f108d0f2e3b268f718..e704ce9428a48e4a93309bf22a0c510b00c1001a 100644 (file)
@@ -18,15 +18,14 @@ Put Tunnels
     ${edited_json}    Replace String    ${json_to_edit}    _CLASSIFIER1    ${GBP1}
     ${edited_json}    Replace String    ${edited_json}    _CLASSIFIER2    ${GBP2}
     ${edited_json}    Replace String    ${edited_json}    _CLASSIFIER3    ${GBP3}
-    ${resp}    RequestsLibrary.Put Request    session    ${TUNNELS_PATH}    ${edited_json}    ${HEADERS}
-    Should Be Equal As Strings    ${resp.status_code}    200
+    Add Elements To URI And Verify    ${TUNNELS_PATH}    ${edited_json}    ${HEADERS_YANG_JSON}
 
 Register Endpoints
     [Documentation]    Endpoints registration
     @{endpoint_files} =    OperatingSystem.List Files In Directory    ${ENDPOINTS_GBP1_DIR}    vethl*.*json    absolute
     : FOR    ${endpoint_file}    IN    @{endpoint_files}
-    \    Post Elements To URI From File    ${ENDPOINT_REG_PATH}    ${endpoint_file}
+    \    Post Elements To URI From File    ${ENDPOINT_REG_PATH}    ${endpoint_file}    ${HEADERS_YANG_JSON}
 
 Put Tenant
     [Documentation]    Send GBP policy to ODL
-    Add Elements To URI From File    ${TENANT1_PATH}    ${TENANT1_FILE}
+    Add Elements To URI From File    ${TENANT1_PATH}    ${TENANT1_FILE}    ${HEADERS_YANG_JSON}