|
147 | 147 | # minimal configuration |
148 | 148 | ts.Disk.records_config.update({ |
149 | 149 | 'proxy.config.diags.debug.enabled': 1, |
150 | | - 'proxy.config.diags.debug.tags': 'regex_revalidate', |
| 150 | + 'proxy.config.diags.debug.tags': 'http|regex_revalidate', |
151 | 151 | # 'proxy.config.diags.debug.enabled': 0, |
152 | 152 | 'proxy.config.http.insert_age_in_response': 0, |
153 | 153 | 'proxy.config.http.response_via_str': 3, |
|
185 | 185 |
|
186 | 186 | # 4 Stage - Reload new regex_revalidate |
187 | 187 | tr = Test.AddTestRun("Reload config add path1") |
| 188 | +# Need a sufficient delay so that the modification time difference of the new config file versus |
| 189 | +# the old is greater than the granularity of the time stamp used. (The config file write |
| 190 | +# happens after the delay.) |
| 191 | +tr.DelayStart = 1 |
188 | 192 | tr.Disk.File(regex_revalidate_conf_path, typename="ats:config").AddLines([ |
189 | 193 | path1_rule |
190 | 194 | ]) |
|
214 | 218 |
|
215 | 219 | # 7 Stage - Reload new regex_revalidate |
216 | 220 | tr = Test.AddTestRun("Reload config add path2") |
| 221 | +# Need a sufficient delay so that the modification time difference of the new config file versus |
| 222 | +# the old is greater than the granularity of the time stamp used. (The config file write |
| 223 | +# happens after the delay.) |
| 224 | +tr.DelayStart = 1 |
217 | 225 | tr.Disk.File(regex_revalidate_conf_path, typename="ats:config").AddLines([ |
218 | 226 | path1_rule, |
219 | 227 | 'path2 {}\n'.format(int(time.time()) + 700) |
|
247 | 255 |
|
248 | 256 | # 10 Stage - regex_revalidate rewrite rule early expire |
249 | 257 | tr = Test.AddTestRun("Reload config change path2") |
| 258 | +# Need a sufficient delay so that the modification time difference of the new config file versus |
| 259 | +# the old is greater than the granularity of the time stamp used. (The config file write |
| 260 | +# happens after the delay.) |
| 261 | +tr.DelayStart = 1 |
250 | 262 | tr.Disk.File(regex_revalidate_conf_path, typename="ats:config").AddLines([ |
251 | 263 | path1_rule, |
252 | 264 | 'path2 {}\n'.format(int(time.time()) - 100), |
|
0 commit comments