## ## Maintenance testing ## Verdikt takoj, chto imenno sam perehod vremeni rabotajet kak ozhidajetsja! Kogda menjajetsja odin denj na drugoj, promezhutok ne obrivajetsa. No! Pri statuse "normal maintenance", soobschenija vsje-ravno otpravljajutjsa, esli tam trigger s oshibkoj. I takzhe ne rabotajut promezhutki, kotorije dlinneeje odnogo dnja. Oni obrezajutsja, to estj s pervogo dnja na vtoroj maintenance perehodit, no na tretij uzhe net. 1. One time only, with data collection: period: only 2 hours result in period: date is collected, MESSAGES ARE SENT! result out -----: date is collected, MESSAGES ARE SENT! 2. One time, without data collection: One time only At 23:00 on 22 Jan 2010 3d 10h 50m period: only two hours result in period: date is not collected, messages are not sent! Thu Jan 28 00:00:02 EET 2010 result out of period: date yes, messages are sent, yes it works 3. Daily At 23:00 on every day 2h without data collection daily Sat Jan 30 17:29:33 EET 2010(now) period: two hours from 23:00 before midnight: date not collected, messages are not sent after midnight: date not collected, messages are not sent date +%Y%m%d%T -s "20100131 01:10:00" no maintenance: date is collected, messages are sent done 4. Sun Jan 31 01:17:40 EET 2010 without data collection Daily At 23:00 on every 1 days 1h 59m Day 1: before midnight: Sun Jan 31 23:30:48 EET 2010, date not collected, messages are not sent after midnight: Mon Feb 1 00:30:13 EET 2010, date not collected, messages are not sent no maintenance: Mon Feb 1 03:30:11 EET 2010, date is collected, messages are sent Day2: before midnight: Mon Feb 1 23:30:07 EET 2010, date is not collected, messages are not sent after midnigt: Tue Feb 2 00:30:02 EET 2010, date is not collected, messages are not sent no maintenance: Tue Feb 2 04:30:01 EET 2010, data is collected, messages are sent Day3: before midnight: Tue Feb 2 23:30:01 EET 2010, data are not collected, messages are not sent after midnight: Wed Feb 3 00:15:02 EET 2010, data are not collected, messages are not sent no maintenance: Wed Feb 3 06:15:02 EET 2010, data are collected, messages are sent. Day4: before midnight: Wed Feb 3 23:15:01 EET 2010, data are not collected, messages are not sent after midnight: Thu Feb 4 00:15:02 EET 2010, data are not collected, messages are not sent no maintenance: Thu Feb 4 07:15:02 EET 2010, date are collected, messages are sent 5. With data collection: Daily At 23:00 on every 3 days 1d 12h Day 1: before midnight: Thu Feb 4 23:15:01 EET 2010, data are collected, messages are sent after midnight: Fri Feb 5 00:15:01 EET 2010, data are collected, messages are sent no maintenance: Fri Feb 5 07:15:01 EET 2010, data are collected, messages are sent Day 2: before midnight: Fri Feb 5 23:15:01 EET 2010, date are collected, messages are sent after midnight: Sat Feb 6 00:15:01 EET 2010, date are collected, messages are sent no maintenance: Sat Feb 6 21:15:01 EET 2010, date are collected, messages are sent Day 3: before midnight: Sat Feb 6 23:15:01 EET 2010, data are collected, MESSAGES ARE SENT after midnight: Sun Feb 7 00:15:01 EET 2010, data are collected, MESSAGES ARE SENT 6. Without data collection: Weekly At 23:00 on every Thursday of every 2 weeks 1d 12h 30m Day 1: before midnight: Thu Feb 11 23:15:01 EET 2010, data are not collected, messages are not sent Day 2: before midnight: Fri Feb 12 23:15:01 EET 2010, DATA ARE COLLECTED, MESSAGES ARE SENT Day 3: before midnight: Thu Feb 25 23:15:02 EET 2010, data are not collected, messages are not sent Day 4: before midnight: Fri Feb 26 23:15:13 EET 2010, DATA ARE COLLECTED, MESSAGES ARE SENT 7. No data collection: Monthly At 23:00 on day 1 of every February, March, April 1d 12h Day 1: before midnight: Mon Mar 1 23:15:01 EET 2010, data are not collected, messages are not sent before midnight: Tue Mar 2 23:15:02 EET 2010, DATA ARE COLLECTED, MESSAGES ARE SENT Day 2: before midnight: Thu Apr 1 23:15:01 EEST 2010, data are not collected, messages are not sent Day 3: before midnight: Fri Apr 2 06:15:02 EEST 2010, DATA ARE COLLECTED, MESSAGES ARE SENT