Update RequestsLibrary deprecated calls 87/49787/2
authorsrisankethu <sanketh.uppalapati@research.iiit.ac.in>
Sun, 25 Dec 2016 08:29:31 +0000 (13:59 +0530)
committerVratko Polák <vrpolak@cisco.com>
Tue, 3 Jan 2017 12:38:20 +0000 (12:38 +0000)
Change-Id: I348939a2888a791311cb29d3cdeae87cd888d1ff
Signed-off-by: srisankethu <sanketh.uppalapati@research.iiit.ac.in>
14 files changed:
csit/suites/armoury/basic/010_Restconf_OK.robot
csit/suites/controller/NETCONF/010__netconf_inventory.robot
csit/suites/lacp/Lacp_Feature_OF13/010__lacp_inventory.robot
csit/suites/openflowplugin/Performance_Flow_Config/020_Stats_Collection_Gauss.robot
csit/suites/openflowplugin/Performance_Flow_Config/030_Stats_Collection_Linear.robot
csit/suites/openflowplugin/Performance_Flow_Config/040_Stats_Collection_One.robot
csit/suites/openflowplugin/Performance_Flow_Config/050_Stats_Collection_FirstTable.robot
csit/suites/openflowplugin/Performance_Flow_Config/060_Stats_Collection_Basic16kScenario.robot
csit/suites/openflowplugin/Performance_Flow_Config/070_Stats_Collection_100k_WithMininetRestart.robot
csit/suites/openflowplugin/Performance_Flow_Config/080_Rpc_100k_Flows_Configuration_Time_Measure.robot
csit/suites/openflowplugin/Performance_Flow_Config/090_BulkMaticConfigDsSetup_100k.robot
csit/suites/openflowplugin/Sanity3Node/010__Flows_OF13_Cluster.robot
csit/suites/snmp/snmp-get/010__snmp_get.robot
csit/suites/usc/channel/USC_CHANNEL.robot

index 7fe98847e2a50c5d1a61c2ed0cf5ff02b3e6c8de..8ec9c49d1119c3404f770c57068b64b76b493689 100644 (file)
@@ -10,7 +10,7 @@ Resource          ../../../libraries/Utils.robot
 *** Test Cases ***
 Get Controller Modules
     [Documentation]    Get the controller modules via Restconf
-    ${resp}    RequestsLibrary.Get    session    ${MODULES_API}
+    ${resp}    RequestsLibrary.Get Request    session    ${MODULES_API}
     Log    ${resp.content}
     Should Be Equal As Strings    ${resp.status_code}    200
     Should Contain    ${resp.content}    ietf-restconf
index 2749e1779c4d3f854bc80f7f3356ac4ada5a9292..b5db3b69212e2093b9855357cbc0c2f48994a3fe 100644 (file)
@@ -26,7 +26,7 @@ Add NetConf device
     ${XML2}    Replace String    ${XML1}    127.0.0.1    ${NETOPEER}
     ${body}    Replace String    ${XML2}    mininet    ${NETOPEER_USER}
     Log    ${body}
-    ${resp}    Post    session    ${REST_CONT_CONF}/${REST_NTPR_CONF}    data=${body}
+    ${resp}    Post Request    session    ${REST_CONT_CONF}/${REST_NTPR_CONF}    data=${body}
     Log    ${resp.content}
     Should Be Equal As Strings    ${resp.status_code}    204
 
@@ -38,7 +38,7 @@ Get Controller Inventory
 Pull External Device configuration
     [Documentation]    Pull Netopeer configuration
     [Tags]    netconf
-    ${resp}    Get    session    ${REST_CONT_CONF}/${REST_NTPR_MOUNT}
+    ${resp}    Get Request    session    ${REST_CONT_CONF}/${REST_NTPR_MOUNT}
     Log    ${resp.content}
     Should Be Equal As Strings    ${resp.status_code}    200
     Should Contain    ${resp.content}    {}
@@ -46,7 +46,7 @@ Pull External Device configuration
 Verify Device Operational data
     [Documentation]    Verify Netopeer operational data
     [Tags]    exclude
