Added a test case to verify user creation with service username
Verify Creating User With Service Username
Change-Id: I3e05db0fb7d9e7aaf897ceb7d0a182d379e627cb
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/openpower/service_account/test_service_user.robot b/openpower/service_account/test_service_user.robot
index 5d5e188..5527cf4 100644
--- a/openpower/service_account/test_service_user.robot
+++ b/openpower/service_account/test_service_user.robot
@@ -1,9 +1,9 @@
*** Settings ***
Documentation This suite is to test service user functionality via Redfish.
-Resource ../lib/connection_client.robot
-Resource ../lib/openbmc_ffdc.robot
-Resource ../lib/bmc_redfish_utils.robot
+Resource ../../lib/connection_client.robot
+Resource ../../lib/openbmc_ffdc.robot
+Resource ../../lib/bmc_redfish_utils.robot
Suite Setup Suite Setup Execution
Suite Teardown Redfish.Logout
@@ -22,6 +22,14 @@
Should Be Equal Administrator ${role_config}
+Verify Creating User With Service Username
+ [Documentation] Verify that user with service username can not be created.
+
+ ${payload}= Create Dictionary
+ ... UserName=service Password=TestPwd1 RoleId=Operator Enabled=${True}
+ Redfish.Post /redfish/v1/AccountService/Accounts/ body=&{payload}
+ ... valid_status_codes=[${HTTP_BAD_REQUEST}]
+
*** Keywords ***
Suite Setup Execution