Added new cases for IPMI Set User access payload.
Testcases Added:
1) Verify Set User Access Payload For Standard Payload SOL
Disable standard payload 1(SOL) using set user access payload command
and verify it in get user access payload command and also check
sol activate is not working.
2) Verify Set User Access Payload For Operator Privileged User
Verify set user access payload command is not accessbile for Operator
privileged User.
Moved below keywords from ipmi/test_ipmi_user.robot to lib/ipmi_client.robot
for reuse purpose.
Enable IPMI User And Verify
Create Random IPMI User
Delete Created User
Added IPMI raw cmd for Set user access payload.
Tested: Run robot ipmi/test_ipmi_paylaod.robot.
Signed-off-by: Nagarjun B <nagarjunb@ami.com>
Change-Id: I8c7f3b0e46895fad0f6483043f76b714152a85be
diff --git a/ipmi/test_ipmi_user.robot b/ipmi/test_ipmi_user.robot
index a1d2c7e..5f2511a 100644
--- a/ipmi/test_ipmi_user.robot
+++ b/ipmi/test_ipmi_user.robot
@@ -521,27 +521,6 @@
*** Keywords ***
-Create Random IPMI User
- [Documentation] Create IPMI user with random username and userid and return those fields.
-
- ${random_username}= Generate Random String 8 [LETTERS]
- ${random_userid}= Find Free User Id
- IPMI Create User ${random_userid} ${random_username}
- [Return] ${random_userid} ${random_username}
-
-
-Enable IPMI User And Verify
- [Documentation] Enable the userid and verify that it has been enabled.
- [Arguments] ${userid}
-
- # Description of argument(s):
- # userid A numeric userid (e.g. "4").
-
- Run IPMI Standard Command user enable ${userid}
- ${user_info}= Get User Info ${userid}
- Valid Value user_info['enable_status'] ['enabled']
-
-
Set Default Password For IPMI Root User
[Documentation] Set default password for IPMI root user (i.e. 0penBmc).
# Set default password for root user.
@@ -655,16 +634,6 @@
FFDC On Test Case Fail
-Delete Created User
- [Documentation] Delete created IPMI user.
- [Arguments] ${userid}
- # Description of argument(s):
- # userid The user ID (e.g. "1", "2", etc.).
-
- Run IPMI Standard Command user set name ${userid} ""
- Sleep 5s
-
-
Check Active Ethernet Channels
[Documentation] Check active ethernet channels and set suite variables.
@@ -795,4 +764,4 @@
Exit For Loop If ${is_empty} == ${True}
END
- [Return] ${random_userid}
+ [Return] ${random_userid}
\ No newline at end of file