From 367814db8d448478175ae642a5363501646562ad Mon Sep 17 00:00:00 2001 From: Jozef Behran Date: Wed, 11 Nov 2015 10:10:25 +0100 Subject: [PATCH] Added ability to turn on debug logging for Netconf suites 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 --- csit/suites/netconf/ready/netconfready.robot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/csit/suites/netconf/ready/netconfready.robot b/csit/suites/netconf/ready/netconfready.robot index 4f04dd7c4f..7eed03cbb2 100644 --- a/csit/suites/netconf/ready/netconfready.robot +++ b/csit/suites/netconf/ready/netconfready.robot @@ -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. -- 2.36.6