Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
# minimal configuration
ts.Disk.records_config.update({
'proxy.config.diags.debug.enabled': 1,
'proxy.config.diags.debug.tags': 'regex_revalidate',
'proxy.config.diags.debug.tags': 'http|regex_revalidate',
# 'proxy.config.diags.debug.enabled': 0,
'proxy.config.http.insert_age_in_response': 0,
'proxy.config.http.response_via_str': 3,
Expand Down Expand Up @@ -185,6 +185,10 @@

# 4 Stage - Reload new regex_revalidate
tr = Test.AddTestRun("Reload config add path1")
# Need a sufficient delay so that the modification time difference of the new config file versus
# the old is greater than the granularity of the time stamp used. (The config file write
# happens after the delay.)
tr.DelayStart = 1
tr.Disk.File(regex_revalidate_conf_path, typename="ats:config").AddLines([
path1_rule
])
Expand Down Expand Up @@ -214,6 +218,10 @@

# 7 Stage - Reload new regex_revalidate
tr = Test.AddTestRun("Reload config add path2")
# Need a sufficient delay so that the modification time difference of the new config file versus
# the old is greater than the granularity of the time stamp used. (The config file write
# happens after the delay.)
tr.DelayStart = 1
tr.Disk.File(regex_revalidate_conf_path, typename="ats:config").AddLines([
path1_rule,
'path2 {}\n'.format(int(time.time()) + 700)
Expand Down Expand Up @@ -247,6 +255,10 @@

# 10 Stage - regex_revalidate rewrite rule early expire
tr = Test.AddTestRun("Reload config change path2")
# Need a sufficient delay so that the modification time difference of the new config file versus
# the old is greater than the granularity of the time stamp used. (The config file write
# happens after the delay.)
tr.DelayStart = 1
tr.Disk.File(regex_revalidate_conf_path, typename="ats:config").AddLines([
path1_rule,
'path2 {}\n'.format(int(time.time()) - 100),
Expand Down