Added ability to turn on debug logging for Netconf suites 38/29538/1
authorJozef Behran <jbehran@cisco.com>
Wed, 11 Nov 2015 09:10:25 +0000 (10:10 +0100)
committerJozef Behran <jbehran@cisco.com>
Wed, 11 Nov 2015 09:12:52 +0000 (10:12 +0100)
Any test plan that starts with the Netconf readiness suite
can now be asked to switch debug logging for everything by
setting  DEBUG_LOGGING_FOR_EVERYTHING to "True".

Change-Id: I10a9e76ec8ea2f04cfb238366e24ea64c7362d14
Signed-off-by: Jozef Behran <jbehran@cisco.com>
csit/suites/netconf/ready/netconfready.robot

index 4f04dd7c4f4f28885799c1dbef0be3f4808ae5da..7eed03cbb22e91bd2e3c81d797cabc6b45aff26e 100644 (file)
@@ -32,6 +32,7 @@ Variables         ${CURDIR}/../../../variables/Variables.py
 *** Variables ***
 ${first_case_ok}    False
 ${NETCONFREADY_WAIT}    60s
+${DEBUG_LOGGING_FOR_EVERYTHING}    False
 
 *** Test Cases ***
 Check_Whether_Netconf_Connector_Works
@@ -51,6 +52,7 @@ Setup_Everything
     [Documentation]    Setup requests library and log into karaf.log that the netconf readiness wait starts.
     KarafKeywords.Open_Controller_Karaf_Console_On_Background
     KarafKeywords.Log_Message_To_Controller_Karaf    Starting Netconf readiness test suite
+    BuiltIn.Run_Keyword_If    ${DEBUG_LOGGING_FOR_EVERYTHING}    KarafKeywords.Execute_Controller_Karaf_Command_On_Background    log:set DEBUG
     RequestsLibrary.Create_Session    ses    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}
     # TODO: Do not include slash in ${OPERATIONAL_TOPO_API}, having it typed here is more readable.
     # TODO: Alternatively, create variable in Variables which starts with http.