... https://wiki.opendaylight.org/view/BGP_LS_PCEP:Lithium_Feature_Tests#How_to_test_2
Suite Setup Setup_Everything
Suite Teardown Teardown_Everything
-Test Setup FailFast.Fail_This_Fast_On_Previous_Error
+Test Setup SetupUtils.Setup_Test_With_Logging_And_Fast_Failing
Test Teardown FailFast.Start_Failing_Fast_If_This_Failed
Library OperatingSystem
Library SSHLibrary prompt=]> timeout=10s # FIXME: The prompt should have default value from a common resource, and should be overwritable by pybot -v in scripts.
Library ${CURDIR}/../../../libraries/HsfJson/hsf_json.py
Variables ${CURDIR}/../../../variables/Variables.py
Variables ${CURDIR}/../../../variables/bgpuser/variables.py ${MININET}
+Resource ${CURDIR}/../../../libraries/BGPSpeaker.robot
Resource ${CURDIR}/../../../libraries/ConfigViaRestconf.robot
Resource ${CURDIR}/../../../libraries/FailFast.robot
-Resource ${CURDIR}/../../../libraries/BGPSpeaker.robot
+Resource ${CURDIR}/../../../libraries/KarafKeywords.robot
Resource ${CURDIR}/../../../libraries/KillPythonTool.robot
-Resource ${CURDIR}/../../../libraries/WaitForFailure.robot
+Resource ${CURDIR}/../../../libraries/SetupUtils.robot
Resource ${CURDIR}/../../../libraries/Utils.robot
+Resource ${CURDIR}/../../../libraries/WaitForFailure.robot
*** Variables ***
${directory_for_actual_responses} ${TEMPDIR}/actual
Kill_Talking_BGP_Speaker
[Documentation] Abort the Python speaker. Also, attempt to stop failing fast.
- [Setup] FailFast.Run_Even_When_Failing_Fast
+ [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
BGPSpeaker.Kill_BGP_Speaker
FailFast.Do_Not_Fail_Fast_From_Now_On
# NOTE: It is still possible to remain failing fast, if both previous and this test have failed.
Kill_Listening_BGP_Speaker
[Documentation] Abort the Python speaker. Also, attempt to stop failing fast.
- [Setup] FailFast.Run_Even_When_Failing_Fast
+ [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
BGPSpeaker.Kill_BGP_Speaker
FailFast.Do_Not_Fail_Fast_From_Now_On
# NOTE: It is still possible to remain failing, if both previous and this test failed.
Setup_Everything
[Documentation] SSH-login to mininet machine, save prompt to variable, create HTTP session,
... prepare directories for responses, put Python tool to mininet machine, setup imported resources.
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown
SSHLibrary.Open_Connection ${MININET}
Utils.Flexible_SSH_Login ${MININET_USER} ${MININET_PASSWORD}
${current_connection}= Get_Connection
OperatingSystem.Create_Directory ${directory_for_actual_responses}
SSHLibrary.Put_File ${CURDIR}/../../../../tools/fastbgp/play.py
ConfigViaRestconf.Setup_Config_Via_Restconf
- FailFast.Do_Not_Fail_Fast_From_Now_On
Teardown_Everything
[Documentation] Create and Log the diff between expected and actual responses, make sure Python tool was killed.