blob: cc1f1258cccb8c1c178939b01312482033429af9 [file] [log] [blame]
Chris Austenb29d2e82016-06-07 12:25:35 -05001*** Settings ***
2
Rahul Maheshwaric8898e12017-03-30 23:30:01 -05003Documentation Test the functions of system LEDs.
Chris Austenb29d2e82016-06-07 12:25:35 -05004
5Resource ../lib/rest_client.robot
Rahul Maheshwaric8898e12017-03-30 23:30:01 -05006Resource ../lib/state_manager.robot
Sandhya Somashekar839a0c22019-01-31 05:05:43 -06007Resource ../lib/resource.robot
George Keishingd55a4be2016-08-26 03:28:17 -05008Resource ../lib/openbmc_ffdc.robot
Steven Sombar5f3af442018-02-14 08:30:15 -06009Resource ../lib/utils.robot
Rahul Maheshwaric8898e12017-03-30 23:30:01 -050010
Gunnar Millseac1af22016-11-14 15:30:09 -060011Test Teardown FFDC On Test Case Fail
Chris Austenb29d2e82016-06-07 12:25:35 -050012
Rahul Maheshwaric8898e12017-03-30 23:30:01 -050013Force Tags System_LED
14
Chris Austenb29d2e82016-06-07 12:25:35 -050015*** Variables ***
16
George Keishingab1bd922016-12-05 05:29:59 -060017
Chris Austenb29d2e82016-06-07 12:25:35 -050018*** Test Cases ***
19
Rahul Maheshwaric8898e12017-03-30 23:30:01 -050020Test Heartbeat LED And Verify Via REST
21 [Documentation] Turn On Off heartbeat LED and verify via REST.
George Keishing5abfe602018-07-05 11:54:37 -050022 [Tags] Test_Heartbeat_LED_And_Verify_Via_REST
23 [Template] Set System LED State
24
Rahul Maheshwaric8898e12017-03-30 23:30:01 -050025 #LED Name LED State
26 heartbeat On
27 heartbeat Off
George Keishingf7226162016-07-08 06:25:07 -050028
Rahul Maheshwaric8898e12017-03-30 23:30:01 -050029Test Beep LED And Verify Via REST
30 [Documentation] Turn On Off beep LED and verify via REST.
George Keishing5abfe602018-07-05 11:54:37 -050031 [Tags] Test_Beep_LED_And_Verify_Via_REST
32 [Template] Set System LED State
33
Rahul Maheshwaric8898e12017-03-30 23:30:01 -050034 #LED Name LED State
35 beep On
36 beep Off
37
Rahul Maheshwaric8898e12017-03-30 23:30:01 -050038Test Identify LED And Verify Via REST
39 [Documentation] Turn On Off identify LED and verify via REST.
George Keishing5abfe602018-07-05 11:54:37 -050040 [Tags] Test_Identify_LED_And_Verify_Via_REST
41 [Template] Set System LED State
42
Rahul Maheshwaric8898e12017-03-30 23:30:01 -050043 #LED Name LED State
44 identify On
45 identify Off
46
Rahul Maheshwari5158d4b2017-04-26 09:45:07 -050047Test Power LED And Verify Via REST
48 [Documentation] Turn On/Off power LED and verify via REST.
George Keishing5abfe602018-07-05 11:54:37 -050049 [Tags] Test_Power_LED_And_Verify_Via_REST
50 [Template] Set System LED State
51
Rahul Maheshwari5158d4b2017-04-26 09:45:07 -050052 # LED Name LED State
George Keishingf537e632017-06-15 05:02:07 -050053 rear_power On
54 rear_power Off
Sweta Potthuri8faf9d82017-08-23 04:25:56 -050055 front_power On
56 front_power Off
Rahul Maheshwari5158d4b2017-04-26 09:45:07 -050057
Rahul Maheshwari5158d4b2017-04-26 09:45:07 -050058Test Fault LED And Verify Via REST
59 [Documentation] Turn On/Off fault LED and verify via REST.
George Keishing5abfe602018-07-05 11:54:37 -050060 [Tags] Test_Fault_LED_And_Verify_Via_REST
61 [Template] Set System LED State
62
Rahul Maheshwari5158d4b2017-04-26 09:45:07 -050063 # LED Name LED State
Sweta Potthuribf19dbe2017-06-14 03:25:01 -050064 rear_fault On
65 rear_fault Off
Sweta Potthuri8faf9d82017-08-23 04:25:56 -050066 front_fault On
67 front_fault Off
Rahul Maheshwari5158d4b2017-04-26 09:45:07 -050068
Rahul Maheshwari7bfc0c92017-07-07 00:50:47 -050069Test Rear Identify LED And Verify Via REST
Sweta Potthuri8faf9d82017-08-23 04:25:56 -050070 [Documentation] Turn On/Off identify LED and verify via REST.
George Keishing5abfe602018-07-05 11:54:37 -050071 [Tags] Test_Rear_Identify_LED_And_Verify_Via_REST
72 [Template] Set System LED State
73
Rahul Maheshwari7bfc0c92017-07-07 00:50:47 -050074 #LED Name LED State
75 rear_id On
76 rear_id Off
Sweta Potthuri8faf9d82017-08-23 04:25:56 -050077 front_id On
78 front_id Off
Rahul Maheshwari7bfc0c92017-07-07 00:50:47 -050079
Rahul Maheshwari7bfc0c92017-07-07 00:50:47 -050080
Rahul Maheshwarie33ac382017-07-24 02:15:39 -050081Verify Rear Power LED With Host Power Off
Sweta Potthuri8faf9d82017-08-23 04:25:56 -050082 [Documentation] Verify power LED state with host power off.
Rahul Maheshwarie33ac382017-07-24 02:15:39 -050083 [Tags] Verify_Rear_Power_LED_With_Host_Power_Off
84
George Keishing168d2fd2019-10-24 13:19:35 -050085 REST Power Off
Rahul Maheshwarie33ac382017-07-24 02:15:39 -050086 ${resp}= Get System LED State rear_power
Sweta Potthuridef9b812017-08-31 05:45:22 -050087 Should Be Equal ${resp} Blink
Sweta Potthuri8faf9d82017-08-23 04:25:56 -050088 ${resp}= Get System LED State front_power
Sweta Potthuridef9b812017-08-31 05:45:22 -050089 Should Be Equal ${resp} Blink
Rahul Maheshwarie33ac382017-07-24 02:15:39 -050090
91
92Verify Rear Power LED With Host Power On
Sweta Potthuri8faf9d82017-08-23 04:25:56 -050093 [Documentation] Verify power LED state with host power on.
Rahul Maheshwarie33ac382017-07-24 02:15:39 -050094 [Tags] Verify_Rear_Power_LED_With_Host_Power_On
95
George Keishing168d2fd2019-10-24 13:19:35 -050096 REST Power On
Rahul Maheshwarie33ac382017-07-24 02:15:39 -050097 ${resp}= Get System LED State rear_power
98 Should Be Equal ${resp} On
Sweta Potthuri8faf9d82017-08-23 04:25:56 -050099 ${resp}= Get System LED State front_power
100 Should Be Equal ${resp} On