X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=csit%2Flibraries%2FAAAKeywords.robot;h=daa5d203074d766552e5d9c8a1d86172dd75e7ab;hb=88df6d1316415f3831977f7e884957d9e9d5d2bc;hp=9426b7945ea3fb902287145171a0cbd9cb2d4834;hpb=cd3a41e1d7d7e5c3959704b60bb9933b314c7ab0;p=integration%2Ftest.git diff --git a/csit/libraries/AAAKeywords.robot b/csit/libraries/AAAKeywords.robot index 9426b7945e..daa5d20307 100644 --- a/csit/libraries/AAAKeywords.robot +++ b/csit/libraries/AAAKeywords.robot @@ -1,6 +1,6 @@ *** Settings *** Library RequestsLibrary -Variables ../variables/Variables.py +Resource ../variables/Variables.robot *** Variables *** ${WORKSPACE} /tmp @@ -51,7 +51,7 @@ Get Auth Token ${auth_data}= Create Auth Data ${USER} ${PWD} ${scope} ${client_id} ${client_secret} ${resp}= AAA Login ${ODL_SYSTEM_IP} ${auth_data} Should Be Equal As Strings ${resp.status_code} 201 - ${auth_token}= Extract Value From Content ${resp.content} /access_token strip + ${auth_token} = Extract Value From Content ${resp.text} 'access_token' [Return] ${auth_token} Revoke Auth Token @@ -73,7 +73,7 @@ Get User From IDM DB ${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 - Log ${resp.content} + Log ${resp.text} [Return] ${resp} Create User @@ -83,5 +83,5 @@ Create User ${headers}= Create Dictionary Content-Type=application/json ${resp}= RequestsLibrary.POST Request httpbin ${idmurl}/users headers=${headers} data=${user_data} Should Be Equal As Strings ${resp.status_code} 201 - Log ${resp.content} + Log ${resp.text} [Return] ${resp}