Lines Matching +full:run +full:- +full:time
3 Documentation Module to test IPMI SEL Time functionality.
4 ... Pre-requisite Condition : Client Machine and BMC should be in
10 ... Test the Set/Get SEL Time functionality and compare the result against
13 ... Set the Time Sync Mode from NTP to Manual to Set SEL Time.
14 ... Time Sync Mode change performed via REDFISH URI.
15 ... Performs the change in Time Sync Mode with Test Setup and Teardown Execution
18 ... NETWORK_RESTART_TIME added for Set SEL Time and Add SEL Entry as the corresponding
21 ... Current SEL time identified via BMC Native command (date) and perform SEL Time ope…
23 ... Script Verifies SEL Time for various scenarios such as,
24 ... Get current time from BMC and add future year and compare against BMC native comma…
25 ... Gets BMC Current Time and Adds 15 minutes and compare against BMC native command (…
26 ... Gets BMC Current Time and subtracts 1 day and compare against BMC native command (…
45 @{time_difference_list} +8760:153:25 -87600:453:120 +175200:40:15 -43800:10:05 +20:35:12 -876…
50 ${event_type} Lower Non-critical going low
52 # number_of_times_sel_entry_added this variable is used in Verify Multiple Set SEL Time With Multip…
53 # test case. Need to give how many sel should be added with multiple date and time.
58 Verify Default Get SEL Time
59 [Documentation] Verify IPMI Get SEL Time.
62 # Gets the current SEL time via Get SEL Time Command.
63 ${resp}= Get SEL Time Command
67 Verify Set SEL Time On NTP Mode
68 [Documentation] IPMI Set SEL Time without NTP
71 # Get current time from BMC and add future year (here, 5years).
77 … ${Set_sel_time}= Run Keyword and Expect Error *${IPMI_RAW_CMD['SEL_entry']['Set_SEL_Time'][2]}*
78 ... Run IPMI Command ${IPMI_RAW_CMD['SEL_entry']['Set_SEL_Time'][0]} ${sel_date_raw}
82 Verify SEL Set Time For Specific Time
83 [Documentation] Verify IPMI Set SEL Time.
86 # Get current time from BMC and add future year (here, 5years).
93 Set SEL Time Entry Via Raw Command ${sel_date_raw}
95 # Get SEL Time command.
96 ${get_sel_time}= Check Current Date Time Via IPMI
98 # Identify Time difference and find the difference is less than 6 seconds.
100 ${time_difference}= Get Time Difference ${get_sel_time} ${sel_date}
102 ... msg=Set SEL Time Not Working
104 # Get BMC time (native) and compare with set sel time given.
107 ${difference}= Get Time Difference ${bmc_time} ${sel_date}
111 Verify Set SEL Time With Future Date And Time
112 [Documentation] Verify IPMI Get SEL Time by adding 15 minutes from current time.
115 # Gets BMC Current Time and Adds 15 minutes and sets the SEL Time.
116 ${sel_time} ${set_sel_time}= Identify SEL Time +06:15:00
118 # Set SEL Time via IPMI command.
119 Set SEL Time Via IPMI ${sel_time}
121 # Get SEL Time Command.
122 ${get_sel_time}= Check Current Date Time Via IPMI
124 # Difference of time between set sel time and get time.
125 ${difference}= Get Time Difference ${get_sel_time} ${set_sel_time}
128 # Difference of time between BMC Date and Get SEL Time.
130 ${difference}= Get Time Difference ${bmc_time} ${get_sel_time}
134 Verify Set SEL Time With Past Date And Time
135 [Documentation] Verify IPMI Get SEL Time for yime delay of 1 day from current dat and time.
138 # Gets BMC current time and subtracts 1 day and sets the SEL Time.
139 ${sel_time} ${set_sel_time}= Identify SEL Time -24:00:00
141 ${status}= Run Keyword And Return Status Should Not Contain ${sel_time} 1969
145 # Set SEL Time via IPMI command.
146 Set SEL Time Via IPMI ${sel_time}
147 # Get SEL Time Command.
148 ${get_sel_time}= Check Current Date Time Via IPMI
149 # Difference of time between set sel time and get time.
150 ${difference}= Get Time Difference ${get_sel_time} ${set_sel_time}
152 # Difference of time between BMC Date and Get SEL Time.
154 ${difference}= Get Time Difference ${bmc_time} ${get_sel_time}
157 FAIL SEL Time cannot set Date less than 1970
161 Verify SEL Set Time For Invalid Data Request
162 [Documentation] Verify IPMI Get SEL Time for invalid data request
171 # Set Invalid SEL Time with one extra request byte.
172 …${Set_seltime_invalid}= Run Keyword and Expect Error *${IPMI_RAW_CMD['SEL_entry']['Set_SEL_Time'…
173 ... Run IPMI Command ${IPMI_RAW_CMD['SEL_entry']['Set_SEL_Time'][0]} ${sel_date_raw} 0x00
177 Verify SEL Set Time For Incomplete Data Request
178 [Documentation] Verify IPMI Get SEL Time for invalid data with one byte less request data.
189 Remove From List ${sel_date_raw} -1
192 # Set incomplete SEL Time with one less request byte.
194 ... Run Keyword and Expect Error *${IPMI_RAW_CMD['SEL_entry']['Set_SEL_Time'][4]}*
195 ... Run IPMI Command ${IPMI_RAW_CMD['SEL_entry']['Set_SEL_Time'][0]} ${sel_date_raw}
199 Verify SEL Time In SEL Entry
200 [Documentation] Verify Configured SEL Time reflects in newly added SEL Entry.
205 # change to manual, get current time and add future year (here, 5years).
212 Set SEL Time Entry Via Raw Command ${sel_date_raw}
214 # Get SEL Time Command.
215 ${get_sel_time}= Check Current Date Time Via IPMI
217 # Identify Time difference and find the difference is less than 6 seconds.
219 ${time_difference}= Get Time Difference ${get_sel_time} ${sel_date}
221 ... msg=Set SEL Time Not Working
223 # Get BMC time (native) and compare with set sel time given.
226 ${difference}= Get Time Difference ${bmc_time} ${sel_date}
249 # Identify and find the time difference is less than 60 seconds.
251 # Compare date and time of Set SEL with sel entry.
252 ${d}= Get Time Difference ${sel_entry_date} ${sel_date}
256 Verify SEL Time In SEL Entry For Future Date and Time
257 [Documentation] Verify configured SEL Time (Future Date & Time) in added SEL Entry.
262 # Gets BMC Current Time and Adds 15 minutes and sets the SEL Time.
263 ${sel_time} ${set_sel_time}= Identify SEL Time +06:15:00
265 # Set SEL Time via IPMI command.
266 Set SEL Time Via IPMI ${sel_time}
268 # Get SEL Time Command.
269 ${get_sel_time}= Check Current Date Time Via IPMI
271 # Difference of time between set sel time and get time.
272 ${difference}= Get Time Difference ${get_sel_time} ${set_sel_time}
275 # Difference of time between BMC Date and Get SEL Time.
277 ${difference}= Get Time Difference ${bmc_time} ${get_sel_time}
300 # Identify and find the time difference is less than 60 seconds.
302 # Compare date and time of Set SEL with sel entry.
303 ${d}= Get Time Difference ${sel_entry_date} ${set_sel_time}
307 Verify SEL Time In SEL Entry For Past Date And Time
308 [Documentation] Verify configured SEL Time (Past Date & Time) in added SEL Entry.
313 # Gets BMC Current Time and subtracts 1 day and sets the SEL Time.
314 ${sel_time} ${set_sel_time}= Identify SEL Time -24:00:00
316 ${status}= Run Keyword And Return Status Should Not Contain ${sel_time} 1969
320 # Set SEL Time via IPMI command.
321 Set SEL Time Via IPMI ${sel_time}
322 # Get SEL Time Command.
323 ${get_sel_time}= Check Current Date Time Via IPMI
324 # Difference of time between set sel time and get time.
325 ${difference}= Get Time Difference ${get_sel_time} ${set_sel_time}
327 # Difference of time between BMC Date and Get SEL Time.
329 ${difference}= Get Time Difference ${bmc_time} ${get_sel_time}
351 # Identify and find the time difference is less than 60 seconds.
353 # Compare date and time of Set SEL with sel entry.
354 ${d}= Get Time Difference ${sel_entry_date} ${set_sel_time}
357 FAIL SEL Time cannot set Date less than 1970.
361 Verify Multiple Set SEL Time With Multiple Add SEL Entry
362 [Documentation] Verify SEL time in multiple addition Of SEL entry.
367 ${sel_time} ${set_sel_time}= Identify SEL Time ${time_difference_list[${i}]}
369 # Set SEL Time via IPMI command.
370 Set SEL Time Via IPMI ${sel_time}
395 # Identify and find the time difference is less than 60 seconds.
397 # Compare date and time of Set SEL with sel entry.
398 ${d}= Get Time Difference ${sel_entry_date} ${set_sel_time}
406 Time Sync Mode Change Through Redfish
407 [Documentation] Export IP, token and change the time sync to manual.
415 # Changing Time Sync Mode to Manual.
416 Change Time Sync Mode Via Redfish ${value}
419 Change Time Sync Mode Via Redfish
420 [Documentation] To change the time sync mode via Redfish.
437 Get SEL Time Command
438 [Documentation] Get SEL Time command.
441 # example: If current date and time is "Wed May 4 18:55:00 UTC 2022",
443 ${get_sel_time}= Run IPMI Command
449 Set SEL Time Entry Via Raw Command
450 [Documentation] Set SEL Time command.
454 # ${sel_date_raw} Time to set in hexadecimal bytes.
461 Run IPMI Command ${IPMI_RAW_CMD['SEL_entry']['Set_SEL_Time'][0]} ${sel_date_raw}
469 ${out}= Run IPMI Standard Command sel clear
481 ${resp}= Run IPMI Standard Command sel elist
490 Check Current Date Time Via IPMI
491 [Documentation] Verify Current Date and Time Via IPMI user command.
493 ${resp}= Run IPMI Standard Command sel time get
498 [Documentation] Gets initial time and adds year to the current date and returns future date.
508 ${date}= Add Time To Date
532 # Reverse the bytes and join the list to form request Time stamp data.
539 Get Time Difference
550 ${diff}= Evaluate int(${epoch_date1}) - int(${epoch_date2})
555 Identify SEL Time
556 [Documentation] Modify SEL Time From BMC For Set Sel Time Command.
557 [Arguments] ${time}
560 # time Can be any number of hours or minutes in format %H:%M:%S.
565 ${modifying_date_status}= Run Keyword And Return Status Should Contain ${time} +
568 ... ${modifying_date_status} == True ${time.split("+")[-1]}
569 ... ${modifying_date_status} == False ${time.split("-")[-1]}
571 ${datetime} = Run Keyword IF ${modifying_date_status} == True
572 ... Add Time To Date
575 ... Subtract Time From Date
578 #Set SEL Time.
584 Set SEL Time Via IPMI
585 [Documentation] Set SEL Time for given date using IPMI.
591 ${resp}= Run IPMI Standard Command sel time set "${date_time}"
600 Time Sync Mode Change Through Redfish ${FALSE}
611 Time Sync Mode Change Through Redfish ${TRUE}