@@ -45,58 +45,58 @@ def test_update_cron(self):
4545
4646 # Test generation of ar cronjob for a specific tenant and report
4747 expected = "#TENANT_A:report1 daily A/R\n " \
48- + "5 * * * * foo " + BATCH_AR + " -t TENANT_A -r report1 -d " + YESTERDAY + " -m upsert " + "-c " \
48+ + "5 5 * * * foo " + BATCH_AR + " -t TENANT_A -r report1 -d " + YESTERDAY + " -m upsert " + "-c " \
4949 + config .conf_path + "\n "
5050
5151 self .assertEquals (expected , gen_batch_ar (config , "TENANT_A" , "report1" , "daily" , "foo" , "upsert" ))
5252
5353 # Test generation of ar cronjob for a specific tenant and report
5454 expected = "#TENANT_A:report1 hourly A/R\n " \
55- + "5 5 * * * " + BATCH_AR + " -t TENANT_A -r report1 -d " + TODAY + " -m insert " + "-c " \
55+ + "5 * * * * " + BATCH_AR + " -t TENANT_A -r report1 -d " + TODAY + " -m insert " + "-c " \
5656 + config .conf_path + "\n "
5757
5858 self .assertEquals (expected , gen_batch_ar (config , "TENANT_A" , "report1" , "hourly" ))
5959
6060 # Test generation of ar cronjob for a specific tenant and report
6161 expected = "#TENANT_B:report1 daily Status\n " \
62- + "5 * * * * foo " + BATCH_STATUS + " -t TENANT_B -r report1 -d " \
62+ + "5 5 * * * foo " + BATCH_STATUS + " -t TENANT_B -r report1 -d " \
6363 + YESTERDAY + " -m upsert " + "-c " \
6464 + config .conf_path + "\n "
6565
6666 self .assertEquals (expected , gen_batch_status (config , "TENANT_B" , "report1" , "daily" , "foo" , "upsert" ))
6767
6868 # Test generation of status cronjob for a specific tenant and report
6969 expected = "#TENANT_B:report1 hourly Status\n " \
70- + "5 5 * * * " + BATCH_STATUS + " -t TENANT_B -r report1 -d " + TODAY + " -m insert " + "-c " \
70+ + "5 * * * * " + BATCH_STATUS + " -t TENANT_B -r report1 -d " + TODAY + " -m insert " + "-c " \
7171 + config .conf_path + "\n "
7272
7373 self .assertEquals (expected , gen_batch_status (config , "TENANT_B" , "report1" , "hourly" ))
7474
7575 # Test generation of cronjobs for a tenant's reports
7676 expected = "#Jobs for TENANT_A\n \n " \
7777 + "#TENANT_A:report1 hourly A/R\n " \
78- + "5 5 * * * " + BATCH_AR + " -t TENANT_A -r report1 -d " + TODAY + " -m insert -c " \
78+ + "5 * * * * " + BATCH_AR + " -t TENANT_A -r report1 -d " + TODAY + " -m insert -c " \
7979 + config .conf_path + "\n \n " \
8080 + "#TENANT_A:report1 daily A/R\n " \
81- + "5 * * * * " + BATCH_AR + " -t TENANT_A -r report1 -d " + YESTERDAY + " -m insert -c " \
81+ + "5 5 * * * " + BATCH_AR + " -t TENANT_A -r report1 -d " + YESTERDAY + " -m insert -c " \
8282 + config .conf_path + "\n \n " \
8383 + "#TENANT_A:report1 hourly Status\n " \
84- + "5 5 * * * " + BATCH_STATUS + " -t TENANT_A -r report1 -d " + TODAY + " -m insert -c " \
84+ + "5 * * * * " + BATCH_STATUS + " -t TENANT_A -r report1 -d " + TODAY + " -m insert -c " \
8585 + config .conf_path + "\n \n " \
8686 + "#TENANT_A:report1 daily Status\n " \
87- + "5 * * * * " + BATCH_STATUS + " -t TENANT_A -r report1 -d " + YESTERDAY + " -m insert -c " \
87+ + "5 5 * * * " + BATCH_STATUS + " -t TENANT_A -r report1 -d " + YESTERDAY + " -m insert -c " \
8888 + config .conf_path + "\n \n " \
8989 + "#TENANT_A:report2 hourly A/R\n " \
90- + "5 5 * * * " + BATCH_AR + " -t TENANT_A -r report2 -d " + TODAY + " -m insert -c " \
90+ + "5 * * * * " + BATCH_AR + " -t TENANT_A -r report2 -d " + TODAY + " -m insert -c " \
9191 + config .conf_path + "\n \n " \
9292 + "#TENANT_A:report2 daily A/R\n " \
93- + "5 * * * * " + BATCH_AR + " -t TENANT_A -r report2 -d " + YESTERDAY + " -m insert -c " \
93+ + "5 5 * * * " + BATCH_AR + " -t TENANT_A -r report2 -d " + YESTERDAY + " -m insert -c " \
9494 + config .conf_path + "\n \n " \
9595 + "#TENANT_A:report2 hourly Status\n " \
96- + "5 5 * * * " + BATCH_STATUS + " -t TENANT_A -r report2 -d " + TODAY + " -m insert -c " \
96+ + "5 * * * * " + BATCH_STATUS + " -t TENANT_A -r report2 -d " + TODAY + " -m insert -c " \
9797 + config .conf_path + "\n \n " \
9898 + "#TENANT_A:report2 daily Status\n " \
99- + "5 * * * * " + BATCH_STATUS + " -t TENANT_A -r report2 -d " + YESTERDAY + " -m insert -c " \
99+ + "5 5 * * * " + BATCH_STATUS + " -t TENANT_A -r report2 -d " + YESTERDAY + " -m insert -c " \
100100 + config .conf_path + "\n \n " \
101101 + "\n "
102102
@@ -105,28 +105,28 @@ def test_update_cron(self):
105105 # Test generation of cronjobs for all tenants and all reports
106106 expected2 = "#Jobs for TENANT_B\n \n " \
107107 + "#TENANT_B:report1 hourly A/R\n " \
108- + "5 5 * * * " + BATCH_AR + " -t TENANT_B -r report1 -d " + TODAY + " -m insert -c " \
108+ + "5 * * * * " + BATCH_AR + " -t TENANT_B -r report1 -d " + TODAY + " -m insert -c " \
109109 + config .conf_path + "\n \n " \
110110 + "#TENANT_B:report1 daily A/R\n " \
111- + "5 * * * * " + BATCH_AR + " -t TENANT_B -r report1 -d " + YESTERDAY + " -m insert -c " \
111+ + "5 5 * * * " + BATCH_AR + " -t TENANT_B -r report1 -d " + YESTERDAY + " -m insert -c " \
112112 + config .conf_path + "\n \n " \
113113 + "#TENANT_B:report1 hourly Status\n " \
114- + "5 5 * * * " + BATCH_STATUS + " -t TENANT_B -r report1 -d " + TODAY + " -m insert -c " \
114+ + "5 * * * * " + BATCH_STATUS + " -t TENANT_B -r report1 -d " + TODAY + " -m insert -c " \
115115 + config .conf_path + "\n \n " \
116116 + "#TENANT_B:report1 daily Status\n " \
117- + "5 * * * * " + BATCH_STATUS + " -t TENANT_B -r report1 -d " + YESTERDAY + " -m insert -c " \
117+ + "5 5 * * * " + BATCH_STATUS + " -t TENANT_B -r report1 -d " + YESTERDAY + " -m insert -c " \
118118 + config .conf_path + "\n \n " \
119119 + "#TENANT_B:report2 hourly A/R\n " \
120- + "5 5 * * * " + BATCH_AR + " -t TENANT_B -r report2 -d " + TODAY + " -m insert -c " \
120+ + "5 * * * * " + BATCH_AR + " -t TENANT_B -r report2 -d " + TODAY + " -m insert -c " \
121121 + config .conf_path + "\n \n " \
122122 + "#TENANT_B:report2 daily A/R\n " \
123- + "5 * * * * " + BATCH_AR + " -t TENANT_B -r report2 -d " + YESTERDAY + " -m insert -c " \
123+ + "5 5 * * * " + BATCH_AR + " -t TENANT_B -r report2 -d " + YESTERDAY + " -m insert -c " \
124124 + config .conf_path + "\n \n " \
125125 + "#TENANT_B:report2 hourly Status\n " \
126- + "5 5 * * * " + BATCH_STATUS + " -t TENANT_B -r report2 -d " + TODAY + " -m insert -c " \
126+ + "5 * * * * " + BATCH_STATUS + " -t TENANT_B -r report2 -d " + TODAY + " -m insert -c " \
127127 + config .conf_path + "\n \n " \
128128 + "#TENANT_B:report2 daily Status\n " \
129- + "5 * * * * " + BATCH_STATUS + " -t TENANT_B -r report2 -d " + YESTERDAY + " -m insert -c " \
129+ + "5 5 * * * " + BATCH_STATUS + " -t TENANT_B -r report2 -d " + YESTERDAY + " -m insert -c " \
130130 + config .conf_path + "\n \n " \
131131 + "\n "
132132
0 commit comments