X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fbgpcep%2Fbgpuser%2Fcases.robot;h=5c3721cb4be301a9afcf07959add69b9bb693850;hb=4811fa54cb585ce14d3b6280beda13af4985234c;hp=eba29808ecda370c578a915fc3d77f1820289ece;hpb=d7023501bce8bd8287a93cc1e7044740765199c5;p=integration%2Ftest.git diff --git a/csit/suites/bgpcep/bgpuser/cases.robot b/csit/suites/bgpcep/bgpuser/cases.robot index eba29808ec..5c3721cb4b 100644 --- a/csit/suites/bgpcep/bgpuser/cases.robot +++ b/csit/suites/bgpcep/bgpuser/cases.robot @@ -12,7 +12,7 @@ Documentation Basic tests for odl-bgpcep-bgp-all feature. ... 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. @@ -20,18 +20,20 @@ Library RequestsLibrary 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 ${directory_for_expected_responses} ${TEMPDIR}/expected ${directory_with_template_folders} ${CURDIR}/../../../variables/bgpuser/ -${HOLDTIME} 180 +${HOLDTIME} 180 *** Test Cases *** Check_For_Empty_Topology_Before_Talking @@ -63,7 +65,7 @@ Check_Talking_Topology_Is_Filled 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. @@ -104,7 +106,7 @@ Check_Listening_Topology_Is_Filled 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. @@ -124,8 +126,9 @@ Delete_Bgp_Peer_Configuration 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} + Utils.Flexible_SSH_Login ${MININET_USER} ${MININET_PASSWORD} ${current_connection}= Get_Connection ${current_prompt}= BuiltIn.Set_Variable ${current_connection.prompt} BuiltIn.Log ${current_prompt} @@ -141,7 +144,6 @@ Setup_Everything 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.