source: branches/cname-collision/t/test-cname-timestamps.sql@ 984

Last change on this file since 984 was 984, checked in by Kris Deugau, 4 days ago

/branches/cname-collision

Added specific test for CNAME colliding with a record that has a valid-after
timestamp in the past.

  • additional test record
  • adjusted timestamp-retrieval SQL
  • extend logic tree for this case

See #72, #88

File size: 587 bytes
Line 
1-- Set timestamps on selected test records to a sliding window so that
2-- various tests expecting to find various expired, expiring, or valid-after
3-- records work correctly
4
5UPDATE records SET stamp = date_trunc('day', now() - interval '5 day') + '18:30' WHERE record_id = 47;
6UPDATE records SET stamp = date_trunc('day', now() + interval '3 day') + '07:00' WHERE record_id = 48;
7UPDATE records SET stamp = date_trunc('day', now() + interval '5 day') + '11:30' WHERE record_id = 49;
8UPDATE records SET stamp = date_trunc('day', now() - interval '3 day') + '14:00' WHERE record_id = 50;
Note: See TracBrowser for help on using the repository browser.