Fix redfishtool based local user test suite issues
Changes:
- Replace Operator user with ReadOnly user in test cases
Tested:
Ran Test
redfish/dmtf_tools/test_redfishtool_local_user.robot
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
Change-Id: I7d41ca20413b15f3df9e08b7796d3815d2d1405c
diff --git a/redfish/dmtf_tools/test_redfishtool_local_user.robot b/redfish/dmtf_tools/test_redfishtool_local_user.robot
index 5b0ca54..2e5147d 100644
--- a/redfish/dmtf_tools/test_redfishtool_local_user.robot
+++ b/redfish/dmtf_tools/test_redfishtool_local_user.robot
@@ -29,8 +29,8 @@
[Tags] Verify_Redfishtool_Create_Users
[Teardown] Redfishtool Delete User "UserT100"
- Redfishtool Create User "UserT100" "TestPwd123" "Operator" true
- Redfishtool Verify User "UserT100" "Operator"
+ Redfishtool Create User "UserT100" "TestPwd123" "ReadOnly" true
+ Redfishtool Verify User "UserT100" "ReadOnly"
Verify Redfishtool Modify Users
@@ -38,7 +38,7 @@
[Tags] Verify_Redfishtool_Modify_Users
[Teardown] Redfishtool Delete User "UserT100"
- Redfishtool Create User "UserT100" "TestPwd123" "Operator" true
+ Redfishtool Create User "UserT100" "TestPwd123" "ReadOnly" true
Redfishtool Update User Role "UserT100" "Administrator"
Redfishtool Verify User "UserT100" "Administrator"
@@ -47,7 +47,7 @@
[Documentation] Delete user via Redfishtool and verify.
[Tags] Verify_Redfishtool_Delete_Users
- Redfishtool Create User "UserT100" "TestPwd123" "Operator" true
+ Redfishtool Create User "UserT100" "TestPwd123" "ReadOnly" true
Redfishtool Delete User "UserT100"
${status}= Redfishtool Verify User Name Exists "UserT100"
Should Be True ${status} == False
@@ -57,7 +57,7 @@
[Documentation] Verify login with deleted user via Redfishtool.
[Tags] Verify_Redfishtool_Login_With_Deleted_Redfish_Users
- Redfishtool Create User "UserT100" "TestPwd123" "Operator" true
+ Redfishtool Create User "UserT100" "TestPwd123" "ReadOnly" true
Redfishtool Delete User "UserT100"
Redfishtool Access Resource /redfish/v1/AccountService/Accounts "UserT100" "TestPwd123"
... ${HTTP_UNAUTHORIZED}
@@ -68,7 +68,7 @@
[Tags] Verify_Redfishtool_Error_Upon_Creating_Same_Users_With_Different_Privileges
[Teardown] Redfishtool Delete User "UserT100"
- Redfishtool Create User "UserT100" "TestPwd123" "Operator" true
+ Redfishtool Create User "UserT100" "TestPwd123" "ReadOnly" true
Redfishtool Create User "UserT100" "TestPwd123" "Administrator" true
... expected_error=${HTTP_BAD_REQUEST}
@@ -82,7 +82,7 @@
Redfishtool Create User "UserT100" "TestPwd123" "Administrator" true
# Verify if a user can be added by admin
- Redfishtool Create User "UserT101" "TestPwd123" "Operator" true "UserT100" "TestPwd123"
+ Redfishtool Create User "UserT101" "TestPwd123" "ReadOnly" true "UserT100" "TestPwd123"
Verify Redfishtool ReadOnly User Privilege
@@ -123,8 +123,8 @@
[Tags] Verify_Minimum_Password_Length_For_Redfish_User
[Teardown] Redfishtool Delete User "UserT100"
- Redfishtool Create User "UserT100" "TestPwd" "Operator" true expected_error=${HTTP_BAD_REQUEST}
- Redfishtool Create User "UserT100" "TestPwd1" "Operator" true
+ Redfishtool Create User "UserT100" "TestPwd" "ReadOnly" true expected_error=${HTTP_BAD_REQUEST}
+ Redfishtool Create User "UserT100" "TestPwd1" "ReadOnly" true
Verify Create User Without Enabling
@@ -132,7 +132,7 @@
[Tags] Verify_Create_User_Without_Enabling
[Teardown] Redfishtool Delete User "UserT100"
- Redfishtool Create User "UserT100" "TestPwd123" "Operator" false
+ Redfishtool Create User "UserT100" "TestPwd123" "ReadOnly" false
Redfishtool Access Resource /redfish/v1/AccountService/Accounts "UserT100" "TestPwd123"
... ${HTTP_UNAUTHORIZED}