blob: a060829e649db65b7112c14ee8c513417a7e7874 [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
Chris Austenb29d2e82016-06-07 12:25:35 -05007Resource ../lib/resource.txt
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.
22 #LED Name LED State
23 heartbeat On
24 heartbeat Off
George Keishingf7226162016-07-08 06:25:07 -050025
Rahul Maheshwaric8898e12017-03-30 23:30:01 -050026 [Tags] Test_Heartbeat_LED_And_Verify_Via_REST
27 [Template] Set System LED State
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.
31 #LED Name LED State
32 beep On
33 beep Off
34
35 [Tags] Test_Beep_LED_And_Verify_Via_REST
36 [Template] Set System LED State
37
38Test Identify LED And Verify Via REST
39 [Documentation] Turn On Off identify LED and verify via REST.
40 #LED Name LED State
41 identify On
42 identify Off
43
44 [Tags] Test_Identify_LED_And_Verify_Via_REST
45 [Template] Set System LED State
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.
49 # LED Name LED State
George Keishingf537e632017-06-15 05:02:07 -050050 rear_power On
51 rear_power Off
Sweta Potthuri8faf9d82017-08-23 04:25:56 -050052 front_power On
53 front_power Off
Rahul Maheshwari5158d4b2017-04-26 09:45:07 -050054
55 [Tags] Test_Power_LED_And_Verify_Via_REST
56 [Template] Set System LED State
57
58Test Fault LED And Verify Via REST
59 [Documentation] Turn On/Off fault LED and verify via REST.
60 # LED Name LED State
Sweta Potthuribf19dbe2017-06-14 03:25:01 -050061 rear_fault On
62 rear_fault Off
Sweta Potthuri8faf9d82017-08-23 04:25:56 -050063 front_fault On
64 front_fault Off
Rahul Maheshwari5158d4b2017-04-26 09:45:07 -050065
66 [Tags] Test_Fault_LED_And_Verify_Via_REST
67 [Template] Set System LED State
George Keishingf7226162016-07-08 06:25: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.
Rahul Maheshwari7bfc0c92017-07-07 00:50:47 -050071 #LED Name LED State
72 rear_id On
73 rear_id Off
Sweta Potthuri8faf9d82017-08-23 04:25:56 -050074 front_id On
75 front_id Off
Rahul Maheshwari7bfc0c92017-07-07 00:50:47 -050076
77 [Tags] Test_Rear_Identify_LED_And_Verify_Via_REST
78 [Template] Set System LED State
79
80
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
85 Initiate Host PowerOff
86 ${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
96 Initiate Host Boot
97 ${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