Anchor tz.php expand tests so the results don't change each year

This commit is contained in:
Andrew Ruthven 2023-10-23 23:15:10 +13:00
parent c88c730236
commit cc80db89ad
3 changed files with 7 additions and 4 deletions

View File

@ -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/

View File

@ -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/

View File

@ -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/