1b940e19fSRahul Maheshwari*** Settings *** 2b940e19fSRahul Maheshwari 3b940e19fSRahul MaheshwariDocumentation Test OpenBMC GUI "Overview" menu. 4b940e19fSRahul Maheshwari 541747da7SRahul MaheshwariResource ../../lib/gui_resource.robot 62544cb18SmanashsarmaResource ../../../lib/logging_utils.robot 7fb353665SmanashsarmaResource ../../../lib/list_utils.robot 86d584deaSmanashsarmaResource ../../../lib/bmc_network_utils.robot 96d584deaSmanashsarma 106d584deaSmanashsarmaLibrary String 11b940e19fSRahul Maheshwari 1213242571Srramyasr-inSuite Setup Run Keywords Launch Browser And Login GUI AND Redfish.Login 1313242571Srramyasr-inSuite Teardown Run Keywords Close Browser AND Redfish.Logout 14b940e19fSRahul MaheshwariTest Setup Test Setup Execution 15b940e19fSRahul Maheshwari 16*6fb70d98SMatt FischerTest Tags Overview_Menu 17b940e19fSRahul Maheshwari 18b940e19fSRahul Maheshwari*** Variables *** 19b940e19fSRahul Maheshwari 20b940e19fSRahul Maheshwari${xpath_overview_page_header} //h1[contains(text(), "Overview")] 215f280c06Srramyasr-in${xpath_server_information_view_more_button} (//*[text()="View more"])[1] 225f280c06Srramyasr-in${xpath_firmware_information_view_more_button} (//*[text()="View more"])[2] 234033439dSrramyasr-in${xpath_network_information_view_more_button} (//*[text()="View more"])[3] 245f280c06Srramyasr-in${xpath_power_information_view_more_button} (//*[text()="View more"])[4] 255f280c06Srramyasr-in${xpath_event_logs_view_more_button} (//*[text()="View more"])[5] 265f280c06Srramyasr-in${xpath_inventory_and_leds_view_more_button} (//*[text()="View more"])[6] 27b18e15e6Srramyasr-in${xpath_launch_host_console} //*[@data-test-id='overviewQuickLinks-button-solConsole'] 2800b5545fSrramyasr-in${xpath_led_button} //*[@data-test-id='overviewInventory-checkbox-identifyLed'] 29b3442ed6Srramyasr-in${xpath_dumps_view_more_button} (//*[text()="View more"])[7] 30b3442ed6Srramyasr-in${xpath_critical_logs_count} //dt[contains(text(),'Critical')]/following-sibling::dd[1] 31d99803f0Srramyasr-in${xpath_warning_logs_count} //dt[contains(text(),'Warning')]/following-sibling::dd[1] 3207d1004aSrramyasr-in${xpath_asset_tag} //dt[contains(text(),'Asset tag')]/following-sibling::dd[1] 3307d1004aSrramyasr-in${xpath_operating_mode} //dt[contains(text(),'Operating mode')]/following-sibling::dd[1] 3407d1004aSrramyasr-in${xpath_machine_model} //dt[contains(text(),'Model')]/following-sibling::dd[1] 3507d1004aSrramyasr-in${xpath_serial_number} //dt[contains(text(),'Serial number')]/following-sibling::dd[1] 3690c6a81cSAshwini Chandrappa 37b940e19fSRahul Maheshwari*** Test Cases *** 38b940e19fSRahul Maheshwari 39b940e19fSRahul MaheshwariVerify Existence Of All Sections In Overview Page 40b940e19fSRahul Maheshwari [Documentation] Verify existence of all sections in Overview page. 41b940e19fSRahul Maheshwari [Tags] Verify_Existence_Of_All_Sections_In_Overview_Page 42b940e19fSRahul Maheshwari 431a79b66dSrramyasr-in Page Should Contain BMC date and time 44516f70dcSAshwini Chandrappa Page Should Contain Firmware information 45b940e19fSRahul Maheshwari Page Should Contain Server information 46516f70dcSAshwini Chandrappa Wait Until Page Contains Network information timeout=10 47532c37f0Srramyasr-in Page Should Contain Power information 48532c37f0Srramyasr-in Page Should Contain Event logs 49532c37f0Srramyasr-in Page Should Contain Inventory and LEDs 50e6818d15Srramyasr-in Page Should Contain Dumps 51b940e19fSRahul Maheshwari 5219e553c1Srramyasr-in 536d584deaSmanashsarmaVerify Network Information In Overview Page 546d584deaSmanashsarma [Documentation] Verify values under network information section. 55f9248957SGeorge Keishing [Tags] Verify_Network_Information_In_Overview_Page 566d584deaSmanashsarma 576d584deaSmanashsarma ${hostname}= Get BMC Hostname 586d584deaSmanashsarma Page Should Contain ${hostname} 596d584deaSmanashsarma 606d584deaSmanashsarma # Get all IP addresses and prefix lengths on system. 616d584deaSmanashsarma 624d430283Sganesanb ${resp}= Redfish.Get Attribute /redfish/v1/Managers/${MANAGER_ID}/EthernetInterfaces/eth0 IPv4StaticAddresses 63690fcd40Srramyasr-in ${ip_addr}= Set Variable ${resp[0]['Address']} 64690fcd40Srramyasr-in Page Should Contain ${ip_addr} 656d584deaSmanashsarma 666d584deaSmanashsarma 67e18f99e0SmanashsarmaVerify Server Information Section 68e18f99e0Smanashsarma [Documentation] Verify values under server information section in overview page. 69e18f99e0Smanashsarma [Tags] Verify_Server_Information_Section 70e18f99e0Smanashsarma 7107d1004aSrramyasr-in # Model. 7207d1004aSrramyasr-in ${redfish_machine_model}= Redfish.Get Attribute ${SYSTEM_BASE_URI} Model 7307d1004aSrramyasr-in Element Should Contain ${xpath_machine_model} ${redfish_machine_model} 74e18f99e0Smanashsarma 7507d1004aSrramyasr-in # Serial Number. 7607d1004aSrramyasr-in ${redfish_serial_number}= Redfish.Get Attribute ${SYSTEM_BASE_URI} SerialNumber 7707d1004aSrramyasr-in Element Should Contain ${xpath_serial_number} ${redfish_serial_number} 78e18f99e0Smanashsarma 7907d1004aSrramyasr-in # Asset Tag. 8007d1004aSrramyasr-in ${redfish_asset_tag}= Redfish.Get Attribute ${SYSTEM_BASE_URI} AssetTag 8107d1004aSrramyasr-in Element Should Contain ${xpath_asset_tag} ${redfish_asset_tag} 82e18f99e0Smanashsarma 8307d1004aSrramyasr-in # Operating mode. 8407d1004aSrramyasr-in ${redfish_operating_mode}= Redfish.Get Attribute ${BIOS_ATTR_URI} Attributes 8507d1004aSrramyasr-in Element Should Contain ${xpath_operating_mode} ${redfish_operating_mode['pvm_system_operating_mode']} 86e18f99e0Smanashsarma 87e18f99e0Smanashsarma 88554ddecfSmanashsarmaVerify BMC Information Section 89554ddecfSmanashsarma [Documentation] Verify BMC information section in overview page. 90554ddecfSmanashsarma [Tags] Verify_BMC_Information_Section 91554ddecfSmanashsarma 92554ddecfSmanashsarma ${firmware_version}= Redfish Get BMC Version 93554ddecfSmanashsarma Page Should Contain ${firmware_version} 94554ddecfSmanashsarma 95554ddecfSmanashsarma 9643568c20SmanashsarmaVerify Edit Network Setting Button 9743568c20Smanashsarma [Documentation] Verify navigation to network setting page after clicking the button in overview page. 9843568c20Smanashsarma [Tags] Verify_Edit_Network_Setting_Button 9943568c20Smanashsarma 1004033439dSrramyasr-in Click Element ${xpath_network_information_view_more_button} 101732cc3ffSrramyasr-in Wait Until Page Contains Element ${xpath_network_heading} 10243568c20Smanashsarma 10343568c20Smanashsarma 104b3442ed6Srramyasr-inVerify Event Under Critical Event Logs Section 105b3442ed6Srramyasr-in [Documentation] Verify event under critical event logs section in case of any event. 106b3442ed6Srramyasr-in [Tags] Verify_Event_Under_Critical_Event_Logs_Section 107b3442ed6Srramyasr-in [Teardown] Redfish Purge Event Log 108fb353665Smanashsarma 109fb353665Smanashsarma Redfish Purge Event Log 110fb353665Smanashsarma Click Element ${xpath_refresh_button} 111fb353665Smanashsarma Generate Test Error Log 112243a1f2aSAshwini Chandrappa Click Element ${xpath_refresh_button} 113bee71fa0Srramyasr-in Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 114b3442ed6Srramyasr-in ${log_count}= Get Text ${xpath_critical_logs_count} 115b3442ed6Srramyasr-in Should Be True '${log_count}' == '${1}' 116fb353665Smanashsarma 117fb353665Smanashsarma 118d99803f0Srramyasr-inVerify Event Under Warning Event Logs Section 119d99803f0Srramyasr-in [Documentation] Verify event under warning event logs section in case of any event. 120d99803f0Srramyasr-in [Tags] Verify_Event_Under_Warning_Event_Logs_Section 121d99803f0Srramyasr-in [Teardown] Redfish Purge Event Log 122d99803f0Srramyasr-in 123d99803f0Srramyasr-in Redfish Purge Event Log 124d99803f0Srramyasr-in Click Element ${xpath_refresh_button} 125d99803f0Srramyasr-in 126d99803f0Srramyasr-in # Generate a predictable error for testing purpose. 127d99803f0Srramyasr-in BMC Execute Command ${CMD_PREDICTIVE_ERROR} 128d99803f0Srramyasr-in 129d99803f0Srramyasr-in Click Element ${xpath_refresh_button} 130af2226ecSrramyasr-in Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 131d99803f0Srramyasr-in 132d99803f0Srramyasr-in ${log_count}= Get Text ${xpath_warning_logs_count} 133d99803f0Srramyasr-in Should Be Equal As Integers ${log_count} 1 134d99803f0Srramyasr-in 135d99803f0Srramyasr-in 1364033439dSrramyasr-inVerify View More Event Logs Button 1374033439dSrramyasr-in [Documentation] Verify view more event log button in overview page. 1384033439dSrramyasr-in [Tags] Verify_View_More_Event_Logs_Button 1397d0a4128Smanashsarma 1407d0a4128Smanashsarma Generate Test Error Log 1414033439dSrramyasr-in Page Should Contain Element ${xpath_event_logs_view_more_button} timeout=30 1424033439dSrramyasr-in Click Element ${xpath_event_logs_view_more_button} 1435f280c06Srramyasr-in Wait Until Page Contains Element ${xpath_event_logs_heading} timeout=30 1447d0a4128Smanashsarma 1457d0a4128Smanashsarma 146b18e15e6Srramyasr-inVerify Host Console Button In Overview Page 147b18e15e6Srramyasr-in [Documentation] Click host console button and verify page navigation to host console page. 148b18e15e6Srramyasr-in [Tags] Verify_Host_Console_Button_In_Overview_Page 149a3a2536dSmanashsarma 150b18e15e6Srramyasr-in Click Element ${xpath_launch_host_console} 151b18e15e6Srramyasr-in Wait Until Page Contains Element ${xpath_host_console_heading} 152a3a2536dSmanashsarma 153a3a2536dSmanashsarma 154ffb30931SmanashsarmaVerify Server LED Turn On 155ffb30931Smanashsarma [Documentation] Turn on server LED via GUI and verify its status via Redfish. 156ffb30931Smanashsarma [Tags] Verify_Server_LED_Turn_On 157ffb30931Smanashsarma 15890c6a81cSAshwini Chandrappa # Turn Off the server LED via Redfish and refresh GUI. 15952eb7c21SGeorge Keishing Set IndicatorLED State Off 16090c6a81cSAshwini Chandrappa Refresh GUI 161ffb30931Smanashsarma 16290c6a81cSAshwini Chandrappa # Turn ON the LED via GUI. 163436de60fSrramyasr-in Click Element ${xpath_led_button} 164ffb30931Smanashsarma 16590c6a81cSAshwini Chandrappa # Cross check that server LED ON state via Redfish. 16652eb7c21SGeorge Keishing Verify Identify LED State Via Redfish Lit 167ffb30931Smanashsarma 168ffb30931Smanashsarma 169ffb30931SmanashsarmaVerify Server LED Turn Off 170ffb30931Smanashsarma [Documentation] Turn off server LED via GUI and verify its status via Redfish. 171ffb30931Smanashsarma [Tags] Verify_Server_LED_Turn_Off 172ffb30931Smanashsarma 17390c6a81cSAshwini Chandrappa # Turn On the server LED via Redfish and refresh GUI. 17452eb7c21SGeorge Keishing Set IndicatorLED State Lit 17590c6a81cSAshwini Chandrappa Refresh GUI 176ffb30931Smanashsarma 17790c6a81cSAshwini Chandrappa # Turn OFF the LED via GUI. 178ffb30931Smanashsarma Click Element At Coordinates ${xpath_led_button} 0 0 179ffb30931Smanashsarma 180ffb30931Smanashsarma # Cross check that server LED off state via Redfish. 18152eb7c21SGeorge Keishing Verify Identify LED State Via Redfish Off 182ffb30931Smanashsarma 183ffb30931Smanashsarma 18465c9e148SmanashsarmaVerify BMC Time In Overview Page 18565c9e148Smanashsarma [Documentation] Verify that BMC date from GUI matches with BMC time via Redfish. 18665c9e148Smanashsarma [Tags] Verify_BMC_Time_In_Overview_Page 18765c9e148Smanashsarma 1884d430283Sganesanb ${date_time}= Redfish.Get Attribute ${REDFISH_BASE_URI}Managers/${MANAGER_ID} DateTime 18965c9e148Smanashsarma ${converted_date}= Convert Date ${date_time} result_format=%Y-%m-%d 19065c9e148Smanashsarma 19165c9e148Smanashsarma Page Should Contain ${converted_date} 19265c9e148Smanashsarma 19365c9e148Smanashsarma 19443458ffdSmanashsarmaVerify BMC Information At Host Power Off State 19543458ffdSmanashsarma [Documentation] Verify that BMC information is displayed at host power off state. 19643458ffdSmanashsarma [Tags] Verify_BMC_Information_At_Host_Power_Off_State 19743458ffdSmanashsarma 19843458ffdSmanashsarma Redfish Power Off stack_mode=skip 19943458ffdSmanashsarma ${firmware_version}= Redfish Get BMC Version 20043458ffdSmanashsarma Page Should Contain ${firmware_version} 20143458ffdSmanashsarma 20243458ffdSmanashsarma 203305d23adSrramyasr-inVerify View More Button For Dumps 204305d23adSrramyasr-in [Documentation] Verify view more button for dumps button in overview page. 205305d23adSrramyasr-in [Tags] Verify_View_More_Button_For_Dumps 206305d23adSrramyasr-in 207b3442ed6Srramyasr-in Wait Until Page Contains Element ${xpath_dumps_view_more_button} timeout=30 208b3442ed6Srramyasr-in Click Element ${xpath_dumps_view_more_button} 209305d23adSrramyasr-in Wait Until Page Contains Element ${xpath_dumps_header} timeout=30 210305d23adSrramyasr-in 2115f280c06Srramyasr-in 2125f280c06Srramyasr-inVerify View More Button Under Server Information Section 2135f280c06Srramyasr-in [Documentation] Verify view more button under server information section in overview page. 2145f280c06Srramyasr-in [Tags] Verify_View_More_Button_Under_Server_Information_Section 2155f280c06Srramyasr-in 2164033439dSrramyasr-in Wait Until Page Contains Element ${xpath_server_information_view_more_button} timeout=30 2174033439dSrramyasr-in Click Element ${xpath_server_information_view_more_button} 2185f280c06Srramyasr-in Wait Until Page Contains Element ${xpath_inventory_and_leds_heading} timeout=30 2195f280c06Srramyasr-in 2205f280c06Srramyasr-in 2215f280c06Srramyasr-inVerify View More Button Under Firmware Information Section 2225f280c06Srramyasr-in [Documentation] Verify view more button under firmware information section in overview page. 2235f280c06Srramyasr-in [Tags] Verify_View_More_Button_Under_Firmware_Information_Section 2245f280c06Srramyasr-in 2255f280c06Srramyasr-in Wait Until Page Contains Element ${xpath_firmware_information_view_more_button} timeout=30 2265f280c06Srramyasr-in Click Element ${xpath_firmware_information_view_more_button} 2275f280c06Srramyasr-in Wait Until Page Contains Element ${xpath_firmware_heading} timeout=30 2285f280c06Srramyasr-in 2295f280c06Srramyasr-in 2305f280c06Srramyasr-inVerify View More Button Under Network Information Section 2315f280c06Srramyasr-in [Documentation] Verify view more button under network information section in overview page. 23244cce890SGeorge Keishing [Tags] Verify_View_More_Button_Under_Network_Information_Section 2335f280c06Srramyasr-in 2344033439dSrramyasr-in Wait Until Page Contains Element ${xpath_network_information_view_more_button} timeout=30 2354033439dSrramyasr-in Click Element ${xpath_network_information_view_more_button} 2365f280c06Srramyasr-in Wait Until Page Contains Element ${xpath_network_heading} timeout=30 2375f280c06Srramyasr-in 2385f280c06Srramyasr-in 2395f280c06Srramyasr-inVerify View More Button Under Power Information Section 2405f280c06Srramyasr-in [Documentation] Verify view more button under power information section in overview page. 24144cce890SGeorge Keishing [Tags] Verify_View_More_Button_Under_Power_Information_Section 2425f280c06Srramyasr-in 2435f280c06Srramyasr-in Wait Until Page Contains Element ${xpath_power_information_view_more_button} timeout=30 2445f280c06Srramyasr-in Click Element ${xpath_power_information_view_more_button} 2455f280c06Srramyasr-in Wait Until Page Contains Element ${xpath_power_heading} timeout=30 2465f280c06Srramyasr-in 2475f280c06Srramyasr-in 2485f280c06Srramyasr-inVerify View More Button Under Event Logs Section 2495f280c06Srramyasr-in [Documentation] Verify view more button under event logs section in overview page. 2505f280c06Srramyasr-in [Tags] Verify_View_More_Button_Under_Event_Logs_Section 2515f280c06Srramyasr-in 2525f280c06Srramyasr-in Wait Until Page Contains Element ${xpath_event_logs_view_more_button} timeout=30 2535f280c06Srramyasr-in Click Element ${xpath_event_logs_view_more_button} 2545f280c06Srramyasr-in Wait Until Page Contains Element ${xpath_event_logs_heading} timeout=30 2555f280c06Srramyasr-in 2565f280c06Srramyasr-in 2575f280c06Srramyasr-inVerify View More Button Under Inventory And LEDs Section 2585f280c06Srramyasr-in [Documentation] Verify view more button under inventory and leds section in overview page. 2595f280c06Srramyasr-in [Tags] Verify_View_More_Button_Under_Inventory_And_LEDs_Section 2605f280c06Srramyasr-in 2615f280c06Srramyasr-in Wait Until Page Contains Element ${xpath_inventory_and_leds_view_more_button} timeout=30 2625f280c06Srramyasr-in Click Element ${xpath_inventory_and_leds_view_more_button} 2635f280c06Srramyasr-in Wait Until Page Contains Element ${xpath_inventory_and_leds_heading} timeout=30 2645f280c06Srramyasr-in 2655f280c06Srramyasr-in 26663378272Srramyasr-inVerify Text Under Server Information Section 26763378272Srramyasr-in [Documentation] Verify text under server information section in overview page. 26863378272Srramyasr-in [Tags] Verify_Text_Under_Server_Information_Section 26963378272Srramyasr-in 27063378272Srramyasr-in Page Should Contain Model 27163378272Srramyasr-in Page Should Contain Operating mode 27263378272Srramyasr-in Page Should Contain Serial number 27363378272Srramyasr-in Page Should Contain Service login 27463378272Srramyasr-in Page Should Contain Asset tag 27563378272Srramyasr-in 27663378272Srramyasr-in 27763378272Srramyasr-inVerify Text Under Firmware Information Section 27863378272Srramyasr-in [Documentation] Verify text under firmware information section in overview page. 27963378272Srramyasr-in [Tags] Verify_Text_Under_Firmware_Information_Section 28063378272Srramyasr-in 28163378272Srramyasr-in Page Should Contain Running 28263378272Srramyasr-in Page Should Contain Backup 28363378272Srramyasr-in Page Should Contain Access key expiration 28463378272Srramyasr-in 28563378272Srramyasr-in 28663378272Srramyasr-inVerify Text Under Network Information Section 28763378272Srramyasr-in [Documentation] Verify text under network information section in overview page. 28863378272Srramyasr-in [Tags] Verify_Text_Under_Network_Information_Section 28963378272Srramyasr-in 29063378272Srramyasr-in Page Should Contain Hostname 29163378272Srramyasr-in Page Should Contain IPv4 29263378272Srramyasr-in Page Should Contain DHCPv4 29363378272Srramyasr-in 29463378272Srramyasr-in 29563378272Srramyasr-inVerify Text Under Power Information Section 29663378272Srramyasr-in [Documentation] Verify text under power information section in overview page. 29763378272Srramyasr-in [Tags] Verify_Text_Under_Power_Information_Section 29863378272Srramyasr-in 29963378272Srramyasr-in Page Should Contain Power consumption 30063378272Srramyasr-in Page Should Contain Idle power saver 30163378272Srramyasr-in Page Should Contain Power cap 30263378272Srramyasr-in Page Should Contain Power mode 30363378272Srramyasr-in 30463378272Srramyasr-in 30563378272Srramyasr-inVerify Text Under Event Logs Section 30663378272Srramyasr-in [Documentation] Verify text under event logs section in overview page. 30763378272Srramyasr-in [Tags] Verify_Text_Under_Event_Logs_Section 30863378272Srramyasr-in 30963378272Srramyasr-in Page Should Contain Critical 31063378272Srramyasr-in Page Should Contain Warning 31163378272Srramyasr-in 31263378272Srramyasr-in 31363378272Srramyasr-inVerify Text Under Inventory And LEDs Section 31463378272Srramyasr-in [Documentation] Verify text under inventory and leds section in overview page. 3157af7d862SGeorge Keishing [Tags] Verify_Text_Under_Inventory_And_LEDs_Section 31663378272Srramyasr-in 31763378272Srramyasr-in Page Should Contain System identify LED 31863378272Srramyasr-in 31963378272Srramyasr-in 32063378272Srramyasr-inVerify Text Under Dumps Section 32163378272Srramyasr-in [Documentation] Verify text under Dumps section in overview page. 32263378272Srramyasr-in [Tags] Verify_Text_Under_Dumps_Section 32363378272Srramyasr-in 32463378272Srramyasr-in Page Should Contain Total 32563378272Srramyasr-in 32663378272Srramyasr-in 327b940e19fSRahul Maheshwari*** Keywords *** 328b940e19fSRahul Maheshwari 329b940e19fSRahul MaheshwariTest Setup Execution 330b940e19fSRahul Maheshwari [Documentation] Do test case setup tasks. 331b940e19fSRahul Maheshwari 332b940e19fSRahul Maheshwari Click Element ${xpath_overview_menu} 333b940e19fSRahul Maheshwari Wait Until Page Contains Element ${xpath_overview_page_header} 3347776e32eSrramyasr-in Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 33552eb7c21SGeorge Keishing 33613242571Srramyasr-in 33752eb7c21SGeorge KeishingVerify Identify LED State Via Redfish 33852eb7c21SGeorge Keishing [Documentation] Verify that Redfish identify LED system with given state. 33952eb7c21SGeorge Keishing [Arguments] ${expected_state} 34052eb7c21SGeorge Keishing # Description of argument(s): 34152eb7c21SGeorge Keishing # expected_state Expected value of Identify LED. 34252eb7c21SGeorge Keishing 343c32434a3SYi Hu ${led_state}= Redfish.Get Attribute /redfish/v1/Systems/${SYSTEM_ID} IndicatorLED 344436de60fSrramyasr-in Should Be True '${led_state}' == '${expected_state}' 34552eb7c21SGeorge Keishing 34652eb7c21SGeorge Keishing 34752eb7c21SGeorge KeishingSet IndicatorLED State 348e23afb58SGeorge Keishing [Documentation] Perform redfish PATCH operation. 34952eb7c21SGeorge Keishing [Arguments] ${led_state} ${expect_resp_code}=[200, 204] 35052eb7c21SGeorge Keishing # Description of argument(s): 35152eb7c21SGeorge Keishing # led_state IndicatorLED state to "off", "Lit" etc. 35252eb7c21SGeorge Keishing # expect_resp_code Expected HTTPS response code. Default [200, 204] 35352eb7c21SGeorge Keishing 354436de60fSrramyasr-in 355c32434a3SYi Hu Redfish.Patch /redfish/v1/Systems/${SYSTEM_ID} body={"IndicatorLED": "${led_state}"} 356436de60fSrramyasr-in ... valid_status_codes=${expect_resp_code} 357436de60fSrramyasr-in 358