Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
Rahul Maheshwari | c8898e1 | 2017-03-30 23:30:01 -0500 | [diff] [blame] | 3 | Documentation Test the functions of system LEDs. |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 4 | |
| 5 | Resource ../lib/rest_client.robot |
Rahul Maheshwari | c8898e1 | 2017-03-30 23:30:01 -0500 | [diff] [blame] | 6 | Resource ../lib/state_manager.robot |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 7 | Resource ../lib/resource.txt |
George Keishing | d55a4be | 2016-08-26 03:28:17 -0500 | [diff] [blame] | 8 | Resource ../lib/openbmc_ffdc.robot |
Steven Sombar | 5f3af44 | 2018-02-14 08:30:15 -0600 | [diff] [blame] | 9 | Resource ../lib/utils.robot |
Rahul Maheshwari | c8898e1 | 2017-03-30 23:30:01 -0500 | [diff] [blame] | 10 | |
Gunnar Mills | eac1af2 | 2016-11-14 15:30:09 -0600 | [diff] [blame] | 11 | Test Teardown FFDC On Test Case Fail |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 12 | |
Rahul Maheshwari | c8898e1 | 2017-03-30 23:30:01 -0500 | [diff] [blame] | 13 | Force Tags System_LED |
| 14 | |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 15 | *** Variables *** |
| 16 | |
George Keishing | ab1bd92 | 2016-12-05 05:29:59 -0600 | [diff] [blame] | 17 | |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 18 | *** Test Cases *** |
| 19 | |
Rahul Maheshwari | c8898e1 | 2017-03-30 23:30:01 -0500 | [diff] [blame] | 20 | Test Heartbeat LED And Verify Via REST |
| 21 | [Documentation] Turn On Off heartbeat LED and verify via REST. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 22 | [Tags] Test_Heartbeat_LED_And_Verify_Via_REST |
| 23 | [Template] Set System LED State |
| 24 | |
Rahul Maheshwari | c8898e1 | 2017-03-30 23:30:01 -0500 | [diff] [blame] | 25 | #LED Name LED State |
| 26 | heartbeat On |
| 27 | heartbeat Off |
George Keishing | f722616 | 2016-07-08 06:25:07 -0500 | [diff] [blame] | 28 | |
Rahul Maheshwari | c8898e1 | 2017-03-30 23:30:01 -0500 | [diff] [blame] | 29 | Test Beep LED And Verify Via REST |
| 30 | [Documentation] Turn On Off beep LED and verify via REST. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 31 | [Tags] Test_Beep_LED_And_Verify_Via_REST |
| 32 | [Template] Set System LED State |
| 33 | |
Rahul Maheshwari | c8898e1 | 2017-03-30 23:30:01 -0500 | [diff] [blame] | 34 | #LED Name LED State |
| 35 | beep On |
| 36 | beep Off |
| 37 | |
Rahul Maheshwari | c8898e1 | 2017-03-30 23:30:01 -0500 | [diff] [blame] | 38 | Test Identify LED And Verify Via REST |
| 39 | [Documentation] Turn On Off identify LED and verify via REST. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 40 | [Tags] Test_Identify_LED_And_Verify_Via_REST |
| 41 | [Template] Set System LED State |
| 42 | |
Rahul Maheshwari | c8898e1 | 2017-03-30 23:30:01 -0500 | [diff] [blame] | 43 | #LED Name LED State |
| 44 | identify On |
| 45 | identify Off |
| 46 | |
Rahul Maheshwari | 5158d4b | 2017-04-26 09:45:07 -0500 | [diff] [blame] | 47 | Test Power LED And Verify Via REST |
| 48 | [Documentation] Turn On/Off power LED and verify via REST. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 49 | [Tags] Test_Power_LED_And_Verify_Via_REST |
| 50 | [Template] Set System LED State |
| 51 | |
Rahul Maheshwari | 5158d4b | 2017-04-26 09:45:07 -0500 | [diff] [blame] | 52 | # LED Name LED State |
George Keishing | f537e63 | 2017-06-15 05:02:07 -0500 | [diff] [blame] | 53 | rear_power On |
| 54 | rear_power Off |
Sweta Potthuri | 8faf9d8 | 2017-08-23 04:25:56 -0500 | [diff] [blame] | 55 | front_power On |
| 56 | front_power Off |
Rahul Maheshwari | 5158d4b | 2017-04-26 09:45:07 -0500 | [diff] [blame] | 57 | |
Rahul Maheshwari | 5158d4b | 2017-04-26 09:45:07 -0500 | [diff] [blame] | 58 | Test Fault LED And Verify Via REST |
| 59 | [Documentation] Turn On/Off fault LED and verify via REST. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 60 | [Tags] Test_Fault_LED_And_Verify_Via_REST |
| 61 | [Template] Set System LED State |
| 62 | |
Rahul Maheshwari | 5158d4b | 2017-04-26 09:45:07 -0500 | [diff] [blame] | 63 | # LED Name LED State |
Sweta Potthuri | bf19dbe | 2017-06-14 03:25:01 -0500 | [diff] [blame] | 64 | rear_fault On |
| 65 | rear_fault Off |
Sweta Potthuri | 8faf9d8 | 2017-08-23 04:25:56 -0500 | [diff] [blame] | 66 | front_fault On |
| 67 | front_fault Off |
Rahul Maheshwari | 5158d4b | 2017-04-26 09:45:07 -0500 | [diff] [blame] | 68 | |
Rahul Maheshwari | 7bfc0c9 | 2017-07-07 00:50:47 -0500 | [diff] [blame] | 69 | Test Rear Identify LED And Verify Via REST |
Sweta Potthuri | 8faf9d8 | 2017-08-23 04:25:56 -0500 | [diff] [blame] | 70 | [Documentation] Turn On/Off identify LED and verify via REST. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 71 | [Tags] Test_Rear_Identify_LED_And_Verify_Via_REST |
| 72 | [Template] Set System LED State |
| 73 | |
Rahul Maheshwari | 7bfc0c9 | 2017-07-07 00:50:47 -0500 | [diff] [blame] | 74 | #LED Name LED State |
| 75 | rear_id On |
| 76 | rear_id Off |
Sweta Potthuri | 8faf9d8 | 2017-08-23 04:25:56 -0500 | [diff] [blame] | 77 | front_id On |
| 78 | front_id Off |
Rahul Maheshwari | 7bfc0c9 | 2017-07-07 00:50:47 -0500 | [diff] [blame] | 79 | |
Rahul Maheshwari | 7bfc0c9 | 2017-07-07 00:50:47 -0500 | [diff] [blame] | 80 | |
Rahul Maheshwari | e33ac38 | 2017-07-24 02:15:39 -0500 | [diff] [blame] | 81 | Verify Rear Power LED With Host Power Off |
Sweta Potthuri | 8faf9d8 | 2017-08-23 04:25:56 -0500 | [diff] [blame] | 82 | [Documentation] Verify power LED state with host power off. |
Rahul Maheshwari | e33ac38 | 2017-07-24 02:15:39 -0500 | [diff] [blame] | 83 | [Tags] Verify_Rear_Power_LED_With_Host_Power_Off |
| 84 | |
| 85 | Initiate Host PowerOff |
| 86 | ${resp}= Get System LED State rear_power |
Sweta Potthuri | def9b81 | 2017-08-31 05:45:22 -0500 | [diff] [blame] | 87 | Should Be Equal ${resp} Blink |
Sweta Potthuri | 8faf9d8 | 2017-08-23 04:25:56 -0500 | [diff] [blame] | 88 | ${resp}= Get System LED State front_power |
Sweta Potthuri | def9b81 | 2017-08-31 05:45:22 -0500 | [diff] [blame] | 89 | Should Be Equal ${resp} Blink |
Rahul Maheshwari | e33ac38 | 2017-07-24 02:15:39 -0500 | [diff] [blame] | 90 | |
| 91 | |
| 92 | Verify Rear Power LED With Host Power On |
Sweta Potthuri | 8faf9d8 | 2017-08-23 04:25:56 -0500 | [diff] [blame] | 93 | [Documentation] Verify power LED state with host power on. |
Rahul Maheshwari | e33ac38 | 2017-07-24 02:15:39 -0500 | [diff] [blame] | 94 | [Tags] Verify_Rear_Power_LED_With_Host_Power_On |
| 95 | |
| 96 | Initiate Host Boot |
| 97 | ${resp}= Get System LED State rear_power |
| 98 | Should Be Equal ${resp} On |
Sweta Potthuri | 8faf9d8 | 2017-08-23 04:25:56 -0500 | [diff] [blame] | 99 | ${resp}= Get System LED State front_power |
| 100 | Should Be Equal ${resp} On |