Updated Test references to "Library RequestsLibrary"
[integration/test.git] / test / csit / suites / openflowplugin / Groups_Meters_OF13 / 005__openflow_group.robot
index 8e390ff29f3d5d69a384df4fea6493a555bc783d..4798b89e9ebcdd1f6728e9605a8c330413e4a0ba 100644 (file)
@@ -5,7 +5,7 @@ Suite Teardown    Delete All Sessions
 Library           SSHLibrary
 Library           Collections
 Library           OperatingSystem
-Library           ../../../libraries/RequestsLibrary.py
+Library           RequestsLibrary
 Library           ../../../libraries/Common.py
 Variables         ../../../variables/Variables.py
 Resource          ../../../libraries/Utils.robot
@@ -30,7 +30,7 @@ Add a group
     [Tags]    Push
     ${body}    OperatingSystem.Get File    ${GROUP}
     Set Suite Variable    ${body}
-    ${resp}    Putxml    session    ${REST_CONTEXT_CF}/group/1    data=${body}
+    ${resp}    RequestsLibrary.Put    session    ${REST_CONTEXT_CF}/group/1    headers=${HEADERS_XML}    data=${body}
     Log    ${resp.content}
     Should Be Equal As Strings    ${resp.status_code}    200
 
@@ -51,7 +51,7 @@ Add a flow that includes a group
     [Tags]    Push
     ${body}    OperatingSystem.Get File    ${FLOW}
     Set Suite Variable    ${body}
-    ${resp}    Putxml    session    ${REST_CONTEXT_CF}/table/0/flow/1    data=${body}
+    ${resp}    RequestsLibrary.Put    session    ${REST_CONTEXT_CF}/table/0/flow/1    headers=${HEADERS_XML}    data=${body}
     Log    ${resp.content}
     Should Be Equal As Strings    ${resp.status_code}    200