blob: 6da38ba9b5ed93c583f0203de19af916a4a882a5 [file] [log] [blame]
Chris Austenb29d2e82016-06-07 12:25:35 -05001*** Settings ***
2
3Documentation This suite is for testing Open BMC user account management.
George Keishingb843a592016-09-21 09:48:51 -05004... The randomness of the string generated is limited to the
5... instance per test case however we end up running multiple
6... test and multiple iteration. This creates scenario where
7... the same previous user is generated.
Gunnar Mills28e403b2017-10-25 16:16:38 -05008... As a good practice, clean up all the users at the end of
George Keishingb843a592016-09-21 09:48:51 -05009... test.
Chris Austenb29d2e82016-06-07 12:25:35 -050010
11Resource ../lib/rest_client.robot
12Resource ../lib/utils.robot
George Keishingd55a4be2016-08-26 03:28:17 -050013Resource ../lib/openbmc_ffdc.robot
Chris Austenb29d2e82016-06-07 12:25:35 -050014
15Library OperatingSystem
16Library SSHLibrary
17Library String
Gunnar Millseac1af22016-11-14 15:30:09 -060018Test Teardown FFDC On Test Case Fail
Chris Austenb29d2e82016-06-07 12:25:35 -050019
Sweta Potthuri7855eca2017-08-18 04:24:43 -050020Force Tags User_Management
21
Chris Austenb29d2e82016-06-07 12:25:35 -050022*** Variables ***
23${RANDOM_STRING_LENGTH} ${8}
24${VALID_PASSWORD} abc123
25${NON_EXISTING_USER} aaaaa
George Keishingab1bd922016-12-05 05:29:59 -060026
Chris Austenb29d2e82016-06-07 12:25:35 -050027*** Test Cases ***
28
29Create and delete user group
30 [Documentation] ***GOOD PATH***
31 ... This testcase is for testing user group creation
32 ... and deletion in open bmc.\n
George Keishingc965bc12016-10-18 12:15:43 -050033 [Tags] Create_and_delete_user_group
Chris Austenb29d2e82016-06-07 12:25:35 -050034
Gunnar Mills1cd544d2016-12-06 11:19:22 -060035 ${groupname}= Generate Random String ${RANDOM_STRING_LENGTH}
36 ${resp}= Create UserGroup ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -050037 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -060038 ${usergroup_list}= Get GroupListUsr
Chris Austenb29d2e82016-06-07 12:25:35 -050039 Should Contain ${usergroup_list} ${groupname}
Gunnar Mills1cd544d2016-12-06 11:19:22 -060040 ${resp}= Delete Group ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -050041 Should Be Equal ${resp} ok
42
Rahul Maheshwarif8119102016-10-05 01:15:56 -050043Create and delete user without group name
Chris Austenb29d2e82016-06-07 12:25:35 -050044 [Documentation] ***GOOD PATH***
45 ... This testcase is for testing user creation with
46 ... without groupname in open bmc.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -050047 [Tags] Create_and_delete_user_without_group_name
Chris Austenb29d2e82016-06-07 12:25:35 -050048
Gunnar Mills1cd544d2016-12-06 11:19:22 -060049 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
50 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
51 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -050052
Gunnar Mills1cd544d2016-12-06 11:19:22 -060053 ${resp}= Create User ${comment} ${username} ${EMPTY} ${password}
Chris Austenb29d2e82016-06-07 12:25:35 -050054 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -060055 ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -050056 Should Contain ${user_list} ${username}
57
58 Login BMC ${username} ${password}
59 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
60 Should Be Equal ${rc} ${0}
61
Gunnar Mills1cd544d2016-12-06 11:19:22 -060062 ${resp}= Delete User ${username}
Chris Austenb29d2e82016-06-07 12:25:35 -050063 Should Be Equal ${resp} ok
64
65Create and delete user with user group name
66 [Documentation] ***GOOD PATH***
67 ... This testcase is for testing user creation with
68 ... user name, password, comment and group name(user group)
69 ... in open bmc.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -050070 [Tags] Create_and_delete_user_with_user_group_name
Chris Austenb29d2e82016-06-07 12:25:35 -050071
Gunnar Mills1cd544d2016-12-06 11:19:22 -060072 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
73 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
74 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
75 ${groupname}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -050076
Gunnar Mills1cd544d2016-12-06 11:19:22 -060077 ${resp}= Create UserGroup ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -050078 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -060079 ${resp}= Create User ${comment} ${username} ${groupname} ${password}
Chris Austenb29d2e82016-06-07 12:25:35 -050080 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -060081 ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -050082 Should Contain ${user_list} ${username}
83
84 Login BMC ${username} ${password}
85 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
86 Should Be Equal ${rc} ${0}
87
Gunnar Mills1cd544d2016-12-06 11:19:22 -060088 ${resp}= Delete User ${username}
Chris Austenb29d2e82016-06-07 12:25:35 -050089 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -060090 ${resp}= Delete Group ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -050091 Should Be Equal ${resp} ok
92
93Create multiple users
94 [Documentation] ***GOOD PATH***
95 ... This testcase is to verify that multiple users creation
96 ... in open bmc.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -050097 [Tags] Create_multiple_users
Chris Austenb29d2e82016-06-07 12:25:35 -050098
99 : FOR ${INDEX} IN RANGE 1 10
100 \ Log ${INDEX}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600101 \ ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
102 \ ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
103 \ ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
104 \ ${resp}= Create User ${comment} ${username} ${EMPTY} ${password}
Chris Austenb29d2e82016-06-07 12:25:35 -0500105 \ Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600106 \ ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -0500107 \ Should Contain ${user_list} ${username}
108 \ Login BMC ${username} ${password}
109 \ ${rc}= Execute Command echo Login return_stdout=False return_rc=True
110 \ Should Be Equal ${rc} ${0}
111
112Create and delete user without password
113 [Documentation] ***GOOD PATH***
114 ... This testcase is to create and delete a user without password
115 ... in open bmc.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -0500116 [Tags] Create_and_delete_user_without_password
Chris Austenb29d2e82016-06-07 12:25:35 -0500117
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600118 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
119 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
120 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
121 ${groupname}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -0500122
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600123 ${resp}= Create UserGroup ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -0500124 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600125 ${resp}= Create User ${comment} ${username} ${groupname} ${EMPTY}
Chris Austenb29d2e82016-06-07 12:25:35 -0500126 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600127 ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -0500128 Should Contain ${user_list} ${username}
129
130 Login BMC ${username} ${EMPTY}
131 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
132 Should Be Equal ${rc} ${0}
133
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600134 ${resp}= Delete User ${username}
Chris Austenb29d2e82016-06-07 12:25:35 -0500135 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600136 ${resp}= Delete Group ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -0500137 Should Be Equal ${resp} ok
138
139Set password for existing user
140 [Documentation] ***GOOD PATH***
141 ... This testcase is for testing password set for user
142 ... in open bmc.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -0500143 [Tags] Set_password_for_existing_user
Chris Austenb29d2e82016-06-07 12:25:35 -0500144
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600145 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
146 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
147 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -0500148
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600149 ${resp}= Create User ${comment} ${username} ${EMPTY} ${password}
Chris Austenb29d2e82016-06-07 12:25:35 -0500150 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600151 ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -0500152 Should Contain ${user_list} ${username}
153
154 Login BMC ${username} ${password}
155 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
156 Should Be Equal ${rc} ${0}
157
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600158 ${resp}= Change Password ${username} ${VALID_PASSWORD}
Chris Austenb29d2e82016-06-07 12:25:35 -0500159 Should Be Equal ${resp} ok
160
161 Login BMC ${username} ${VALID_PASSWORD}
162 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
163 Should Be Equal ${rc} ${0}
164
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600165 ${resp}= Delete User ${username}
Chris Austenb29d2e82016-06-07 12:25:35 -0500166 Should Be Equal ${resp} ok
167
168Set password with empty password for existing
169 [Documentation] ***GOOD PATH***
George Keishingb843a592016-09-21 09:48:51 -0500170 ... This testcase is to verify that empty password can be set
Chris Austenb29d2e82016-06-07 12:25:35 -0500171 ... for a existing user.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -0500172 [Tags] Set_password_with_empty_password_for_existing
Chris Austenb29d2e82016-06-07 12:25:35 -0500173
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600174 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
175 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
176 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -0500177
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600178 ${resp}= Create User ${comment} ${username} ${EMPTY} ${password}
Chris Austenb29d2e82016-06-07 12:25:35 -0500179 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600180 ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -0500181 Should Contain ${user_list} ${username}
182
183 Login BMC ${username} ${password}
184 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
185 Should Be Equal ${rc} ${0}
186
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600187 ${resp}= Change Password ${username} ${EMPTY}
Chris Austenb29d2e82016-06-07 12:25:35 -0500188 Should Be Equal ${resp} ok
189
190 Login BMC ${username} ${EMPTY}
191 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
192 Should Be Equal ${rc} ${0}
193
194Set password for non existing user
195 [Documentation] ***BAD PATH***
196 ... This testcase is for testing password set for non-existing user
197 ... in open bmc.\n
George Keishingc965bc12016-10-18 12:15:43 -0500198 [Tags] Set_password_for_non_existing_user
Chris Austenb29d2e82016-06-07 12:25:35 -0500199
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600200 ${resp}= Change Password ${NON_EXISTING_USER} ${VALID_PASSWORD}
Chris Austenb29d2e82016-06-07 12:25:35 -0500201 Should Be Equal ${resp} error
202
203Create existing user
204 [Documentation] ***BAD PATH***
205 ... This testcase is for checking that user creation is not allowed
206 ... for existing user in open bmc.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -0500207 [Tags] Create_existing_user
Chris Austenb29d2e82016-06-07 12:25:35 -0500208
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600209 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
210 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
211 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -0500212
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600213 ${resp}= Create User ${comment} ${username} ${EMPTY} ${EMPTY}
Chris Austenb29d2e82016-06-07 12:25:35 -0500214 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600215 ${resp}= Create User ${comment} ${username} ${EMPTY} ${EMPTY}
Chris Austenb29d2e82016-06-07 12:25:35 -0500216 Should Be Equal ${resp} error
217
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600218 ${resp}= Delete User ${username}
Chris Austenb29d2e82016-06-07 12:25:35 -0500219 Should Be Equal ${resp} ok
220
221Create user with no name
222 [Documentation] ***BAD PATH***
223 ... This testcase is for checking that user creation is not allowed
224 ... with empty username in open bmc.\n
George Keishingc965bc12016-10-18 12:15:43 -0500225 [Tags] Create_user_with_no_name
Chris Austenb29d2e82016-06-07 12:25:35 -0500226
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600227 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
228 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
229 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
230 ${groupname}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -0500231
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600232 ${resp}= Create User ${comment} ${EMPTY} ${groupname} ${password}
Chris Austenb29d2e82016-06-07 12:25:35 -0500233 Should Be Equal ${resp} error
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600234 ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -0500235 Should Not Contain ${user_list} ${EMPTY}
236
237Create existing user group
238 [Documentation] ***BAD PATH***
239 ... This testcase is for checking that user group creation is not allowed
240 ... for existing user group in open bmc.\n
George Keishingc965bc12016-10-18 12:15:43 -0500241 [Tags] Create_existing_user_group
Chris Austenb29d2e82016-06-07 12:25:35 -0500242
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600243 ${groupname}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -0500244
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600245 ${resp}= Create UserGroup ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -0500246 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600247 ${resp}= Create UserGroup ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -0500248 Should Be Equal ${resp} error
249
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600250 ${resp}= Delete Group ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -0500251 Should Be Equal ${resp} ok
252
253Create user group with no name
254 [Documentation] ***BAD PATH***
255 ... This testcase is for checking that user group creation is not allowed
256 ... with empty groupname in open bmc.\n
George Keishingc965bc12016-10-18 12:15:43 -0500257 [Tags] Create_user_group_with_no_name
Chris Austenb29d2e82016-06-07 12:25:35 -0500258
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600259 ${resp}= Create UserGroup ${EMPTY}
Chris Austenb29d2e82016-06-07 12:25:35 -0500260 Should Be Equal ${resp} error
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600261 ${usergroup_list}= Get GroupListUsr
Chris Austenb29d2e82016-06-07 12:25:35 -0500262 Should Not Contain ${usergroup_list} ${EMPTY}
263
George Keishingb843a592016-09-21 09:48:51 -0500264Cleanup Users List
265 [Documentation] ***GOOD PATH***
266 ... This testcase is to clean up multiple users created by
267 ... the test so as to leave the system in cleaner state.
268 ... This is a no-op if there is no user list on the BMC.
George Keishingc965bc12016-10-18 12:15:43 -0500269 [Tags] Cleanup_Users_List
George Keishingb843a592016-09-21 09:48:51 -0500270
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600271 ${user_list}= Get UserList
George Keishingb843a592016-09-21 09:48:51 -0500272 : FOR ${username} IN @{user_list}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600273 \ ${resp}= Delete User ${username}
George Keishingb843a592016-09-21 09:48:51 -0500274 \ Should Be Equal ${resp} ok
275
276
Chris Austenb29d2e82016-06-07 12:25:35 -0500277*** Keywords ***
278
279Get UserList
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600280 ${data}= create dictionary data=@{EMPTY}
George Keishingab1bd922016-12-05 05:29:59 -0600281 ${resp}= OpenBMC Post Request
282 ... ${USER_MANAGER_URI}Users/action/UserList data=${data}
Chris Austenb29d2e82016-06-07 12:25:35 -0500283 should be equal as strings ${resp.status_code} ${HTTP_OK}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600284 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600285 [Return] ${jsondata['data']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500286
287Get GroupListUsr
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600288 ${data}= create dictionary data=@{EMPTY}
George Keishingab1bd922016-12-05 05:29:59 -0600289 ${resp}= OpenBMC Post Request
290 ... ${USER_MANAGER_URI}/Groups/action/GroupListUsr data=${data}
Chris Austenb29d2e82016-06-07 12:25:35 -0500291 should be equal as strings ${resp.status_code} ${HTTP_OK}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600292 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600293 [Return] ${jsondata['data']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500294
295Create User
296 [Arguments] ${comment} ${username} ${groupname} ${password}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600297 @{user_list}= Create List ${comment} ${username} ${groupname} ${password}
298 ${data}= create dictionary data=@{user_list}
George Keishingab1bd922016-12-05 05:29:59 -0600299 ${resp}= OpenBMC Post Request
300 ... ${USER_MANAGER_URI}Users/action/UserAdd data=${data}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600301 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600302 [Return] ${jsondata['status']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500303
304Change Password
305 [Arguments] ${username} ${password}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600306 @{user_list}= Create List ${username} ${password}
307 ${data}= create dictionary data=@{user_list}
George Keishingab1bd922016-12-05 05:29:59 -0600308 ${resp}= OpenBMC Post Request
309 ... ${USER_MANAGER_URI}User/action/Passwd data=${data}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600310 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600311 [Return] ${jsondata['status']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500312
313Create UserGroup
314 [Arguments] ${args}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600315 @{group_list}= Create List ${args}
316 ${data}= create dictionary data=@{group_list}
George Keishingab1bd922016-12-05 05:29:59 -0600317 ${resp}= OpenBMC Post Request
318 ... ${USER_MANAGER_URI}Groups/action/GroupAddUsr data=${data}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600319 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600320 [Return] ${jsondata['status']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500321
322Delete Group
323 [Arguments] ${args}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600324 @{group_list}= Create List ${args}
325 ${data}= create dictionary data=@{group_list}
George Keishingab1bd922016-12-05 05:29:59 -0600326 ${resp}= OpenBMC Post Request
327 ... ${USER_MANAGER_URI}Group/action/GroupDel data=${data}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600328 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600329 [Return] ${jsondata['status']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500330
331Delete User
332 [Arguments] ${args}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600333 @{user_list}= Create List ${args}
334 ${data}= create dictionary data=@{user_list}
George Keishingab1bd922016-12-05 05:29:59 -0600335 ${resp}= OpenBMC Post Request
336 ... ${USER_MANAGER_URI}User/action/Userdel data=${data}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600337 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600338 [Return] ${jsondata['status']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500339
340Login BMC
341 [Arguments] ${username} ${password}
342 Open connection ${OPENBMC_HOST}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600343 ${resp}= Login ${username} ${password}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600344 [Return] ${resp}