X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FBgpOperations.robot;h=cc632137b81875b26e9219920405bbd9dcb1cd7a;hb=9e73fca83721fc883f07e3b5c9243648b698fc1f;hp=bc51c8cd0dbb3f8e7a8ccd88890fdd753daadf25;hpb=bc476bcaff4a66e2d1f3a7253bbc7507d04653ae;p=integration%2Ftest.git diff --git a/csit/libraries/BgpOperations.robot b/csit/libraries/BgpOperations.robot index bc51c8cd0d..cc632137b8 100644 --- a/csit/libraries/BgpOperations.robot +++ b/csit/libraries/BgpOperations.robot @@ -183,3 +183,42 @@ Get External Tunnel Endpoint Configuration ${resp} = RequestsLibrary.Get Request session ${CONFIG_API}/itm:dc-gateway-ip-list/dc-gateway-ip/${ip}/ Log ${resp.content} [Return] ${resp.content} + +Teardown_Everything + [Documentation] Create and Log the diff between expected and actual responses, make sure Python tool was killed. + ... Tear down imported Resources. + KillPythonTool.Search_And_Kill_Remote_Python 'play\.py' + RequestsLibrary.Delete_All_Sessions + SSHLibrary.Close_All_Connections + +Check_Example_Bgp_Rib_Content + [Arguments] ${substr} ${error_message}=${JSONKEYSTR} not found, but expected. + [Documentation] Check the example-bgp-rib content for string + ${response}= RequestsLibrary.Get Request operational bgp-rib:bgp-rib/rib/example-bgp-rib + BuiltIn.Log ${response.status_code} + BuiltIn.Log ${response.text} + BuiltIn.Should_Contain ${response.text} ${substr} ${error_message} values=False + +Check_Example_Bgp_Rib_Does_Not_Contain + [Arguments] ${substr} ${error_message}=${JSONKEYSTR} found, but not expected. + [Documentation] Check the example-bgp-rib does not contain the string + ${response}= RequestsLibrary.Get Request operational bgp-rib:bgp-rib/rib/example-bgp-rib + BuiltIn.Log ${response.status_code} + BuiltIn.Log ${response.text} + BuiltIn.Should_Not_Contain ${response.text} ${substr} ${error_message} values=False + +Check_Example_IPv4_Topology_Content + [Arguments] ${string_to_check}=${EMPTY} + [Documentation] Check the example-ipv4-topology content for string + ${response}= RequestsLibrary.Get Request operational topology/example-ipv4-topology + BuiltIn.Log ${response.status_code} + BuiltIn.Log ${response.text} + BuiltIn.Should_Contain ${response.text} ${string_to_check} + +Check_Example_IPv4_Topology_Does_Not_Contain + [Arguments] ${string_to_check} + [Documentation] Check the example-ipv4-topology does not contain the string + ${response}= RequestsLibrary.Get Request operational topology/example-ipv4-topology + BuiltIn.Log ${response.status_code} + BuiltIn.Log ${response.text} + BuiltIn.Should_Not_Contain ${response.text} ${string_to_check}