X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Flacp%2FLacp_Feature_OF13%2F010__lacp_inventory.robot;h=81066dd8d097f3f30c0c28360848221e50faba5d;hb=c122db238dc36d58d5ca3ed7d48d83f1cfb7d54f;hp=37ad4569ea48e3bb6ebf063df07b6dddcc338904;hpb=3cdec9a906e6f70933f8db2fcd939da90267502f;p=integration%2Ftest.git diff --git a/csit/suites/lacp/Lacp_Feature_OF13/010__lacp_inventory.robot b/csit/suites/lacp/Lacp_Feature_OF13/010__lacp_inventory.robot index 37ad4569ea..81066dd8d0 100644 --- a/csit/suites/lacp/Lacp_Feature_OF13/010__lacp_inventory.robot +++ b/csit/suites/lacp/Lacp_Feature_OF13/010__lacp_inventory.robot @@ -1,87 +1,87 @@ -*** 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 +*** 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