Library RequestsLibrary
Resource ${CURDIR}/../../../libraries/CompareStream.robot
Resource ${CURDIR}/../../../libraries/NexusKeywords.robot
-Resource ${CURDIR}/../../../libraries/Utils.robot
+Resource ${CURDIR}/../../../libraries/RemoteBash.robot
Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
*** Variables ***
Verify BMP Feature
[Documentation] Verifies if feature is up
&{mapping} BuiltIn.Create_Dictionary TOOL_IP=${TOOLS_SYSTEM_IP}
- BuiltIn.Wait_Until_Keyword_Succeeds 6x 10s TemplatedRequests.Get_As_Json_Templated folder=${BGP_BMP_FEAT_DIR} mapping=${mapping} session=${CONFIG_SESSION}
+ BuiltIn.Wait_Until_Keyword_Succeeds 180s 5s TemplatedRequests.Get_As_Json_Templated folder=${BGP_BMP_FEAT_DIR} mapping=${mapping} session=${CONFIG_SESSION}
... verify=True
Start_Bmp_Mock
BuiltIn.Log ${command}
SSHLibrary.Set_Client_Configuration timeout=30s
SSHLibrary.Write ${command}
- ${until_phrase}= CompareStream.Set_Variable_If_At_Least_Boron successfully established. sucesfully established.
+ ${until_phrase}= Set Variable successfully established.
SSHLibrary.Read_Until ${until_phrase}
Verify Data Reported
Stop_Bmp_Mock
[Documentation] Send ctrl+c to bmp-mock to stop it
- Utils.Write_Bare_Ctrl_C
+ RemoteBash.Write_Bare_Ctrl_C
${output}= SSHLibrary.Read_Until_Prompt
BuiltIn.Log ${output}
BuiltIn.Set_Suite_Variable ${filename} ${name}
Tear_It_Down
- [Documentation] Download pccmock.log and Log its contents.
+ [Documentation] Download bmpmock.log and Log its contents.
... Compute and Log the diff between expected and actual normalized responses.
... Close both HTTP client session and SSH connection to Mininet.
SSHLibrary.Get_File ${BMP_LOG_FILE}