-*** Settings ***\r
-Documentation Test suite for RESTCONF LACP inventory\r
-Suite Setup LACP Inventory Suite Setup\r
-Suite Teardown Delete All Sessions\r
-Library SSHLibrary\r
-Library Collections\r
-Library RequestsLibrary\r
-Library ../../../libraries/Common.py\r
-Variables ../../../variables/Variables.py\r
-\r
-*** Variables ***\r
-${node1} openflow:1\r
-${agg-id1} 1\r
-${agg-id2} 2\r
-${agg1-connector-id1} 1\r
-${agg1-connector-id2} 2\r
-${agg2-connector-id1} 3\r
-${agg2-connector-id2} 4\r
-\r
-*** Test Cases ***\r
-Get the Specific Node Inventory and Lacp aggregator details\r
- [Documentation] Get the lacp-aggregator data for specific node\r
- ${resp} Get session ${OPERATIONAL_NODES_API}/node/${node1}\r
- Verify LACP RESTAPI Response Code for node\r
- Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} ${agg-id1}\r
- Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} ${agg-id2}\r
-\r
-Get information of each lacp-aggregator for a node\r
- [Documentation] Get each lacp-aggregator data for a node\r
- ${resp} Get session ${OPERATIONAL_NODES_API}/node/${node1}/lacp-aggregators/${agg-id1}\r
- Verify LACP RESTAPI Response Code for node\r
- Verify LACP connector associated for aggregator ${resp.content} ${node1} ${agg1-connector-id1}\r
- Verify LACP connector associated for aggregator ${resp.content} ${node1} ${agg1-connector-id2}\r
- Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} lag-groupid\r
- ${resp} Get session ${OPERATIONAL_NODES_API}/node/${node1}/lacp-aggregators/${agg-id2}\r
- Verify LACP RESTAPI Response Code for node\r
- Verify LACP connector associated for aggregator ${resp.content} ${node1} ${agg2-connector-id1}\r
- Verify LACP connector associated for aggregator ${resp.content} ${node1} ${agg2-connector-id2}\r
- Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} lag-groupid\r
-\r
-Get node connector data for node 1\r
- [Documentation] Get the node connector inventory for node 1\r
- ${resp} Get session ${OPERATIONAL_NODES_API}/node/${node1}/node-connector/${node1}:${agg1-connector-id1}\r
- Verify LACP RESTAPI Response Code for node\r
- Verify specific LACP node connector data for node ${resp.content} ${agg-id1} agg-id\r
- ${resp} Get session ${OPERATIONAL_NODES_API}/node/${node1}/node-connector/${node1}:${agg1-connector-id2}\r
- Verify LACP RESTAPI Response Code for node\r
- Verify specific LACP node connector data for node ${resp.content} ${agg-id1} agg-id\r
- ${resp} Get session ${OPERATIONAL_NODES_API}/node/${node1}/node-connector/${node1}:${agg2-connector-id1}\r
- Verify LACP RESTAPI Response Code for node\r
- Verify specific LACP node connector data for node ${resp.content} ${agg-id2} agg-id\r
- ${resp} Get session ${OPERATIONAL_NODES_API}/node/${node1}/node-connector/${node1}:${agg2-connector-id2}\r
- Verify LACP RESTAPI Response Code for node\r
- Verify specific LACP node connector data for node ${resp.content} ${agg-id2} agg-id\r
-\r
-*** Keywords ***\r
-Verify LACP RESTAPI Response Code for node\r
- [Documentation] Will check for the response code of the REST query\r
- Should Be Equal As Strings ${resp.status_code} 200\r
- Should Contain ${resp.content} ${node1}\r
-\r
-Verify LACP RESTAPI Aggregator and Tag Contents\r
- [Arguments] ${resp.content} ${content-lookup}\r
- [Documentation] Will check for the LACP Specific tags or Aggregator ID for node\r
- Should Contain ${resp.content} ${content-lookup}\r
-\r
-Verify LACP connector associated for aggregator\r
- [Arguments] ${resp.content} ${node} ${agg-connector-id}\r
- [Documentation] Will check for the LACP connector info for each aggregator\r
- Should Contain ${resp.content} ${node}:${agg-connector-id}\r
-\r
-Verify specific LACP node connector data for node\r
- [Arguments] ${resp.content} ${agg-id} ${connector}\r
- [Documentation] Will check for node connectory info for node\r
- Should Contain ${resp.content} ${connector}='${agg-id}'\r
-\r
-Verify LACP Tags Are Formed\r
- [Documentation] Fundamental Check That LACP is working\r
- ${resp} Get session ${OPERATIONAL_NODES_API}\r
- Verify LACP RESTAPI Response Code for node\r
- Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} non-lag-groupid\r
- Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} lacp-aggregators\r
-\r
-LACP Inventory Suite Setup\r
- [Documentation] If these basic checks fail, there is no need to continue any of the other test cases\r
- Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS}\r
- Wait Until Keyword Succeeds 10s 1s Verify LACP Tags Are Formed\r
+*** Settings ***
+Documentation Test suite for RESTCONF LACP inventory
+Suite Setup LACP Inventory Suite Setup
+Suite Teardown Delete All Sessions
+Library SSHLibrary
+Library Collections
+Library RequestsLibrary
+Library ../../../libraries/Common.py
+Variables ../../../variables/Variables.py
+
+*** Variables ***
+${node1} openflow:1
+${agg-id1} 1
+${agg-id2} 2
+${agg1-connector-id1} 1
+${agg1-connector-id2} 2
+${agg2-connector-id1} 3
+${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}
+ Verify LACP RESTAPI Response Code for node
+ 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 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 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
+
+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 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 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 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 specific LACP node connector data for node ${resp.content} ${agg-id2} agg-id
+
+*** Keywords ***
+Verify LACP RESTAPI Response Code for node
+ [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}
+
+Verify LACP RESTAPI Aggregator and Tag Contents
+ [Arguments] ${resp.content} ${content-lookup}
+ [Documentation] Will check for the LACP Specific tags or Aggregator ID for node
+ Should Contain ${resp.content} ${content-lookup}
+
+Verify LACP connector associated for aggregator
+ [Arguments] ${resp.content} ${node} ${agg-connector-id}
+ [Documentation] Will check for the LACP connector info for each aggregator
+ Should Contain ${resp.content} ${node}:${agg-connector-id}
+
+Verify specific LACP node connector data for node
+ [Arguments] ${resp.content} ${agg-id} ${connector}
+ [Documentation] Will check for node connectory info for node
+ Should Contain ${resp.content} ${connector}='${agg-id}'
+
+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 Aggregator and Tag Contents ${resp.content} non-lag-groupid
+ Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} lacp-aggregators
+
+LACP Inventory Suite Setup
+ [Documentation] If these basic checks fail, there is no need to continue any of the other test cases
+ Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS}
+ Wait Until Keyword Succeeds 10s 1s Verify LACP Tags Are Formed