X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Flib%2Fcli%2Fvim_account_lib.robot;h=c3c8242fe1fc1aeed10839a1c78614e0c898296d;hb=50d786e60c1399ab4b1d9141b20f59e7d394ad9a;hp=76e6ff14b59b68b7e3cb3e789ea232bf65678991;hpb=f21d9da8d739bf889ee49ef3ee8fb2d252ab858f;p=osm%2Fdevops.git diff --git a/robot-systest/lib/cli/vim_account_lib.robot b/robot-systest/lib/cli/vim_account_lib.robot index 76e6ff14..c3c8242f 100644 --- a/robot-systest/lib/cli/vim_account_lib.robot +++ b/robot-systest/lib/cli/vim_account_lib.robot @@ -31,7 +31,6 @@ Library ../custom_lib.py *** Variables *** ${success_return_code} 0 -${name} "helloworld-os" ${user} "robottest" ${password} "fred" ${authurl} "https://127.0.0.1/" @@ -44,7 +43,11 @@ ${tenant} "robottest2" Create Vim Account [Documentation] Create a new vim account - ${rc} ${stdout}= Run and Return RC and Output osm vim-create --name ${name} --user ${user} --password ${password} --auth_url ${authurl} --tenant ${tenant} --account_type ${type} --description ${desc} + ${vim-name}= Generate Random String 8 [NUMBERS] + ${vim-name}= Catenate SEPARATOR= vim_ ${vim-name} + set global variable ${vim-name} + + ${rc} ${stdout}= Run and Return RC and Output osm vim-create --name ${vim-name} --user ${user} --password ${password} --auth_url ${authurl} --tenant ${tenant} --account_type ${type} --description ${desc} log ${stdout} Should Be Equal As Integers ${rc} ${success_return_code} @@ -60,8 +63,9 @@ Get Vim List Delete Vim Account [Documentation] delete vim account details + [Arguments] ${vim_name}=${vim-name} - ${rc} ${stdout}= Run and Return RC and Output osm vim-delete ${name} + ${rc} ${stdout}= Run and Return RC and Output osm vim-delete ${vim_name} log ${stdout} Should Be Equal As Integers ${rc} ${success_return_code}