Add WUKS to suite setup
authorJamo Luhrsen <james.luhrsen@hp.com>
Tue, 12 May 2015 19:03:14 +0000 (12:03 -0700)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 14 May 2015 05:36:46 +0000 (05:36 +0000)
Change-Id: I266c4d47ed71fad72b7ef78e184d3321fedcb738
Signed-off-by: Jamo Luhrsen <james.luhrsen@hp.com>
test/csit/suites/lacp/Lacp_Feature_OF13/010__lacp_inventory.robot

index c962976d33eea88914bf5406f3283999d883d4e6..8a5df39d2beace78eadfd7cbcef7510c3181a45c 100644 (file)
@@ -1,6 +1,6 @@
 *** Settings ***\r
 Documentation     Test suite for RESTCONF LACP inventory\r
-Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}\r
+Suite Setup       LACP Inventory Suite Setup\r
 Suite Teardown    Delete All Sessions\r
 Library           SSHLibrary\r
 Library           Collections\r
@@ -18,13 +18,6 @@ ${agg2-connector-id1}    3
 ${agg2-connector-id2}    4\r
 \r
 *** Test Cases ***\r
-Get list of nodes and LACP reference on Inventory\r
-    [Documentation]    Get the nodes data\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
 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
@@ -80,3 +73,15 @@ Verify specific LACP node connector data for node
     [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