Migrate 030_bgp_functional_evpn 61/110961/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Mar 2024 11:25:13 +0000 (12:25 +0100)
committerTomas Cere <tomas.cere@pantheon.tech>
Thu, 21 Mar 2024 14:50:05 +0000 (14:50 +0000)
Use POST On Session instead of deprecated Post Request.

Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Change-Id: I7cb8d21813c87b3214185a3f8599a2d0c85d369f

csit/suites/bgpcep/bgpfunct/030_bgp_functional_evpn.robot

index 95398a9514da847eabdf96079c54745e5721442d..7e0676739142a3e84acf944f64d623f7250c0f95 100644 (file)
@@ -320,13 +320,13 @@ Odl_To_Play_Template
     BuiltIn.Log    ${announce_hex}
     BuiltIn.Log    ${withdraw_hex}
     BgpRpcClient.play_clean
-    ${resp} =    RequestsLibrary.Post_Request
-    ...    ${CONFIG_SESSION}
-    ...    ${EVPN_CONF_URL}
+    ${resp} =    RequestsLibrary.POST On Session
+    ...    alias=${CONFIG_SESSION}
+    ...    url=${EVPN_CONF_URL}
     ...    data=${data_xml}
     ...    headers=${HEADERS_XML}
+    ...    expected_status=201
     BuiltIn.Log    ${resp.content}
-    BuiltIn.Should_Be_Equal_As_Numbers    ${resp.status_code}    201
     ${resp} =    RequestsLibrary.Get_Request
     ...    ${CONFIG_SESSION}
     ...    ${EVPN_CONF_URL}?content=config