From 1feeb85d876a6dd94c16f644ddf175a37dd5fc27 Mon Sep 17 00:00:00 2001 From: Sangwook Ha Date: Wed, 27 Mar 2024 16:06:08 -0700 Subject: [PATCH] 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 --- csit/libraries/GoBgpLib.robot | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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} -- 2.36.6