blob: 89739a6fbaff7e0892f18eea3ce51db314d58556 [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.
8... As a good pratice, clean up all the users at the end of
9... 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
20*** Variables ***
21${RANDOM_STRING_LENGTH} ${8}
22${VALID_PASSWORD} abc123
23${NON_EXISTING_USER} aaaaa
George Keishingab1bd922016-12-05 05:29:59 -060024
Chris Austenb29d2e82016-06-07 12:25:35 -050025*** Test Cases ***
26
27Create and delete user group
28 [Documentation] ***GOOD PATH***
29 ... This testcase is for testing user group creation
30 ... and deletion in open bmc.\n
George Keishingc965bc12016-10-18 12:15:43 -050031 [Tags] Create_and_delete_user_group
Chris Austenb29d2e82016-06-07 12:25:35 -050032
Gunnar Mills1cd544d2016-12-06 11:19:22 -060033 ${groupname}= Generate Random String ${RANDOM_STRING_LENGTH}
34 ${resp}= Create UserGroup ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -050035 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -060036 ${usergroup_list}= Get GroupListUsr
Chris Austenb29d2e82016-06-07 12:25:35 -050037 Should Contain ${usergroup_list} ${groupname}
Gunnar Mills1cd544d2016-12-06 11:19:22 -060038 ${resp}= Delete Group ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -050039 Should Be Equal ${resp} ok
40
Rahul Maheshwarif8119102016-10-05 01:15:56 -050041Create and delete user without group name
Chris Austenb29d2e82016-06-07 12:25:35 -050042 [Documentation] ***GOOD PATH***
43 ... This testcase is for testing user creation with
44 ... without groupname in open bmc.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -050045 [Tags] Create_and_delete_user_without_group_name
Chris Austenb29d2e82016-06-07 12:25:35 -050046
Gunnar Mills1cd544d2016-12-06 11:19:22 -060047 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
48 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
49 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -050050
Gunnar Mills1cd544d2016-12-06 11:19:22 -060051 ${resp}= Create User ${comment} ${username} ${EMPTY} ${password}
Chris Austenb29d2e82016-06-07 12:25:35 -050052 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -060053 ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -050054 Should Contain ${user_list} ${username}
55
56 Login BMC ${username} ${password}
57 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
58 Should Be Equal ${rc} ${0}
59
Gunnar Mills1cd544d2016-12-06 11:19:22 -060060 ${resp}= Delete User ${username}
Chris Austenb29d2e82016-06-07 12:25:35 -050061 Should Be Equal ${resp} ok
62
63Create and delete user with user group name
64 [Documentation] ***GOOD PATH***
65 ... This testcase is for testing user creation with
66 ... user name, password, comment and group name(user group)
67 ... in open bmc.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -050068 [Tags] Create_and_delete_user_with_user_group_name
Chris Austenb29d2e82016-06-07 12:25:35 -050069
Gunnar Mills1cd544d2016-12-06 11:19:22 -060070 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
71 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
72 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
73 ${groupname}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -050074
Gunnar Mills1cd544d2016-12-06 11:19:22 -060075 ${resp}= Create UserGroup ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -050076 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -060077 ${resp}= Create User ${comment} ${username} ${groupname} ${password}
Chris Austenb29d2e82016-06-07 12:25:35 -050078 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -060079 ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -050080 Should Contain ${user_list} ${username}
81
82 Login BMC ${username} ${password}
83 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
84 Should Be Equal ${rc} ${0}
85
Gunnar Mills1cd544d2016-12-06 11:19:22 -060086 ${resp}= Delete User ${username}
Chris Austenb29d2e82016-06-07 12:25:35 -050087 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -060088 ${resp}= Delete Group ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -050089 Should Be Equal ${resp} ok
90
91Create multiple users
92 [Documentation] ***GOOD PATH***
93 ... This testcase is to verify that multiple users creation
94 ... in open bmc.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -050095 [Tags] Create_multiple_users
Chris Austenb29d2e82016-06-07 12:25:35 -050096
97 : FOR ${INDEX} IN RANGE 1 10
98 \ Log ${INDEX}
Gunnar Mills1cd544d2016-12-06 11:19:22 -060099 \ ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
100 \ ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
101 \ ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
102 \ ${resp}= Create User ${comment} ${username} ${EMPTY} ${password}
Chris Austenb29d2e82016-06-07 12:25:35 -0500103 \ Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600104 \ ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -0500105 \ Should Contain ${user_list} ${username}
106 \ Login BMC ${username} ${password}
107 \ ${rc}= Execute Command echo Login return_stdout=False return_rc=True
108 \ Should Be Equal ${rc} ${0}
109
110Create and delete user without password
111 [Documentation] ***GOOD PATH***
112 ... This testcase is to create and delete a user without password
113 ... in open bmc.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -0500114 [Tags] Create_and_delete_user_without_password
Chris Austenb29d2e82016-06-07 12:25:35 -0500115
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600116 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
117 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
118 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
119 ${groupname}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -0500120
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600121 ${resp}= Create UserGroup ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -0500122 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600123 ${resp}= Create User ${comment} ${username} ${groupname} ${EMPTY}
Chris Austenb29d2e82016-06-07 12:25:35 -0500124 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600125 ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -0500126 Should Contain ${user_list} ${username}
127
128 Login BMC ${username} ${EMPTY}
129 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
130 Should Be Equal ${rc} ${0}
131
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600132 ${resp}= Delete User ${username}
Chris Austenb29d2e82016-06-07 12:25:35 -0500133 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600134 ${resp}= Delete Group ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -0500135 Should Be Equal ${resp} ok
136
137Set password for existing user
138 [Documentation] ***GOOD PATH***
139 ... This testcase is for testing password set for user
140 ... in open bmc.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -0500141 [Tags] Set_password_for_existing_user
Chris Austenb29d2e82016-06-07 12:25:35 -0500142
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600143 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
144 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
145 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -0500146
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600147 ${resp}= Create User ${comment} ${username} ${EMPTY} ${password}
Chris Austenb29d2e82016-06-07 12:25:35 -0500148 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600149 ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -0500150 Should Contain ${user_list} ${username}
151
152 Login BMC ${username} ${password}
153 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
154 Should Be Equal ${rc} ${0}
155
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600156 ${resp}= Change Password ${username} ${VALID_PASSWORD}
Chris Austenb29d2e82016-06-07 12:25:35 -0500157 Should Be Equal ${resp} ok
158
159 Login BMC ${username} ${VALID_PASSWORD}
160 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
161 Should Be Equal ${rc} ${0}
162
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600163 ${resp}= Delete User ${username}
Chris Austenb29d2e82016-06-07 12:25:35 -0500164 Should Be Equal ${resp} ok
165
166Set password with empty password for existing
167 [Documentation] ***GOOD PATH***
George Keishingb843a592016-09-21 09:48:51 -0500168 ... This testcase is to verify that empty password can be set
Chris Austenb29d2e82016-06-07 12:25:35 -0500169 ... for a existing user.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -0500170 [Tags] Set_password_with_empty_password_for_existing
Chris Austenb29d2e82016-06-07 12:25:35 -0500171
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600172 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
173 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
174 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -0500175
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600176 ${resp}= Create User ${comment} ${username} ${EMPTY} ${password}
Chris Austenb29d2e82016-06-07 12:25:35 -0500177 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600178 ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -0500179 Should Contain ${user_list} ${username}
180
181 Login BMC ${username} ${password}
182 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
183 Should Be Equal ${rc} ${0}
184
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600185 ${resp}= Change Password ${username} ${EMPTY}
Chris Austenb29d2e82016-06-07 12:25:35 -0500186 Should Be Equal ${resp} ok
187
188 Login BMC ${username} ${EMPTY}
189 ${rc}= Execute Command echo Login return_stdout=False return_rc=True
190 Should Be Equal ${rc} ${0}
191
192Set password for non existing user
193 [Documentation] ***BAD PATH***
194 ... This testcase is for testing password set for non-existing user
195 ... in open bmc.\n
George Keishingc965bc12016-10-18 12:15:43 -0500196 [Tags] Set_password_for_non_existing_user
Chris Austenb29d2e82016-06-07 12:25:35 -0500197
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600198 ${resp}= Change Password ${NON_EXISTING_USER} ${VALID_PASSWORD}
Chris Austenb29d2e82016-06-07 12:25:35 -0500199 Should Be Equal ${resp} error
200
201Create existing user
202 [Documentation] ***BAD PATH***
203 ... This testcase is for checking that user creation is not allowed
204 ... for existing user in open bmc.\n
Rahul Maheshwarif8119102016-10-05 01:15:56 -0500205 [Tags] Create_existing_user
Chris Austenb29d2e82016-06-07 12:25:35 -0500206
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600207 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
208 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
209 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -0500210
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600211 ${resp}= Create User ${comment} ${username} ${EMPTY} ${EMPTY}
Chris Austenb29d2e82016-06-07 12:25:35 -0500212 Should Be Equal ${resp} ok
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} error
215
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600216 ${resp}= Delete User ${username}
Chris Austenb29d2e82016-06-07 12:25:35 -0500217 Should Be Equal ${resp} ok
218
219Create user with no name
220 [Documentation] ***BAD PATH***
221 ... This testcase is for checking that user creation is not allowed
222 ... with empty username in open bmc.\n
George Keishingc965bc12016-10-18 12:15:43 -0500223 [Tags] Create_user_with_no_name
Chris Austenb29d2e82016-06-07 12:25:35 -0500224
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600225 ${username}= Generate Random String ${RANDOM_STRING_LENGTH}
226 ${password}= Generate Random String ${RANDOM_STRING_LENGTH}
227 ${comment}= Generate Random String ${RANDOM_STRING_LENGTH}
228 ${groupname}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -0500229
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600230 ${resp}= Create User ${comment} ${EMPTY} ${groupname} ${password}
Chris Austenb29d2e82016-06-07 12:25:35 -0500231 Should Be Equal ${resp} error
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600232 ${user_list}= Get UserList
Chris Austenb29d2e82016-06-07 12:25:35 -0500233 Should Not Contain ${user_list} ${EMPTY}
234
235Create existing user group
236 [Documentation] ***BAD PATH***
237 ... This testcase is for checking that user group creation is not allowed
238 ... for existing user group in open bmc.\n
George Keishingc965bc12016-10-18 12:15:43 -0500239 [Tags] Create_existing_user_group
Chris Austenb29d2e82016-06-07 12:25:35 -0500240
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600241 ${groupname}= Generate Random String ${RANDOM_STRING_LENGTH}
Chris Austenb29d2e82016-06-07 12:25:35 -0500242
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600243 ${resp}= Create UserGroup ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -0500244 Should Be Equal ${resp} ok
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600245 ${resp}= Create UserGroup ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -0500246 Should Be Equal ${resp} error
247
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600248 ${resp}= Delete Group ${groupname}
Chris Austenb29d2e82016-06-07 12:25:35 -0500249 Should Be Equal ${resp} ok
250
251Create user group with no name
252 [Documentation] ***BAD PATH***
253 ... This testcase is for checking that user group creation is not allowed
254 ... with empty groupname in open bmc.\n
George Keishingc965bc12016-10-18 12:15:43 -0500255 [Tags] Create_user_group_with_no_name
Chris Austenb29d2e82016-06-07 12:25:35 -0500256
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600257 ${resp}= Create UserGroup ${EMPTY}
Chris Austenb29d2e82016-06-07 12:25:35 -0500258 Should Be Equal ${resp} error
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600259 ${usergroup_list}= Get GroupListUsr
Chris Austenb29d2e82016-06-07 12:25:35 -0500260 Should Not Contain ${usergroup_list} ${EMPTY}
261
George Keishingb843a592016-09-21 09:48:51 -0500262Cleanup Users List
263 [Documentation] ***GOOD PATH***
264 ... This testcase is to clean up multiple users created by
265 ... the test so as to leave the system in cleaner state.
266 ... This is a no-op if there is no user list on the BMC.
George Keishingc965bc12016-10-18 12:15:43 -0500267 [Tags] Cleanup_Users_List
George Keishingb843a592016-09-21 09:48:51 -0500268
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600269 ${user_list}= Get UserList
George Keishingb843a592016-09-21 09:48:51 -0500270 : FOR ${username} IN @{user_list}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600271 \ ${resp}= Delete User ${username}
George Keishingb843a592016-09-21 09:48:51 -0500272 \ Should Be Equal ${resp} ok
273
274
Chris Austenb29d2e82016-06-07 12:25:35 -0500275*** Keywords ***
276
277Get UserList
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600278 ${data}= create dictionary data=@{EMPTY}
George Keishingab1bd922016-12-05 05:29:59 -0600279 ${resp}= OpenBMC Post Request
280 ... ${USER_MANAGER_URI}Users/action/UserList data=${data}
Chris Austenb29d2e82016-06-07 12:25:35 -0500281 should be equal as strings ${resp.status_code} ${HTTP_OK}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600282 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600283 [Return] ${jsondata['data']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500284
285Get GroupListUsr
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600286 ${data}= create dictionary data=@{EMPTY}
George Keishingab1bd922016-12-05 05:29:59 -0600287 ${resp}= OpenBMC Post Request
288 ... ${USER_MANAGER_URI}/Groups/action/GroupListUsr data=${data}
Chris Austenb29d2e82016-06-07 12:25:35 -0500289 should be equal as strings ${resp.status_code} ${HTTP_OK}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600290 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600291 [Return] ${jsondata['data']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500292
293Create User
294 [Arguments] ${comment} ${username} ${groupname} ${password}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600295 @{user_list}= Create List ${comment} ${username} ${groupname} ${password}
296 ${data}= create dictionary data=@{user_list}
George Keishingab1bd922016-12-05 05:29:59 -0600297 ${resp}= OpenBMC Post Request
298 ... ${USER_MANAGER_URI}Users/action/UserAdd data=${data}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600299 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600300 [Return] ${jsondata['status']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500301
302Change Password
303 [Arguments] ${username} ${password}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600304 @{user_list}= Create List ${username} ${password}
305 ${data}= create dictionary data=@{user_list}
George Keishingab1bd922016-12-05 05:29:59 -0600306 ${resp}= OpenBMC Post Request
307 ... ${USER_MANAGER_URI}User/action/Passwd data=${data}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600308 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600309 [Return] ${jsondata['status']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500310
311Create UserGroup
312 [Arguments] ${args}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600313 @{group_list}= Create List ${args}
314 ${data}= create dictionary data=@{group_list}
George Keishingab1bd922016-12-05 05:29:59 -0600315 ${resp}= OpenBMC Post Request
316 ... ${USER_MANAGER_URI}Groups/action/GroupAddUsr data=${data}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600317 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600318 [Return] ${jsondata['status']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500319
320Delete Group
321 [Arguments] ${args}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600322 @{group_list}= Create List ${args}
323 ${data}= create dictionary data=@{group_list}
George Keishingab1bd922016-12-05 05:29:59 -0600324 ${resp}= OpenBMC Post Request
325 ... ${USER_MANAGER_URI}Group/action/GroupDel data=${data}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600326 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600327 [Return] ${jsondata['status']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500328
329Delete User
330 [Arguments] ${args}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600331 @{user_list}= Create List ${args}
332 ${data}= create dictionary data=@{user_list}
George Keishingab1bd922016-12-05 05:29:59 -0600333 ${resp}= OpenBMC Post Request
334 ... ${USER_MANAGER_URI}User/action/Userdel data=${data}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600335 ${jsondata}= to json ${resp.content}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600336 [Return] ${jsondata['status']}
Chris Austenb29d2e82016-06-07 12:25:35 -0500337
338Login BMC
339 [Arguments] ${username} ${password}
340 Open connection ${OPENBMC_HOST}
Gunnar Mills1cd544d2016-12-06 11:19:22 -0600341 ${resp}= Login ${username} ${password}
Gunnar Millsc9ea9362016-12-13 16:21:13 -0600342 [Return] ${resp}