-    ${resp}    Get    session    ${REST_CONT_OPER}/${REST_NTPR_MOUNT}
+    ${resp}    Get Request    session    ${REST_CONT_OPER}/${REST_NTPR_MOUNT}
     Log    ${resp.content}
     Should Be Equal As Strings    ${resp.status_code}    200
     Should Contain    ${resp.content}    schema
@@ -55,7 +55,7 @@ Verify Device Operational data
 
 *** Keywords ***
 Get Inventory
-    ${resp}    Get    session    ${REST_CONT_OPER}/node/netopeer
+    ${resp}    Get Request    session    ${REST_CONT_OPER}/node/netopeer
     Log    ${resp.content}
     Should Be Equal As Strings    ${resp.status_code}    200
     Should Contain    ${resp.content}    "node-id":"netopeer"
index 140452500a58f65ec7cc42038428cdbe5cf27f41..59410d765d987ad6241602f3dddd0b9c784f77c7 100644 (file)
@@ -20,19 +20,19 @@ ${agg2-connector-id2}    4
 *** Test Cases ***
 Get the Specific Node Inventory and Lacp aggregator details
     [Documentation]    Get the lacp-aggregator data for specific node
-    ${resp}    Get    session    ${OPERATIONAL_NODES_API}/node/${node1}
+    ${resp}    Get Request    session    ${OPERATIONAL_NODES_API}/node/${node1}
     Verify LACP RESTAPI Response Code for node    ${resp}
     Verify LACP RESTAPI Aggregator and Tag Contents    ${resp.content}    ${agg-id1}
     Verify LACP RESTAPI Aggregator and Tag Contents    ${resp.content}    ${agg-id2}
 
 Get information of each lacp-aggregator for a node
     [Documentation]    Get each lacp-aggregator data for a node
-    ${resp}    Get    session    ${OPERATIONAL_NODES_API}/node/${node1}/lacp-aggregators/${agg-id1}
+    ${resp}    Get Request    session    ${OPERATIONAL_NODES_API}/node/${node1}/lacp-aggregators/${agg-id1}
     Verify LACP RESTAPI Response Code for node    ${resp}
     Verify LACP connector associated for aggregator    ${resp.content}    ${node1}    ${agg1-connector-id1}
     Verify LACP connector associated for aggregator    ${resp.content}    ${node1}    ${agg1-connector-id2}
     Verify LACP RESTAPI Aggregator and Tag Contents    ${resp.content}    lag-groupid
-    ${resp}    Get    session    ${OPERATIONAL_NODES_API}/node/${node1}/lacp-aggregators/${agg-id2}
+    ${resp}    Get Request    session    ${OPERATIONAL_NODES_API}/node/${node1}/lacp-aggregators/${agg-id2}
     Verify LACP RESTAPI Response Code for node    ${resp}
     Verify LACP connector associated for aggregator    ${resp.content}    ${node1}    ${agg2-connector-id1}
     Verify LACP connector associated for aggregator    ${resp.content}    ${node1}    ${agg2-connector-id2}
@@ -40,16 +40,16 @@ Get information of each lacp-aggregator for a node
 
 Get node connector data for node 1
     [Documentation]    Get the node connector inventory for node 1
-    ${resp}    Get    session    ${OPERATIONAL_NODES_API}/node/${node1}/node-connector/${node1}:${agg1-connector-id1}
+    ${resp}    Get Request    session    ${OPERATIONAL_NODES_API}/node/${node1}/node-connector/${node1}:${agg1-connector-id1}
     Verify LACP RESTAPI Response Code for node    ${resp}
     Verify specific LACP node connector data for node    ${resp.content}    ${agg-id1}    agg-id
-    ${resp}    Get    session    ${OPERATIONAL_NODES_API}/node/${node1}/node-connector/${node1}:${agg1-connector-id2}
+    ${resp}    Get Request    session    ${OPERATIONAL_NODES_API}/node/${node1}/node-connector/${node1}:${agg1-connector-id2}
     Verify LACP RESTAPI Response Code for node    ${resp}
     Verify specific LACP node connector data for node    ${resp.content}    ${agg-id1}    agg-id
-    ${resp}    Get    session    ${OPERATIONAL_NODES_API}/node/${node1}/node-connector/${node1}:${agg2-connector-id1}
+    ${resp}    Get Request    session    ${OPERATIONAL_NODES_API}/node/${node1}/node-connector/${node1}:${agg2-connector-id1}
     Verify LACP RESTAPI Response Code for node    ${resp}
     Verify specific LACP node connector data for node    ${resp.content}    ${agg-id2}    agg-id
