Fix bgpcep-1node-userfeatures tests
[integration/test.git] / csit / libraries / WorkflowsL2switch.robot
index 0ae972c8c364476836d474714cb0380bed52b6f0..63b33c9296c7dfcc08c9b25f5a48fff2b1d3b179 100644 (file)
@@ -6,6 +6,9 @@ Resource          FlowLib.robot
 Resource          MininetKeywords.robot
 Resource          ../variables/Variables.robot
 
+*** Variables ***
+${log_level}      ERROR
+
 *** Keywords ***
 Workflow Single Switch Multiple Hosts
     [Arguments]    ${hosts}    ${sustain_time}=0
@@ -33,6 +36,8 @@ Workflow Single Switch Multiple Hosts
     Return From Keyword If    '${status}' == 'FAIL'    ${status}    Controller is dead    ${host_discover_time}
     ${status}    ${result}    BuiltIn.Run Keyword And Ignore Error    Utils.Verify Controller Has No Null Pointer Exceptions    ${ODL_SYSTEM_IP}
     Return From Keyword If    '${status}' == 'FAIL'    ${status}    Controller has NPE    ${host_discover_time}
+    ${status}    ${result}    BuiltIn.Run Keyword And Ignore Error    Utils.Verify Controller Has No Runtime Exceptions    ${ODL_SYSTEM_IP}
+    Return From Keyword If    '${status}' == 'FAIL'    ${status}    Controller has RuntimeException    ${topology_discover_time}
     Log To Console    Check number of hosts in topology is ${hosts}
     ${status}    ${result}    BuiltIn.Run Keyword And Ignore Error    Wait Until Keyword Succeeds    ${hosts}    2s    FlowLib.Check Number Of Hosts
     ...    ${hosts}
@@ -57,7 +62,7 @@ Workflow Single Switch Multiple Hosts
 
 Workflow Setup
     RequestsLibrary.Create Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
-    BuiltIn.Wait Until Keyword Succeeds    3x    1s    KarafKeywords.Issue Command On Karaf Console    log:set ERROR
+    BuiltIn.Wait Until Keyword Succeeds    3x    1s    KarafKeywords.Issue Command On Karaf Console    log:set ${log_level}
 
 Workflow Teardown
     [Documentation]    Cleanup when workflow is interrupt