From: Sangwook Ha Date: Wed, 27 Mar 2024 23:06:08 +0000 (-0700) Subject: Migrate GoBgpLib.robot X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Ftest.git;a=commitdiff_plain;h=1feeb85d876a6dd94c16f644ddf175a37dd5fc27;ds=sidebyside Migrate GoBgpLib.robot The 'Get Request' RequestsLibrary keyword has been deprecated. Migrate it to 'GET On Session'. Change-Id: Ia520b59076383f3b68f9bd0e692ce8355f909e72 Signed-off-by: Sangwook Ha --- diff --git a/csit/libraries/GoBgpLib.robot b/csit/libraries/GoBgpLib.robot index da71866c35..986f3079f1 100644 --- a/csit/libraries/GoBgpLib.robot +++ b/csit/libraries/GoBgpLib.robot @@ -13,6 +13,7 @@ Documentation Robot keyword library (Resource) for handling the GoBgp tool ... Library Process +Library RequestsLibrary Library SSHLibrary Resource ${CURDIR}/BGPcliKeywords.robot Resource ${CURDIR}/RemoteBash.robot @@ -73,6 +74,9 @@ Verify_GoBgps_Connection ... ${connected} ... ${ALLOWED_STATUS_CODES} ... ${DELETED_STATUS_CODES} - ${rsp}= RequestsLibrary.Get Request ${session} ${peer_check_url}${gobgp_ip}?content=nonconfig + ${rsp}= RequestsLibrary.GET On Session + ... alias=${session} + ... url=${peer_check_url}${gobgp_ip}?content=nonconfig + ... expected_status=any BuiltIn.Log ${rsp.content} BuiltIn.Should_Be_Equal_As_Numbers ${exp_status_code} ${rsp.status_code}