You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to Reproduce: Run the test case with the following teardown sequence: [Teardown] Run Keywords Redfish.Logout AND Redfish.Login AND Redfish.Delete /redfish/v1/AccountService/Accounts/test_user AND SSHLibrary.Close All Connections
The Redfish.Delete request results in a 404 error during the teardown phase.
Issue Analysis:
Manual deletion and tests using Postman work as expected without errors.
It seems that the issue arises because the SSH connection was still active and had not been closed by SSHLibrary.Close All Connections before attempting to delete the user. As the last line of the test case involves logging in with SSHLibrary.Login test_user TestPwd123, the account is still in use, which prevents its deletion.
Proposed Solution: Reorder the teardown steps to ensure all SSH connections are closed before attempting to delete the account. The revised order should be: [Teardown] Run Keywords Redfish.Logout AND Redfish.Login AND Redfish.Delete /redfish/v1/AccountService/Accounts/test_user AND SSHLibrary.Close All Connections
Additional Information: Robot Framework 6.0.2 (Python 3.10.12 on Linux)
The text was updated successfully, but these errors were encountered:
fangkaiyu2023
changed the title
[BUG] Verify User Account Unlock:404 Error When Deleting Redfish Account in Teardown Due to SSH Connections Not Closed
Verify User Account Unlock:404 Error When Deleting Redfish Account in Teardown Due to SSH Connections Not Closed
Sep 4, 2024
In the Verify SSH Login Access With Admin User test case, just like in Verify User Account Unlock, it's essential to terminate the SSH connection before attempting to delete the account.
Description: I'm encountering a 404 error when attempting to execute the Redfish.Delete request in the teardown phase of my test case.
URL: https://github.com/openbmc/openbmc-test-automation/blob/v4.0-stable/redfish/account_service/test_user_account.robot
Steps to Reproduce: Run the test case with the following teardown sequence:
[Teardown] Run Keywords Redfish.Logout AND Redfish.Login AND Redfish.Delete /redfish/v1/AccountService/Accounts/test_user AND SSHLibrary.Close All Connections
The Redfish.Delete request results in a 404 error during the teardown phase.
Issue Analysis:
Manual deletion and tests using Postman work as expected without errors.
It seems that the issue arises because the SSH connection was still active and had not been closed by SSHLibrary.Close All Connections before attempting to delete the user. As the last line of the test case involves logging in with SSHLibrary.Login test_user TestPwd123, the account is still in use, which prevents its deletion.
Proposed Solution: Reorder the teardown steps to ensure all SSH connections are closed before attempting to delete the account. The revised order should be:
[Teardown] Run Keywords Redfish.Logout AND Redfish.Login AND Redfish.Delete /redfish/v1/AccountService/Accounts/test_user AND SSHLibrary.Close All Connections
Additional Information: Robot Framework 6.0.2 (Python 3.10.12 on Linux)
The text was updated successfully, but these errors were encountered: