From cc80db89ad0cc9a0ee81d0dfc84d4d37777a7cf7 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Mon, 23 Oct 2023 23:15:10 +1300 Subject: [PATCH] Anchor tz.php expand tests so the results don't change each year --- testing/tests/timezone/5040-expand.test | 4 ++-- testing/tests/timezone/5041-expand.test | 5 ++++- testing/tests/timezone/5042-expand.test | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/testing/tests/timezone/5040-expand.test b/testing/tests/timezone/5040-expand.test index 791d3dd0..8d8cc8a4 100644 --- a/testing/tests/timezone/5040-expand.test +++ b/testing/tests/timezone/5040-expand.test @@ -1,8 +1,8 @@ # -# List timezone server timezones +# Expand 10 years of timezone changes # TYPE=GET -URL=http://regression.host/tz.php?action=expand&tzid=Pacific/Auckland +URL=http://regression.host/tz.php?action=expand&tzid=Pacific/Auckland&start=2012-01-01&end=2022-12-31 HEAD REPLACE=/dtstamp>[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z/dtstamp>all good/ diff --git a/testing/tests/timezone/5041-expand.test b/testing/tests/timezone/5041-expand.test index f8e2a3b2..78956f29 100644 --- a/testing/tests/timezone/5041-expand.test +++ b/testing/tests/timezone/5041-expand.test @@ -1,8 +1,11 @@ # # Fetch an expanded timezone from the server. # +# Test an end date that is a bit more than the default of 10 years from the +# current year. +# TYPE=GET -URL=http://regression.host/tz.php?action=expand&tzid=America/Indiana/Indianapolis&start=2009-01-01 +URL=http://regression.host/tz.php?action=expand&tzid=America/Indiana/Indianapolis&start=2009-01-01&end=2022-12-31 HEAD REPLACE=/dtstamp>[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z/dtstamp>all good/ diff --git a/testing/tests/timezone/5042-expand.test b/testing/tests/timezone/5042-expand.test index d275dcd6..9753c29e 100644 --- a/testing/tests/timezone/5042-expand.test +++ b/testing/tests/timezone/5042-expand.test @@ -2,7 +2,7 @@ # Fetch an expanded timezone from the server. # TYPE=GET -URL=http://regression.host/tz.php?action=expand&tzid=America/Indiana/Indianapolis&end=2013-07-01 +URL=http://regression.host/tz.php?action=expand&tzid=America/Indiana/Indianapolis&start=2012-01-01&end=2013-07-01 HEAD REPLACE=/dtstamp>[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z/dtstamp>all good/