Suite Setup Setup_Everything
Suite Teardown Teardown_Everything
Library RequestsLibrary
+Resource ${CURDIR}/../../../libraries/KarafKeywords.robot
+Resource ${CURDIR}/../../../libraries/Utils.robot
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
[Documentation] Attempt to wait for the netconf-connector for configurable time.
[Tags] critical
BuiltIn.Run_Keyword_Unless ${first_case_ok} BuiltIn.Wait_Until_Keyword_Succeeds ${NETCONFREADY_WAIT} 1s Check_Netconf_Connector
+ [Teardown] Utils.Report_Failure_Due_To_Bug 4583
*** Keywords ***
Setup_Everything
- [Documentation] Setup requests library.
+ [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.
# Both TODOs would probably need to update every suite relying on current Variables.
Teardown_Everything
- [Documentation] Destroy all sessions in the requests library.
+ [Documentation] Destroy all sessions in the requests library and log into karaf.log that the netconf readiness wait is over.
+ KarafKeywords.Log_Message_To_Controller_Karaf Ending Netconf readiness test suite
RequestsLibrary.Delete_All_Sessions
Check_Netconf_Connector