Do not use Get Request in PrefixCounting.robot 63/110963/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Mar 2024 11:40:43 +0000 (12:40 +0100)
committerTomas Cere <tomas.cere@pantheon.tech>
Thu, 21 Mar 2024 14:49:57 +0000 (14:49 +0000)
Migrate to use GET On Session instead.

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

csit/libraries/PrefixCounting.robot

index e5c494b2dbfa64f467340bbc313a640d2908c0a1..dfce8de879097876899016e53e9ae91e96cfa32d 100644 (file)
@@ -35,7 +35,7 @@ Get_Ipv4_Topology
     ...
     ...    Contrary to Utils.Get_Data_From_URI, this does not Log the (potentially huge) content.
     [Arguments]    ${session}=operational    ${topology}=example-ipv4-topology
-    ${response} =    RequestsLibrary.Get_Request    ${session}    ${PC_NW_TOPOLOGY}=${topology}?content=nonconfig
+    ${response} =    RequestsLibrary.GET On Session    ${session}    ${PC_NW_TOPOLOGY}=${topology}?content=nonconfig expected_status=any
     IF    ${response.status_code} != 200
         Fail    Get on ${topology} returned status code ${response.status_code} with message: ${response.text}
     END