Fixed LDAP test case failure in test run
Changes:
1.Update LDAP Group Name And Verify Operations.
2.Update LDAP User Roles And Verify Host Poweroff Operation.
Change-Id: Ia4df02b5b02f0c155f70119210f5223e30991940
Signed-off-by: Anves Kumar rayankula <anvesr77@in.ibm.com>
diff --git a/redfish/account_service/test_ldap_configuration.robot b/redfish/account_service/test_ldap_configuration.robot
index 141d734..38cbffc 100644
--- a/redfish/account_service/test_ldap_configuration.robot
+++ b/redfish/account_service/test_ldap_configuration.robot
@@ -224,7 +224,7 @@
[Teardown] Restore LDAP Privilege
# group_name group_privilege valid_status_codes
- ${GROUP_NAME} Administrator [${HTTP_OK}]
+ ${GROUP_NAME} Administrator [${HTTP_OK}, ${HTTP_NO_CONTENT}]
${GROUP_NAME} Operator [${HTTP_UNAUTHORIZED}, ${HTTP_FORBIDDEN}]
${GROUP_NAME} ReadOnly [${HTTP_UNAUTHORIZED}, ${HTTP_FORBIDDEN}]
${GROUP_NAME} NoAccess [${HTTP_UNAUTHORIZED}, ${HTTP_FORBIDDEN}]
@@ -410,6 +410,7 @@
[Documentation] Verify that LDAP user authentication for user not exist
... in LDAP server and fails.
[Tags] Verify_LDAP_Authentication_With_Invalid_LDAP_User
+ [Teardown] Run Keywords Redfish.Logout AND Redfish.Login
${status}= Run Keyword And Return Status Redfish.Login INVALID_LDAP_USER
... ${LDAP_USER_PASSWORD}