Lines Matching full:time
3 Documentation Module to test IPMI SEL Time functionality.
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 (…
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.
64 # Gets the current SEL time via Get SEL Time Command.
65 ${resp}= Get SEL Time Command
69 Verify Set SEL Time On NTP Mode
70 [Documentation] IPMI Set SEL Time without NTP
75 # Get current time from BMC and add future year (here, 5years).
86 Verify SEL Set Time For Specific Time
87 [Documentation] Verify IPMI Set SEL Time.
90 # Get current time from BMC and add future year (here, 5years).
97 Set SEL Time Entry Via Raw Command ${sel_date_raw}
99 # Get SEL Time command.
100 ${get_sel_time}= Check Current Date Time Via IPMI
102 # Identify Time difference and find the difference is less than 6 seconds.
104 ${time_difference}= Get Time Difference ${get_sel_time} ${sel_date}
106 ... msg=Set SEL Time Not Working
108 # Get BMC time (native) and compare with set sel time given.
111 ${difference}= Get Time Difference ${bmc_time} ${sel_date}
115 Verify Set SEL Time With Future Date And Time
116 [Documentation] Verify IPMI Get SEL Time by adding 15 minutes from current time.
119 # Gets BMC Current Time and Adds 15 minutes and sets the SEL Time.
120 ${sel_time} ${set_sel_time}= Identify SEL Time +06:15:00
122 # Set SEL Time via IPMI command.
123 Set SEL Time Via IPMI ${sel_time}
125 # Get SEL Time Command.
126 ${get_sel_time}= Check Current Date Time Via IPMI
128 # Difference of time between set sel time and get time.
129 ${difference}= Get Time Difference ${get_sel_time} ${set_sel_time}
132 # Difference of time between BMC Date and Get SEL Time.
134 ${difference}= Get Time Difference ${get_sel_time} ${bmc_time}
138 Verify Set SEL Time With Past Date And Time
139 [Documentation] Verify IPMI Get SEL Time for yime delay of 1 day from current dat and time.
142 # Gets BMC current time and subtracts 1 day and sets the SEL Time.
143 ${sel_time} ${set_sel_time}= Identify SEL Time -24:00:00
149 # Set SEL Time via IPMI command.
150 Set SEL Time Via IPMI ${sel_time}
151 # Get SEL Time Command.
152 ${get_sel_time}= Check Current Date Time Via IPMI
153 # Difference of time between set sel time and get time.
154 ${difference}= Get Time Difference ${get_sel_time} ${set_sel_time}
156 # Difference of time between BMC Date and Get SEL Time.
158 ${difference}= Get Time Difference ${get_sel_time} ${bmc_time}
161 FAIL SEL Time cannot set Date less than 1970
165 Verify SEL Set Time For Invalid Data Request
166 [Documentation] Verify IPMI Get SEL Time for invalid data request
177 # Set Invalid SEL Time with one extra request byte.
183 Verify SEL Set Time For Incomplete Data Request
184 [Documentation] Verify IPMI Get SEL Time for invalid data with one byte less request data.
200 # Set incomplete SEL Time with one less request byte.
207 Verify SEL Time In SEL Entry
208 [Documentation] Verify Configured SEL Time reflects in newly added SEL Entry.
213 # change to manual, get current time and add future year (here, 5years).
220 Set SEL Time Entry Via Raw Command ${sel_date_raw}
222 # Get SEL Time Command.
223 ${get_sel_time}= Check Current Date Time Via IPMI
225 # Identify Time difference and find the difference is less than 6 seconds.
227 ${time_difference}= Get Time Difference ${get_sel_time} ${sel_date}
229 ... msg=Set SEL Time Not Working
231 # Get BMC time (native) and compare with set sel time given.
234 ${difference}= Get Time Difference ${bmc_time} ${sel_date}
257 # Identify and find the time difference is less than 60 seconds.
259 # Compare date and time of Set SEL with sel entry.
260 ${d}= Get Time Difference ${sel_entry_date} ${sel_date}
264 Verify SEL Time In SEL Entry For Future Date and Time
265 [Documentation] Verify configured SEL Time (Future Date & Time) in added SEL Entry.
270 # Gets BMC Current Time and Adds 15 minutes and sets the SEL Time.
271 ${sel_time} ${set_sel_time}= Identify SEL Time +06:15:00
273 # Set SEL Time via IPMI command.
274 Set SEL Time Via IPMI ${sel_time}
276 # Get SEL Time Command.
277 ${get_sel_time}= Check Current Date Time Via IPMI
279 # Difference of time between set sel time and get time.
280 ${difference}= Get Time Difference ${get_sel_time} ${set_sel_time}
283 # Difference of time between BMC Date and Get SEL Time.
285 ${difference}= Get Time Difference ${get_sel_time} ${bmc_time}
308 # Identify and find the time difference is less than 60 seconds.
310 # Compare date and time of Set SEL with sel entry.
311 ${d}= Get Time Difference ${sel_entry_date} ${set_sel_time}
315 Verify SEL Time In SEL Entry For Past Date And Time
316 [Documentation] Verify configured SEL Time (Past Date & Time) in added SEL Entry.
321 # Gets BMC Current Time and subtracts 1 day and sets the SEL Time.
322 ${sel_time} ${set_sel_time}= Identify SEL Time -24:00:00
328 # Set SEL Time via IPMI command.
329 Set SEL Time Via IPMI ${sel_time}
330 # Get SEL Time Command.
331 ${get_sel_time}= Check Current Date Time Via IPMI
332 # Difference of time between set sel time and get time.
333 ${difference}= Get Time Difference ${get_sel_time} ${set_sel_time}
335 # Difference of time between BMC Date and Get SEL Time.
337 ${difference}= Get Time Difference ${get_sel_time} ${bmc_time}
359 # Identify and find the time difference is less than 60 seconds.
361 # Compare date and time of Set SEL with sel entry.
362 ${d}= Get Time Difference ${sel_entry_date} ${set_sel_time}
365 FAIL SEL Time cannot set Date less than 1970.
369 Verify Multiple Set SEL Time With Multiple Add SEL Entry
370 [Documentation] Verify SEL time in multiple addition Of SEL entry.
375 ${sel_time} ${set_sel_time}= Identify SEL Time ${time_difference_list[${i}]}
377 # Set SEL Time via IPMI command.
378 Set SEL Time Via IPMI ${sel_time}
403 # Identify and find the time difference is less than 60 seconds.
405 # Compare date and time of Set SEL with sel entry.
406 ${d}= Get Time Difference ${sel_entry_date} ${set_sel_time}
414 Time Sync Mode Change Through Redfish
415 [Documentation] Export IP, token and change the time sync to manual.
423 # Changing Time Sync Mode to Manual.
424 Change Time Sync Mode Via Redfish ${value}
427 Change Time Sync Mode Via Redfish
428 [Documentation] To change the time sync mode via Redfish.
445 Get SEL Time Command
446 [Documentation] Get SEL Time command.
449 # example: If current date and time is "Wed May 4 18:55:00 UTC 2022",
457 Set SEL Time Entry Via Raw Command
458 [Documentation] Set SEL Time command.
462 # ${sel_date_raw} Time to set in hexadecimal bytes.
498 Check Current Date Time Via IPMI
499 [Documentation] Verify Current Date and Time Via IPMI user command.
501 ${resp}= Run IPMI Standard Command sel time get
506 [Documentation] Gets initial time and adds year to the current date and returns future date.
516 ${date}= Add Time To Date
540 # Reverse the bytes and join the list to form request Time stamp data.
547 Get Time Difference
563 Identify SEL Time
564 [Documentation] Modify SEL Time From BMC For Set Sel Time Command.
565 [Arguments] ${time}
568 # time Can be any number of hours or minutes in format %H:%M:%S.
573 ${modifying_date_status}= Run Keyword And Return Status Should Contain ${time} +
576 ... ${modifying_date_status} == True ${time.split("+")[-1]}
577 ... ${modifying_date_status} == False ${time.split("-")[-1]}
580 ... Add Time To Date
583 ... Subtract Time From Date
586 #Set SEL Time.
592 Set SEL Time Via IPMI
593 [Documentation] Set SEL Time for given date using IPMI.
599 ${resp}= Run IPMI Standard Command sel time set "${date_time}"
608 Time Sync Mode Change Through Redfish ${FALSE}
618 Time Sync Mode Change Through Redfish ${TRUE}