-    ${resp}    Get    session    ${OPERATIONAL_NODES_API}/node/${node1}/node-connector/${node1}:${agg2-connector-id2}
+    ${resp}    Get Request    session    ${OPERATIONAL_NODES_API}/node/${node1}/node-connector/${node1}:${agg2-connector-id2}
     Verify LACP RESTAPI Response Code for node    ${resp}
     Verify specific LACP node connector data for node    ${resp.content}    ${agg-id2}    agg-id
 
@@ -77,7 +77,7 @@ Verify specific LACP node connector data for node
 
 Verify LACP Tags Are Formed
     [Documentation]    Fundamental Check That LACP is working
-    ${resp}    Get    session    ${OPERATIONAL_NODES_API}
+    ${resp}    Get Request    session    ${OPERATIONAL_NODES_API}
     Verify LACP RESTAPI Response Code for node    ${resp}
     Verify LACP RESTAPI Aggregator and Tag Contents    ${resp.content}    non-lag-groupid
     Verify LACP RESTAPI Aggregator and Tag Contents    ${resp.content}    lacp-aggregators
index cc9ab8aa90c9e099ab4db8be2847344cecbff986..d0a6ac78d3a8003fb36d7b8def2128746132ae61 100644 (file)
@@ -64,7 +64,7 @@ Stop Switches
 
 Are Switches Connected Topo
     [Documentation]    Checks wheather switches are connected to controller
-    ${resp}=    Get    session    /restconf/operational/network-topology:network-topology/topology/flow:1    headers=${ACCEPT_XML}
+    ${resp}=    Get Request    session    /restconf/operational/network-topology:network-topology/topology/flow:1    headers=${ACCEPT_XML}
     Log    ${resp.content}
     ${count}=    Get Element Count    ${resp.content}    xpath=node
     Should Be Equal As Numbers    ${count}    ${swnr}
index e02fd72b062887ef3fd6628fe609b4cf4919dd5b..b7e44735af616f68f249ecadc42d6f07a3d3cd2a 100644 (file)
@@ -64,7 +64,7 @@ Stop Switches
 
 Are Switches Connected Topo
     [Documentation]    Checks wheather switches are connected to controller
-    ${resp}=    Get    session    /restconf/operational/network-topology:network-topology/topology/flow:1    headers=${ACCEPT_XML}
+    ${resp}=    Get Request    session    /restconf/operational/network-topology:network-topology/topology/flow:1    headers=${ACCEPT_XML}
     Log    ${resp.content}
     ${count}=    Get Element Count    ${resp.content}    xpath=node
     Should Be Equal As Numbers    ${count}    ${swnr}
index 9d309d5b43b431e990470a52c06c0cc716557b00..f7e6d3fbc85beadc1c3d8679fe1821eef56cb83a 100644 (file)
@@ -64,7 +64,7 @@ Stop Switches
 
 Are Switches Connected Topo
     [Documentation]    Checks wheather switches are connected to controller
-    ${resp}=    Get    session    /restconf/operational/network-topology:network-topology/topology/flow:1    headers=${ACCEPT_XML}
+    ${resp}=    Get Request    session    /restconf/operational/network-topology:network-topology/topology/flow:1    headers=${ACCEPT_XML}
     Log    ${resp.content}
     ${count}=    Get Element Count    ${resp.content}    xpath=node
     Should Be Equal As Numbers    ${count}    ${swnr}
index 0653e2cd2ac74a58b5743cde4d54116f45e47660..c008e5eb001e21bdab1fec383573f15cfc14e9dd 100644 (file)
@@ -64,7 +64,7 @@ Stop Switches
 
 Are Switches Connected Topo
     [Documentation]    Checks wheather switches are connected to controller
-    ${resp}=    Get    session    /restconf/operational/network-topology:network-topology/topology/flow:1    headers=${ACCEPT_XML}
+    ${resp}=    Get Request    session    /restconf/operational/network-topology:network-topology/topology/flow:1    headers=${ACCEPT_XML}
     Log    ${resp.content}
     ${count}=    Get Element Count    ${resp.content}    xpath=node
     Should Be Equal As Numbers    ${count}    ${swnr}
