Add check for link down in basic OF test 93/45193/1
authorLuis Gomez <ecelgp@gmail.com>
Tue, 6 Sep 2016 04:56:00 +0000 (21:56 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Tue, 6 Sep 2016 04:56:00 +0000 (21:56 -0700)
Change-Id: I1274a21d9a92a71ef833007c2b7d44cf1b42d8ee
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
csit/suites/openflowplugin/MD_SAL_NSF_OF10/010__restconf_inventory.robot
csit/suites/openflowplugin/MD_SAL_NSF_OF13/010__restconf_inventory.robot

index ffabd291d650d2a3b374cba6a47606c15c9f3e62..7af93846244a6bcea5fd544f8ab1f95194441615 100644 (file)
@@ -22,8 +22,10 @@ Get list of nodes
     Set Suite Variable    ${SW_HARDWARE}    "flow-node-inventory:manufacturer":"${HARDWARE}"
     Set Suite Variable    @{SW_CAPABILITIES}    "flow-node-inventory:flow-feature-capability-flow-stats"    "flow-node-inventory:flow-feature-capability-table-stats"    "flow-node-inventory:flow-feature-capability-port-stats"    "flow-node-inventory:flow-feature-capability-queue-stats"
     Wait Until Keyword Succeeds    30s    2s    Ensure All Nodes Are In Response    ${REST_CONTEXT}    ${node_list}
-    ${resp}    RequestsLibrary.Get Request    session    ${REST_CONTEXT}
-    Log    ${resp.content}
+
+Check No Link Down
+    [Documentation]    Check there is no link down
+    Wait Until Keyword Succeeds    30s    2s    Check For Specific Number Of Elements At URI    ${REST_CONTEXT}    "link-down":false    11
 
 Get node 1 inventory
     [Documentation]    Get the inventory for a node
index ffabd291d650d2a3b374cba6a47606c15c9f3e62..7af93846244a6bcea5fd544f8ab1f95194441615 100644 (file)
@@ -22,8 +22,10 @@ Get list of nodes
     Set Suite Variable    ${SW_HARDWARE}    "flow-node-inventory:manufacturer":"${HARDWARE}"
     Set Suite Variable    @{SW_CAPABILITIES}    "flow-node-inventory:flow-feature-capability-flow-stats"    "flow-node-inventory:flow-feature-capability-table-stats"    "flow-node-inventory:flow-feature-capability-port-stats"    "flow-node-inventory:flow-feature-capability-queue-stats"
     Wait Until Keyword Succeeds    30s    2s    Ensure All Nodes Are In Response    ${REST_CONTEXT}    ${node_list}
-    ${resp}    RequestsLibrary.Get Request    session    ${REST_CONTEXT}
-    Log    ${resp.content}
+
+Check No Link Down
+    [Documentation]    Check there is no link down
+    Wait Until Keyword Succeeds    30s    2s    Check For Specific Number Of Elements At URI    ${REST_CONTEXT}    "link-down":false    11
 
 Get node 1 inventory
     [Documentation]    Get the inventory for a node