Delete redfish users after testing
Change-Id: I6425f05475a1da40f752102601d14cd11db3443a
Signed-off-by: Sandhya Somashekar <sansomas@in.ibm.com>
diff --git a/redfish/account_service/test_user_account.robot b/redfish/account_service/test_user_account.robot
index 4b03ba9..4109154 100644
--- a/redfish/account_service/test_user_account.robot
+++ b/redfish/account_service/test_user_account.robot
@@ -118,6 +118,7 @@
Redfish.Post ${REDFISH_ACCOUNTS_URI} body=&{payload}
... valid_status_codes=[${HTTP_BAD_REQUEST}]
+ Redfish.Delete ${REDFISH_ACCOUNTS_URI}test_user
Verify Modifying User Attributes
[Documentation] Verify modifying user attributes.
@@ -191,6 +192,10 @@
Redfish.Logout
+ Redfish.Login
+
+ Redfish.Delete ${REDFISH_ACCOUNTS_URI}admin_user
+
Verify Admin User Privilege
[Documentation] Verify admin user privilege.
[Tags] Verify_Admin_User_Privilege
@@ -215,6 +220,12 @@
# Verify modified user.
Redfish Verify User user_user NewTestPwd123 User ${True}
+ Redfish.Login
+
+ Redfish.Delete ${REDFISH_ACCOUNTS_URI}admin_user
+ Redfish.Delete ${REDFISH_ACCOUNTS_URI}operator_user
+ Redfish.Delete ${REDFISH_ACCOUNTS_URI}user_user
+
Verify Operator User Privilege
[Documentation] Verify operator user privilege.
[Tags] Verify_operator_User_Privilege
@@ -232,6 +243,12 @@
Redfish.Patch ${REDFISH_ACCOUNTS_URI}admin_user body={'Password': 'NewTestPwd123'}
... valid_status_codes=[${HTTP_UNAUTHORIZED}]
+ Redfish.Login
+
+ Redfish.Delete ${REDFISH_ACCOUNTS_URI}admin_user
+ Redfish.Delete ${REDFISH_ACCOUNTS_URI}operator_user
+
+
Verify 'User' User Privilege
[Documentation] Verify 'user' user privilege.
[Tags] Verify_User_User_Privilege
@@ -242,6 +259,10 @@
${system_model}= Redfish_Utils.Get Attribute
... ${SYSTEM_BASE_URI} Model
+ Redfish.Login
+
+ Redfish.Delete ${REDFISH_ACCOUNTS_URI}user_user
+
*** Keywords ***