1*** Settings *** 2Documentation OEM IPMI in-band BMC authentication reset. 3 4# This resets the BMC authentication: 5# - Enable local users if they were disabled. 6# - Delete the LDAP configuration if there was one. 7# - Reset the root password back to the default one. 8 9Resource ../lib/resource.robot 10Resource ../lib/ipmi_client.robot 11Resource ../lib/boot_utils.robot 12Library ../lib/ipmi_utils.py 13 14Test Teardown FFDC On Test Case Fail 15 16Test Tags Test_Inband_BMC_Auth_Reset 17 18*** Test Cases *** 19 20Test Inband IPMI Auth Reset 21 [Documentation] Trigger in-band BMC authentication reset and verify. 22 [Tags] Test_Inband_IPMI_Auth_Reset 23 24 Create Session openbmc ${AUTH_URI} max_retries=1 25 ${headers}= Create Dictionary Content-Type=application/json 26 @{credentials}= Create List ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} 27 ${data}= create dictionary data=@{credentials} 28 ${resp}= POST On Session openbmc /login data=${data} headers=${headers} 29 ... expected_status=any 30 Should Be Equal As Strings ${resp.status_code} ${HTTP_UNAUTHORIZED} 31 32 # Call reset method. 33 Run Inband IPMI Raw Command 0x3a 0x11 34 35 Initialize OpenBMC 36