blob: 8cb07d853f4c3b157f67e97f96ad7afb07332938 [file] [log] [blame]
Chris Austenb29d2e82016-06-07 12:25:35 -05001*** Settings ***
2Documentation This suite is for testing System time in Open BMC.
3
Rahul Maheshwari93f68092016-10-24 02:42:12 -05004Resource ../lib/rest_client.robot
George Keishing4d6c1da2016-07-15 05:51:22 -05005Resource ../lib/ipmi_client.robot
George Keishingd55a4be2016-08-26 03:28:17 -05006Resource ../lib/openbmc_ffdc.robot
Rahul Maheshwari2c725042017-01-29 22:55:28 -06007Resource ../lib/state_manager.robot
George Keishingab1bd922016-12-05 05:29:59 -06008Resource ../lib/resource.txt
Chris Austenb29d2e82016-06-07 12:25:35 -05009
George Keishing4d6c1da2016-07-15 05:51:22 -050010Library OperatingSystem
11Library DateTime
Chris Austenb29d2e82016-06-07 12:25:35 -050012
Rahul Maheshwari06174f22017-03-06 03:17:09 -060013Test Setup Open Connection And Log In
14Test Teardown Post Test Case Execution
Chris Austenb29d2e82016-06-07 12:25:35 -050015
Sweta Potthurib1631202017-08-28 04:11:34 -050016Force Tags Clock_Time
17
Chris Austenb29d2e82016-06-07 12:25:35 -050018*** Variables ***
Rahul Maheshwarif8785902016-12-12 01:23:13 -060019${SYSTEM_TIME_INVALID} 01/01/1969 00:00:00
20${SYSTEM_TIME_VALID} 02/29/2016 09:10:00
21${SYSTEM_TIME_VALID_EPOCH} 1456737000 #Equivalent epoch time for 02/29/2016 09:10:00
22${ALLOWED_TIME_DIFF} 3
23${SETTING_HOST} ${SETTINGS_URI}host0
George Keishingab1bd922016-12-05 05:29:59 -060024
Chris Austenb29d2e82016-06-07 12:25:35 -050025*** Test Cases ***
26
27Get System Time
Rahul Maheshwarif8785902016-12-12 01:23:13 -060028 [Documentation] Get system time using IPMI and verify that it matches
29 ... with BMC date time.
George Keishing845fb822016-11-01 13:23:19 -050030 [Tags] Get_System_Time
Chris Austenb29d2e82016-06-07 12:25:35 -050031
Rahul Maheshwarif8785902016-12-12 01:23:13 -060032 ${resp}= Run IPMI Standard Command sel time get
33 ${ipmidate}= Convert Date ${resp} date_format=%m/%d/%Y %H:%M:%S
34 ... exclude_millis=yes
35 ${bmcdate}= Get BMC Time Using IPMI
36 ${diff}= Subtract Date From Date ${bmcdate} ${ipmidate}
Sridevi Rameshae444822017-02-13 05:51:52 -060037 ${diff}= Convert To Number ${diff}
Rahul Maheshwarif8785902016-12-12 01:23:13 -060038 Should Be True ${diff} < ${ALLOWED_TIME_DIFF}
39 ... Open BMC time does not match with IPMI sel time
Chris Austenb29d2e82016-06-07 12:25:35 -050040
41Set Valid System Time
Rahul Maheshwarif8785902016-12-12 01:23:13 -060042 [Documentation] Set system time using IPMI and verify that it is
43 ... correctly set in BMC.
George Keishing845fb822016-11-01 13:23:19 -050044 [Tags] Set_Valid_System_Time
Chris Austenb29d2e82016-06-07 12:25:35 -050045
Rahul Maheshwari7588f872017-04-13 05:51:24 -050046 Set Time Owner HOST
47 Set Time Mode MANUAL
48
Rahul Maheshwarif8785902016-12-12 01:23:13 -060049 ${resp}= Run IPMI Standard Command sel time set "${SYSTEM_TIME_VALID}"
50 ${setdate}= Convert Date ${SYSTEM_TIME_VALID}
51 ... date_format=%m/%d/%Y %H:%M:%S exclude_millis=yes
52 ${bmcdate}= Get BMC Time Using IPMI
53 ${diff}= Subtract Date From Date ${bmcdate} ${setdate}
Sridevi Rameshae444822017-02-13 05:51:52 -060054 ${diff}= Convert To Number ${diff}
Rahul Maheshwarif8785902016-12-12 01:23:13 -060055 Should Be True ${diff} < ${ALLOWED_TIME_DIFF}
56 ... Open BMC time does not match with set time
Chris Austenb29d2e82016-06-07 12:25:35 -050057
58Set Invalid System Time
Rahul Maheshwarif8785902016-12-12 01:23:13 -060059 [Documentation] Set system time with invalid time using IPMI and verify
60 ... that it should throw error.
George Keishing845fb822016-11-01 13:23:19 -050061 [Tags] Set_Invalid_System_Time
Chris Austenb29d2e82016-06-07 12:25:35 -050062
Rahul Maheshwari7588f872017-04-13 05:51:24 -050063 Set Time Owner HOST
64 Set Time Mode MANUAL
65
Rahul Maheshwarif8785902016-12-12 01:23:13 -060066 ${msg}= Run Keyword And Expect Error * Run IPMI Standard Command
67 ... sel time set "${SYSTEM_TIME_INVALID}"
68 Should Start With ${msg} Specified time could not be parsed
Chris Austenb29d2e82016-06-07 12:25:35 -050069
70Set System Time with no time
Rahul Maheshwarif8785902016-12-12 01:23:13 -060071 [Documentation] Set system time with no time using IPMI and verify
72 ... that it should throw error.
George Keishing845fb822016-11-01 13:23:19 -050073 [Tags] Set_System_Time_with_no_time
Chris Austenb29d2e82016-06-07 12:25:35 -050074
Rahul Maheshwari7588f872017-04-13 05:51:24 -050075 Set Time Owner HOST
76 Set Time Mode MANUAL
77
Rahul Maheshwarif8785902016-12-12 01:23:13 -060078 ${msg}= Run Keyword And Expect Error * Run IPMI Standard Command
79 ... sel time set ""
80 Should Start With ${msg} Specified time could not be parsed
Chris Austenb29d2e82016-06-07 12:25:35 -050081
Rahul Maheshwari93f68092016-10-24 02:42:12 -050082
Rahul Maheshwarif8785902016-12-12 01:23:13 -060083Set BMC Time With BMC And Manual
84 #Operation Owner Mode Status BMC Time Host Time
85 Set BMC Time BMC MANUAL ok Set Change
Rahul Maheshwari93f68092016-10-24 02:42:12 -050086
Rahul Maheshwarif8785902016-12-12 01:23:13 -060087 [Documentation] Set BMC time when time owner is BMC and time mode is
88 ... manual.
89 [Tags] Set_BMC_Time_With_BMC_And_Manual
90 [Template] Set Time Using REST
Rahul Maheshwari93f68092016-10-24 02:42:12 -050091
Rahul Maheshwarif8785902016-12-12 01:23:13 -060092Set BMC Time With Both And Manual
93 #Operation Owner Mode Status BMC Time Host Time
94 Set BMC Time BOTH MANUAL ok Set Change
Rahul Maheshwari93f68092016-10-24 02:42:12 -050095
Rahul Maheshwarif8785902016-12-12 01:23:13 -060096 [Documentation] Set BMC time when time owner is Both and time mode is
97 ... manual.
98 [Tags] Set_BMC_Time_With_Both_And_Manual
99 [Template] Set Time Using REST
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500100
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500101
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600102Set BMC Time With Split And Manual
103 #Operation Owner Mode Status BMC Time Host Time
104 Set BMC Time SPLIT MANUAL ok Set No Change
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500105
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600106 [Documentation] Set BMC time when time owner is Split and time mode is
107 ... manual.
108 [Tags] Set_BMC_Time_With_Split_And_Manual
109 [Template] Set Time Using REST
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500110
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600111Set BMC Time With BMC And NTP
112 #Operation Owner Mode Status BMC Time Host Time
113 Set BMC Time BMC NTP error Not Set No Change
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500114
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600115 [Documentation] Set BMC time when time owner is BMC and time mode is
116 ... NTP.
117 [Tags] Set_BMC_Time_With_BMC_And_NTP
118 [Template] Set Time Using REST
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500119
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600120Set BMC Time With Host And Manual
121 #Operation Owner Mode Status BMC Time Host Time
122 Set BMC Time HOST MANUAL error Not Set No Change
123 [Documentation] Set BMC time when time owner is Host and time mode is
124 ... Manual.
125 [Tags] Set_BMC_Time_With_Host_And_Manual
126 [Template] Set Time Using REST
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500127
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600128Set BMC Time With Both And NTP
129 #Operation Owner Mode Status BMC Time Host Time
130 Set BMC Time BOTH NTP error Not Set No Change
131
132 [Documentation] Set BMC time when time owner is Both and time mode is
133 ... NTP.
134 [Tags] Set_BMC_Time_With_Both_And_NTP
135 [Template] Set Time Using REST
136
137Set BMC Time With Split And NTP
138 #Operation Owner Mode Status BMC Time Host Time
139 Set BMC Time SPLIT NTP error Not Set No Change
140
141 [Documentation] Set BMC time when time owner is Split and time mode is
142 ... NTP.
143 [Tags] Set_BMC_Time_With_Split_And_NTP
144 [Template] Set Time Using REST
145
146Set Host Time With Host And Manual
147 #Operation Owner Mode Status BMC Time Host Time
148 Set Host Time HOST MANUAL ok Change Set
149
150 [Documentation] Set host time when time owner is host and time mode is
151 ... manual.
152 [Tags] Set_Host_Time_With_Host_And_Manual
153 [Template] Set Time Using REST
154
155Set Host Time With Both And Manual
156 #Operation Owner Mode Status BMC Time Host Time
157 Set Host Time BOTH MANUAL ok Change Set
158
159 [Documentation] Set host time when time owner is both and time mode is
160 ... manual.
161 [Tags] Set_Host_Time_With_Both_And_Manual
162 [Template] Set Time Using REST
163
164Set Host Time With Both And NTP
165 #Operation Owner Mode Status BMC Time Host Time
Rahul Maheshwari754b47c2017-07-07 06:06:40 -0500166 Set Host Time BOTH NTP error No Change Not Set
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600167
168 [Documentation] Set host time when time owner is both and time mode is
169 ... NTP.
170 [Tags] Set_Host_Time_With_Both_And_NTP
171 [Template] Set Time Using REST
172
173Set Host Time With Split And Manual
174 #Operation Owner Mode Status BMC Time Host Time
175 Set Host Time SPLIT MANUAL ok No Change Set
176
177 [Documentation] Set host time when time owner is split and time mode is
178 ... manual.
179 [Tags] Set_Host_Time_With_Split_And_Manual
180 [Template] Set Time Using REST
181
182Set Host Time With Split And NTP
183 #Operation Owner Mode Status BMC Time HOST Time
184 Set Host Time SPLIT NTP ok No Change Set
185
186 [Documentation] Set host time when time owner is split and time mode is
187 ... NTP.
188 [Tags] Set_Host_Time_With_Split_And_NTP
189 [Template] Set Time Using REST
190
191Set Host Time With BMC And Manual
192 #Operation Owner Mode Status BMC Time HOST Time
193 Set Host Time BMC MANUAL error No Change Not Set
194 [Documentation] Set host time when time owner is BMC and time mode is
195 ... Manual.
196 [Tags] Set_Host_Time_With_BMC_And_Manual
197 [Template] Set Time Using REST
198
199Set Host Time With BMC Owner NTP
200 #Operation Owner Mode Status BMC Time HOST Time
201 Set Host Time BMC NTP error No Change Not Set
202 [Documentation] Set host time when time owner is BMC and time mode is
203 ... NTP.
204 [Tags] Set_Host_Time_With_BMC_And_NTP
205 [Template] Set Time Using REST
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500206
207Set Invalid Time Mode
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600208 [Documentation] Set time mode with invalid value using REST and verify
209 ... that it should throw error.
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500210 [Tags] Set_Invalid_Time_Mode
211
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600212 ${timemode}= Set Variable abc
213 ${valueDict}= Create Dictionary data=${timemode}
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500214
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600215 ${resp}= OpenBMC Put Request
216 ... ${SETTING_HOST}/attr/time_mode data=${valueDict}
217 ${jsondata}= to JSON ${resp.content}
218 Should Be Equal ${jsondata['status']} error
219
220 ${mode}= Read Attribute ${SETTING_HOST} time_mode
221 Should Not Be Equal ${mode} abc
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500222
223Set Invalid Time Owner
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600224 [Documentation] Set time owner with invalid value using REST and verify
225 ... that it should throw error.
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500226 [Tags] Set_Invalid_Time_Owner
227
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600228 ${timeowner}= Set Variable xyz
229 ${valueDict}= Create Dictionary data=${timeowner}
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500230
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600231 ${resp}= OpenBMC Put Request
232 ... ${SETTING_HOST}/attr/time_owner data=${valueDict}
233 ${jsondata}= to JSON ${resp.content}
234 Should Be Equal ${jsondata['status']} error
235
236 ${owner}= Read Attribute ${SETTING_HOST} time_owner
237 Should Not Be Equal ${owner} xyz
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500238
239
Chris Austenb29d2e82016-06-07 12:25:35 -0500240*** Keywords ***
241
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600242Get BMC Time Using IPMI
243 [Documentation] Returns BMC time of the system via IPMI
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500244
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600245 ${stdout} ${stderr} ${output}=
246 ... Execute Command date "+%m/%d/%Y %H:%M:%S"
247 ... return_stdout=True return_stderr= True return_rc=True
248 Should Be Equal ${output} ${0} msg=${stderr}
249
250 ${resp}= Convert Date ${stdout} date_format=%m/%d/%Y %H:%M:%S
251 ... exclude_millis=yes
252 Should Not Be Empty ${resp}
253 [Return] ${resp}
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500254
255Set Time Owner
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600256 [Arguments] ${args}
257 [Documentation] Set time owner of the system via REST
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500258
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600259 ${timeowner}= Set Variable ${args}
260 ${valueDict}= Create Dictionary data=${timeowner}
261
262 ${resp}= OpenBMC Put Request
263 ... ${SETTING_HOST}/attr/time_owner data=${valueDict}
264 ${jsondata}= to JSON ${resp.content}
265
Rahul Maheshwari2c725042017-01-29 22:55:28 -0600266 ${host_state}= Get Host State
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600267
Rahul Maheshwari2c725042017-01-29 22:55:28 -0600268 Run Keyword If '${host_state}' == 'Off'
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600269 ... Log System is in off state so owner change will get applied.
270 ... ELSE Run keyword
Rahul Maheshwari2c725042017-01-29 22:55:28 -0600271 ... Initiate Host PowerOff
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600272
273 ${owner}= Read Attribute ${SETTING_HOST} time_owner
274 Should Be Equal ${owner} ${args}
275
276 ${current_mode}=
277 ... Read Attribute ${TIME_MANAGER_URI.rstrip("/")} curr_time_owner
278 Should Be Equal ${current_mode} ${args}
279
280 [Return] ${jsondata['status']}
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500281
282Set Time Mode
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600283 [Arguments] ${args}
284 [Documentation] Set time mode of the system via REST
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500285
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600286 ${timemode}= Set Variable ${args}
287 ${valueDict}= Create Dictionary data=${timemode}
288
289 ${resp}= OpenBMC Put Request
290 ... ${SETTING_HOST}/attr/time_mode data=${valueDict}
291 ${jsondata}= to JSON ${resp.content}
292 Sleep 5s
293
294 ${mode}= Read Attribute ${SETTING_HOST} time_mode
295 Should Be Equal ${mode} ${args}
296
297 ${current_mode}=
298 ... Read Attribute ${TIME_MANAGER_URI.rstrip("/")} curr_time_mode
299 Should Be Equal ${current_mode} ${args}
300
301Get BMC Time Using REST
302 [Documentation] Returns BMC time of the system via REST
303 ... Time Format : YYYY-MM-DD hh:mm:ss.mil
304 ... eg. 2016-12-14 07:09:58.000
305
306 @{time_owner}= Create List BMC
307 ${data}= Create Dictionary data=@{time_owner}
308 ${resp}= OpenBMC Post Request
309 ... ${TIME_MANAGER_URI}action/GetTime data=${data}
310 ${jsondata}= To JSON ${resp.content}
311 ${time_epoch}= Get From List ${jsondata["data"]} 0
312 ${resp}= Convert Date
313 ... ${time_epoch} date_format=%a %b %d %H:%M:%S %Y %Z
314 [Return] ${resp}
315
316Get HOST Time Using REST
317 [Documentation] Returns HOST time of the system via REST
318 ... Time Format : YYYY-MM-DD hh:mm:ss.mil
319 ... eg. 2016-12-14 07:09:58.000
320
321 @{time_owner}= Create List HOST
322 ${data}= Create Dictionary data=@{time_owner}
323 ${resp}= OpenBMC Post Request
324 ... ${TIME_MANAGER_URI}action/GetTime data=${data}
325 ${jsondata}= To JSON ${resp.content}
326 ${time_epoch}= Get From List ${jsondata["data"]} 0
327 ${resp}= Convert Date
328 ... ${time_epoch} date_format=%a %b %d %H:%M:%S %Y %Z
329 [Return] ${resp}
330
331Set Time Using REST
332 [Arguments] ${operation} ${owner} ${mode} ${status} ${bmc_time}
333 ... ${host_time}
334 [Documentation] Set BMC or Host time on system via REST.
335 ... Description of arguments:
336 ... operation : Set BMC/Host time
337 ... owner: Time owner
338 ... mode: Time mode
339 ... status: Expected status of set BMC time URI
340 ... bmc_time: Status of BMC time after operation
341 ... host_time: Status of HOST time after operation
342 ... Set - Given time is set
343 ... Not Set - Given time is not set
344 ... Change - time is change
345 ... No Change - time is not change
346
347 Set Time Owner ${owner}
348 Set Time Mode ${mode}
349
350 ${setdate}= Convert Date ${SYSTEM_TIME_VALID}
351 ... date_format=%m/%d/%Y %H:%M:%S exclude_millis=yes
352
353 @{bmc_date_list}= Create List BMC ${setdate}
354 @{host_date_list}= Create List HOST ${SYSTEM_TIME_VALID_EPOCH}
355
356 ${time_owner_date}= Set Variable If
357 ... '${operation}' == 'Set BMC Time' ${bmc_date_list}
358 ... '${operation}' == 'Set Host Time' ${host_date_list}
359
Sridevi Rameshae444822017-02-13 05:51:52 -0600360 ${start_time}= Get Current Date
361
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600362 ${old_bmc_time}= Get BMC Time Using REST
363 ${old_host_time}= Get HOST Time Using REST
364
365 ${data}= Create Dictionary data=${time_owner_date}
366 ${resp}= OpenBMC Post Request
367 ... ${TIME_MANAGER_URI}action/SetTime data=${data}
368 ${jsondata}= To JSON ${resp.content}
369 Should Be Equal As Strings ${jsondata['status']} ${status}
370
371 ${new_bmc_time}= Get BMC Time Using REST
372 ${new_host_time}= Get HOST Time Using REST
373
Sridevi Rameshae444822017-02-13 05:51:52 -0600374 ${end_time}= Get Current Date
375 ${time_duration}= Subtract Date From Date ${start_time} ${end_time}
376 ${time_duration} Evaluate abs(${time_duration})
377
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600378 ${bmc_diff_set_new}=
379 ... Subtract Date From Date ${setdate} ${new_bmc_time}
380 ${bmc_diff_set_new}= Evaluate abs(${bmc_diff_set_new})
381 ${bmc_diff_old_new}=
382 ... Subtract Date From Date ${old_bmc_time} ${new_bmc_time}
383 ${bmc_diff_old_new}= Evaluate abs(${bmc_diff_old_new})
384
385 ${host_diff_set_new}=
386 ... Subtract Date From Date ${setdate} ${new_host_time}
387 ${host_diff_set_new}= Evaluate abs(${host_diff_set_new})
388 ${host_diff_old_new}=
389 ... Subtract Date From Date ${old_host_time} ${new_host_time}
390 ${host_diff_old_new}= Evaluate abs(${host_diff_old_new})
391
392 Run Keyword If '${bmc_time}' == 'Not Set'
Sridevi Rameshae444822017-02-13 05:51:52 -0600393 ... Should Be True ${bmc_diff_set_new} >= ${time_duration}
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600394 ... ELSE IF '${bmc_time}' == 'Set'
Sridevi Rameshae444822017-02-13 05:51:52 -0600395 ... Should Be True ${bmc_diff_set_new} <= ${time_duration}
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600396 ... ELSE IF '${bmc_time}' == 'No Change'
Sridevi Rameshae444822017-02-13 05:51:52 -0600397 ... Should Be True ${bmc_diff_old_new} <= ${time_duration}
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600398 ... ELSE IF '${bmc_time}' == 'Change'
Sridevi Rameshae444822017-02-13 05:51:52 -0600399 ... Should Be True ${bmc_diff_old_new} >= ${time_duration}
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600400
401 Run Keyword If '${host_time}' == 'No Change'
Sridevi Rameshae444822017-02-13 05:51:52 -0600402 ... Should Be True ${host_diff_old_new} <= ${time_duration}
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600403 ... ELSE IF '${host_time}' == 'Change'
Sridevi Rameshae444822017-02-13 05:51:52 -0600404 ... Should Be True ${host_diff_old_new} >= ${time_duration}
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600405 ... ELSE IF '${host_time}' == 'Not Set'
Sridevi Rameshae444822017-02-13 05:51:52 -0600406 ... Should Be True ${host_diff_set_new} >= ${time_duration}
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600407 ... ELSE IF '${host_time}' == 'Set'
Sridevi Rameshae444822017-02-13 05:51:52 -0600408 ... Should Be True ${host_diff_set_new} <= ${time_duration}
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500409
410
Rahul Maheshwari06174f22017-03-06 03:17:09 -0600411Post Test Case Execution
412 [Documentation] Do the post test teardown.
413 ... 1. Capture FFDC on test failure.
414 ... 2. Sets defaults for time mode and owner.
415 ... 3. Close all open SSH connections.
Rahul Maheshwari93f68092016-10-24 02:42:12 -0500416
Rahul Maheshwari06174f22017-03-06 03:17:09 -0600417 FFDC On Test Case Fail
Rahul Maheshwarif8785902016-12-12 01:23:13 -0600418 Set Time Owner BMC
419 Set Time Mode NTP
Rahul Maheshwari06174f22017-03-06 03:17:09 -0600420 Close All Connections