index 76fbae4663bf717a7a3809bb6bd293c53248f3e3..0d90064ad234a0ae6e0ba4183f311f867f4f5d98 100644 (file)
@@ -111,7 +111,7 @@ Delete Http Session
 
 Are Switches Connected Topo
     [Documentation]    Checks wheather switches are connected to controller
-    ${resp}=    Get    session    ${OPERATIONAL_TOPO_API}/topology/flow:1    headers=${ACCEPT_XML}
+    ${resp}=    Get Request    session    ${OPERATIONAL_TOPO_API}/topology/flow:1    headers=${ACCEPT_XML}
     Log    ${resp.content}
     ${count}=    Get Element Count    ${resp.content}    xpath=node
     Should Be Equal As Numbers    ${count}    ${swnr}
@@ -122,6 +122,6 @@ Check Flows Inventory
     Should Be True    ${res}
 
 Check No Switches Inventory
-    ${resp}=    Get    session    ${OPERATIONAL_NODES_API}
+    ${resp}=    Get Request    session    ${OPERATIONAL_NODES_API}
     Log    ${resp.content}
     Should Be Equal As Strings    '${resp.content}'    '{"nodes":{}}'
index 3526451946ab69f314a8726a3584eb00263eea3e..6e0ade87c15d9c95754445ca0b18e97450368271 100644 (file)
@@ -78,7 +78,7 @@ Check Flows Are Operational Again
 
 Deconfigure Flows
     [Documentation]    Flows deconfiguration
-    ${resp}=    Delete    session    ${CONFIG_NODES_API}
+    ${resp}=    Delete Request    session    ${CONFIG_NODES_API}
     Should Be Equal As Numbers    ${resp.status_code}    200
 
 Check No Flows In Operational Last
@@ -126,7 +126,7 @@ Delete Http Session And Store Plot Data
 
 Are Switches Connected Topo
     [Documentation]    Checks wheather switches are connected to controller
-    ${resp}=    Get    session    ${OPERATIONAL_TOPO_API}/topology/flow:1    headers=${ACCEPT_XML}
+    ${resp}=    Get Request    session    ${OPERATIONAL_TOPO_API}/topology/flow:1    headers=${ACCEPT_XML}
     Log    ${resp.content}
     ${count}=    Get Element Count    ${resp.content}    xpath=node
     Should Be Equal As Numbers    ${count}    ${swnr}
index 09ff91f5c6765b66fc9798c8116d2f3725d81390..3e62123cbb71cafeb4ae0fe4d471a53030571003 100644 (file)
@@ -99,7 +99,7 @@ Delete Http Session And Store Plot Data
 
 Are Switches Connected Topo
     [Documentation]    Checks wheather switches are connected to controller
-    ${resp}=    Get    session    ${OPERATIONAL_TOPO_API}/topology/flow:1    headers=${ACCEPT_XML}
+    ${resp}=    Get Request    session    ${OPERATIONAL_TOPO_API}/topology/flow:1    headers=${ACCEPT_XML}
     Log    ${resp.content}
     ${count}=    Get Element Count    ${resp.content}    xpath=node
     Should Be Equal As Numbers    ${count}    ${swnr}
index 4474e0a2b3d19c4d96655e34e538c49d30f8a9c3..71c74435e1b2b4d00941403341b8eb7f35803b7a 100644 (file)
@@ -99,7 +99,7 @@ Delete Http Session And Store Plot Data
 
 Are Switches Connected Topo
     [Documentation]    Checks wheather switches are connected to controller
-    ${resp}=    Get    session    ${OPERATIONAL_TOPO_API}/topology/flow:1    headers=${ACCEPT_XML}
+    ${resp}=    Get Request    session    ${OPERATIONAL_TOPO_API}/topology/flow:1    headers=${ACCEPT_XML}
     Log    ${resp.content}
     ${count}=    Get Element Count    ${resp.content}    xpath=node
     Should Be Equal As Numbers    ${count}    ${swnr}
index 86d4808076f1a1a3b0c9c84e6dbbcd79a693383b..1e726f0127cf576ca4847cbb1d82f9d276a65021 100644 (file)
@@ -48,7 +48,7 @@ Logging Initial Cluster Information
 Add Flow 1 To Controller1
     Init Flow Variables    1    1    1
     Log    ${data}
