Readding deleted line for connecting to spec hosts 55/32255/6
authormahesh.manivasagam <mahesh_manivasagam@dell.com>
Fri, 8 Jan 2016 05:41:19 +0000 (11:11 +0530)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 25 Jan 2016 16:42:51 +0000 (16:42 +0000)
Change-Id: I350a64e0435e37e1580fcf5dd1df5a3e554e0387
Signed-off-by: mahesh.manivasagam <mahesh_manivasagam@dell.com>
csit/suites/lacp/Lacp_Feature_OF13/010__lacp_inventory.robot
csit/suites/lacp/Lacp_Feature_OF13/020__lacp_lag_resiliency.robot
csit/suites/lacp/Lacp_Feature_OF13/030__lacp_flow_entry_stats.robot

index 81066dd8d097f3f30c0c28360848221e50faba5d..0bd800fcd6711153b53cdc87d82b893ca40ca5ed 100644 (file)
@@ -21,19 +21,19 @@ ${agg2-connector-id2}    4
 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}
-    Verify LACP RESTAPI Response Code for node
+    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}
-    Verify LACP RESTAPI Response Code for node
+    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}
-    Verify LACP RESTAPI Response Code for node
+    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}
     Verify LACP RESTAPI Aggregator and Tag Contents    ${resp.content}    lag-groupid
@@ -41,20 +41,21 @@ 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}
-    Verify LACP RESTAPI Response Code for node
+    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}
-    Verify LACP RESTAPI Response Code for node
+    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}
-    Verify LACP RESTAPI Response Code for node
+    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}
-    Verify LACP RESTAPI Response Code for node
+    Verify LACP RESTAPI Response Code for node    ${resp}
     Verify specific LACP node connector data for node    ${resp.content}    ${agg-id2}    agg-id
 
 *** Keywords ***
 Verify LACP RESTAPI Response Code for node
+    [Arguments]    ${resp}
     [Documentation]    Will check for the response code of the REST query
     Should Be Equal As Strings    ${resp.status_code}    200
     Should Contain    ${resp.content}    ${node1}
@@ -77,7 +78,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}
-    Verify LACP RESTAPI Response Code for node
+    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 ac9f4b4139bb01b491c153e884420f4262f46ca9..2dc4ac7c8276dbb4dd8c79bcc4785de7d8ad5ae0 100644 (file)
@@ -51,6 +51,7 @@ Verify Switch(S1) Flow and Group tables data after H2 link up scenario
 
 *** Keywords ***
 Verify LACP RESTAPI Response Code for node
+    [Arguments]    ${resp}
     [Documentation]    Will check for the response code of the REST query
     Should Be Equal As Strings    ${resp.status_code}    200
     Should Contain    ${resp.content}    ${node1}
@@ -68,7 +69,7 @@ Verify LACP RESTAPI connector associated for aggregator
 Verify LACP aggregator data is updated post link down scenario
     [Documentation]    Functionality will verify the node conenctor data on the lacp-agg api after link down scenario
     ${resp}    RequestsLibrary.Get    session    ${OPERATIONAL_NODES_API}/node/${node1}/lacp-aggregators/${agg-id2}
-    Verify LACP RESTAPI Response Code for node
+    Verify LACP RESTAPI Response Code for node    ${resp}
     Verify LACP RESTAPI connector associated for aggregator    ${resp.content}    ${node1}    ${agg2-connector-id1}
     Should not Contain    ${resp.content}    ${node1}:${agg2-connector-id2}
     Verify LACP RESTAPI Aggregator and Tag Contents    ${resp.content}    lag-groupid
@@ -76,7 +77,7 @@ Verify LACP aggregator data is updated post link down scenario
 Verify LACP aggregator data is updated post link up scenario
     [Documentation]    Functionality will verify the node connector data on the lacp-agg api after link up scenario
     ${resp}    RequestsLibrary.Get    session    ${OPERATIONAL_NODES_API}/node/${node1}/lacp-aggregators/${agg-id2}
-    Verify LACP RESTAPI Response Code for node
+    Verify LACP RESTAPI Response Code for node    ${resp}
     Verify LACP RESTAPI connector associated for aggregator    ${resp.content}    ${node1}    ${agg2-connector-id1}
     Verify LACP RESTAPI connector associated for aggregator    ${resp.content}    ${node1}    ${agg2-connector-id2}
     Verify LACP RESTAPI Aggregator and Tag Contents    ${resp.content}    lag-groupid
@@ -84,7 +85,7 @@ Verify LACP aggregator data is updated post link up scenario
 Verify LACP Tags Are Formed
     [Documentation]    Fundamental Check That LACP is working
     ${resp}    RequestsLibrary.Get    session    ${OPERATIONAL_NODES_API}
-    Verify LACP RESTAPI Response Code for node
+    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
 
@@ -98,9 +99,9 @@ Set Host interface state
     [Documentation]    Will configure the port state of the Host to either up or down
     Open Connection    ${MININET}    prompt=${DEFAULT_LINUX_PROMPT}
     Login With Public Key    ${MININET_USER}    ${USER_HOME}/.ssh/${SSH_KEY}    any
-    Execute Command    sudo ./m h2
-    Execute Command    sudo ifconfig ${port-id} ${port-state}
-    Execute Command    sudo ifconfig ${port-id}
+    Write      sudo ./m h2
+    Write      sudo ifconfig ${port-id}
+    Write      sudo ifconfig ${port-id} ${port-state}
 
 Verify Switch S1 Group Table
     [Arguments]    ${group-type}    ${port-id1}    ${port-id2}    ${port-id2-state}
index 00ad9057be2280e26ed5d2330c3decd5e54ef108..03acf697485ac2b0e4996f3fb0b59ea479ba2983 100644 (file)
@@ -40,6 +40,7 @@ Verify Switch S1 Port stats doesn't display zero value
 
 *** Keywords ***
 Verify LACP RESTAPI Response Code for node
+    [Arguments]    ${resp}
     [Documentation]    Will check for the response code of the REST query
     Should Be Equal As Strings    ${resp.status_code}    200
     Should Contain    ${resp.content}    ${node1}
@@ -52,7 +53,7 @@ Verify LACP RESTAPI Aggregator and Tag Contents
 Verify LACP Tags Are Formed
     [Documentation]    Fundamental Check That LACP is working
     ${resp}    RequestsLibrary.Get    session    ${OPERATIONAL_NODES_API}
-    Verify LACP RESTAPI Response Code for node
+    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