blob: e6f92377b13635cf1ce1dcfa6f8d230a60ca25a8 [file] [log] [blame]
George Keishing74751f72018-10-09 13:46:27 -05001*** 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
Sandhya Somashekar839a0c22019-01-31 05:05:43 -06009Resource ../lib/resource.robot
George Keishing74751f72018-10-09 13:46:27 -050010Resource ../lib/ipmi_client.robot
11Resource ../lib/boot_utils.robot
12Library ../lib/ipmi_utils.py
13
14Test Teardown FFDC On Test Case Fail
15
16*** Test Cases ***
17
18Test Inband IPMI Auth Reset
19 [Documentation] Trigger in-band BMC authentication reset and verify.
20 [Tags] Test_Inband_IPMI_Auth_Reset
21
22 Create Session openbmc ${AUTH_URI} max_retries=1
23 ${headers}= Create Dictionary Content-Type=application/json
24 @{credentials}= Create List ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD}
25 ${data}= create dictionary data=@{credentials}
George Keishingfbd67002022-08-01 11:24:03 -050026 ${resp}= POST On Session openbmc /login data=${data} headers=${headers}
27 ... expected_status=any
George Keishing74751f72018-10-09 13:46:27 -050028 Should Be Equal As Strings ${resp.status_code} ${HTTP_UNAUTHORIZED}
29
30 # Call reset method.
31 Run Inband IPMI Raw Command 0x3a 0x11
32
33 Initialize OpenBMC