-    ${resp}=    Put    session1    ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}    data=${data}
+    ${resp}=    Put Request    session1    ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}    data=${data}
     Log    ${resp.content}
     ${msg}=    Set Variable    Adding flow for ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
     Should Be Equal As Strings    ${resp.status_code}    200    msg=${msg}
@@ -56,7 +56,7 @@ Add Flow 1 To Controller1
 Add Flow 2 To Controller2
     Init Flow Variables    1    2    2
     Log    ${data}
-    ${resp}=    Put    session2    ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}    data=${data}
+    ${resp}=    Put Request    session2    ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}    data=${data}
     Log    ${resp.content}
     ${msg}=    Set Variable    Adding flow for ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
     Should Be Equal As Strings    ${resp.status_code}    200    msg=${msg}
@@ -64,7 +64,7 @@ Add Flow 2 To Controller2
 Add Flow 3 To Controller3
     Init Flow Variables    1    3    3
     Log    ${data}
-    ${resp}=    Put    session3    ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}    data=${data}
+    ${resp}=    Put Request    session3    ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}    data=${data}
     Log    ${resp.content}
     ${msg}=    Set Variable    Adding flow for ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
     Should Be Equal As Strings    ${resp.status_code}    200    msg=${msg}
@@ -240,21 +240,21 @@ Check Flow 3 Operational On Controller3
 
 Delete Flow 1 On Controller1
     Init Flow Variables    1    1    1
-    ${resp}=    Delete    session1    ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
+    ${resp}=    Delete Request    session1    ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
     Log    ${resp.content}
     ${msg}=    Set Variable    Delete flow for ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
     Should Be Equal As Strings    ${resp.status_code}    200    msg=${msg}
 
 Delete Flow 2 On Controller2
     Init Flow Variables    1    2    2
-    ${resp}=    Delete    session2    ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
+    ${resp}=    Delete Request    session2    ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
     Log    ${resp.content}
     ${msg}=    Set Variable    Delete flow for ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
     Should Be Equal As Strings    ${resp.status_code}    200    msg=${msg}
 
 Delete Flow 3 On Controller3
     Init Flow Variables    1    3    3
-    ${resp}=    Delete    session3    ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
+    ${resp}=    Delete Request    session3    ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
     Log    ${resp.content}
     ${msg}=    Set Variable    Delete flow for ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
     Should Be Equal As Strings    ${resp.status_code}    200    msg=${msg}
index 7bc520a0f0662f6e9c9e640d5a5cbe8cb98c7edb..8197fc70c05d9afd9b0bb4361a870976703a472f 100644 (file)
@@ -18,6 +18,6 @@ ${DEVICE_IP}      10.86.3.13
 List connections
     [Documentation]    SNMP get
     [Tags]    SNMP get
-    ${resp}    RequestsLibrary.Post    session    ${REST_CONTEXT_SNMP_SET}    data={"input": {"ip-address": "${DEVICE_IP}","oid" : "1.3.6.1.2.1.1.1.0","get-type" : "GET-BULK","community" : "private" } }
+    ${resp}    RequestsLibrary.Post Request    session    ${REST_CONTEXT_SNMP_SET}    data={"input": {"ip-address": "${DEVICE_IP}","oid" : "1.3.6.1.2.1.1.1.0","get-type" : "GET-BULK","community" : "private" } }
     Should Be Equal As Strings    ${resp.status_code}    200
     [Teardown]    Report_Failure_Due_To_Bug    5360
index a69b1c54842f44ea525ff039918edf3fc4f561f9..ad33f59af4ffc15cd14758dc1ce199f6427c6f0d 100644 (file)
@@ -12,7 +12,7 @@ Resource          ../../../libraries/Utils.robot
 *** Test Cases ***
 Get Controller Modules
     [Documentation]    Get the controller modules via Restconf
-    ${resp}    RequestsLibrary.Get    session    ${MODULES_API}
+    ${resp}    RequestsLibrary.Get Request    session    ${MODULES_API}
     Log    ${resp.content}
     Should Be Equal As Strings    ${resp.status_code}    200
     Should Contain    ${resp.content}    ietf-restconf