From b1b66a8daf77930ec6d548138c02063ba96c2ce6 Mon Sep 17 00:00:00 2001 From: Guru9902 Date: Fri, 10 Oct 2025 07:29:25 +0000 Subject: [PATCH] redfish: Systems-first SerialConsole check with Managers fallback M1_UART_1_Redfish_Serial_Console_Capability now checks SerialConsole on ComputerSystem first, then falls back to Manager if absent, for backward compatibility with schema changes (Manager v1_10_0 deprecation; property added to ComputerSystem). --- redfish/test_redfish_manage_interface.robot | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/redfish/test_redfish_manage_interface.robot b/redfish/test_redfish_manage_interface.robot index 0bea163..d63bb47 100644 --- a/redfish/test_redfish_manage_interface.robot +++ b/redfish/test_redfish_manage_interface.robot @@ -48,13 +48,16 @@ Check Redfish Serial Console Capability [Documentation] Check Redfish Serial Console Capability [Tags] M1_UART_1_Redfish_Serial_Console_Capability - ${resp}= Redfish.Get Properties /redfish/v1/Managers/${BMC_ID} + ${resp}= Redfish.Get Attribute /redfish/v1/Systems/${SYSTEM_ID} SerialConsole default=${None} + ${resp}= Run Keyword If '${resp}' == '${None}' + ... Redfish.Get Attribute /redfish/v1/Managers/${BMC_ID} SerialConsole default=${None} + ... ELSE Set Variable ${resp} Log ${resp} - Should Not Be Empty ${resp['SerialConsole']} + Should Not Be Empty ${resp} ... msg=Failure: No Redfish SerialConsole Object Detect - Should Not Be Empty ${resp['SerialConsole']['ConnectTypesSupported']} + Should Not Be Empty ${resp['ConnectTypesSupported']} ... msg=Failure: No Redfish SerialConsole Type Detect @@ -75,4 +78,3 @@ Suite Teardown Execution [Documentation] Do the post suite teardown Redfish Delete All Sessions -