From d5f6aa6872dc5614c193b4a146ed4335f495e864 Mon Sep 17 00:00:00 2001 From: lavado Date: Thu, 21 Nov 2019 18:57:36 +0100 Subject: [PATCH] robot: adapt VIM test for RBAC environments Change-Id: I2d4056b46e131311acb93416ba74009cef46e257 Signed-off-by: lavado --- robot-systest/lib/cli/vim_account_lib.robot | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/robot-systest/lib/cli/vim_account_lib.robot b/robot-systest/lib/cli/vim_account_lib.robot index 76e6ff14..8d01b39b 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} @@ -61,7 +64,7 @@ Get Vim List Delete Vim Account [Documentation] delete vim account details - ${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} -- 2.25.1