X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Flib%2Fuser_lib.robot;h=4e5893c114ca8b6ca487335ffff0e639ede932b8;hb=refs%2Fchanges%2F16%2F14116%2F1;hp=8047c3347311973090a1f18f11bd27540e24dd8a;hpb=dce1fa815ef9b08b39cf878f13445898c262764c;p=osm%2Ftests.git diff --git a/robot-systest/lib/user_lib.robot b/robot-systest/lib/user_lib.robot index 8047c33..4e5893c 100644 --- a/robot-systest/lib/user_lib.robot +++ b/robot-systest/lib/user_lib.robot @@ -23,7 +23,18 @@ Create User ${rc} ${stdout}= Run and Return RC and Output osm user-create ${user_name} --password ${user_password} Log ${stdout} Should Be Equal As Integers ${rc} ${success_return_code} - [Return] ${stdout} + [Return] ${stdout} + + +Update User Password + [Arguments] ${user_name} ${user_password} ${user_new_password} + + Should Not Be Empty ${user_name} + Should Not Be Empty ${user_password} + Should Not Be Empty ${user_new_password} + ${rc} ${stdout}= Run and Return RC and Output osm user-update ${user_name} --current-password ${user_password} --new-password ${user_new_password} + Log ${stdout} + Should Be Equal As Integers ${rc} ${success_return_code} Update User Role @@ -38,7 +49,7 @@ Update User Role Check If User Exists - [Arguments] ${user_name} + [Arguments] ${user_name} Should Not Be Empty ${user_name} ${rc} ${stdout}= Run And Return RC And Output osm user-list | awk 'NR>3 {print $2}' | grep "${user_name}" @@ -47,7 +58,7 @@ Check If User Exists Delete User - [Arguments] ${user_name} + [Arguments] ${user_name} ${rc} ${stdout}= Run and Return RC and Output osm user-delete ${user_name} Log ${stdout}