Migrate request invocations (aaa)
[integration/test.git] / csit / libraries / AAAKeywords.robot
index 9735f5b2c4031e2926593bfc302d49800a1835a9..33e56505ecbe8015f4d3a1f18080024520bb0fac 100644 (file)
@@ -87,8 +87,8 @@ Get User From IDM DB
     [Arguments]    ${user_id}=${EMPTY}
     Create Session    httpbin    http://${ODL_SYSTEM_IP}:${RESTPORT}
     ${headers}=    Create Dictionary    Content-Type=application/x-www-form-urlencoded
-    ${resp}=    RequestsLibrary.GET Request    httpbin    ${idmurl}/users/${user_id}    headers=${headers}
-    Should Be Equal As Strings    ${resp.status_code}    200
+    ${resp}=    RequestsLibrary.GET On Session    httpbin    url=${idmurl}/users/${user_id}    headers=${headers}
+    ...    expected_status=200
     Log    ${resp.text}
     RETURN    ${resp}