Ignore:
Timestamp:
01/09/26 12:59:02 (13 days ago)
Author:
Kris Deugau
Message:

/branches/cname-collision

Add a set of test records with various expiry/valid-after settings for
testing CNAME collisions
Add a file of SQL UPDATEs and a call in the test setup module to normalize
the actual tested timestamps to a sliding window so that the base SQL
reference doesn't need to be updated on an ongoing basis for the tests to
work correctly
See #72, #88

Location:
branches/cname-collision/t
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cname-collision/t/DNSTest.pm

    r972 r976  
    8080  diag( $reload ) if $debug;
    8181  undef $ENV{PGPASSWORD};
     82  # Set timestamps to a sliding window
     83  my $stampwindow = qx( psql -h $dnsdb->{dbhost} -U $dnsdb->{dbuser} $dnsdb->{dbname} 2>&1 < t/test-cname-timestamps.sql );
     84  diag( $stampwindow ) if $debug;
    8285} # new()
    8386
  • branches/cname-collision/t/dns-unitbase.sql

    r967 r976  
    6576572       example.org     1               1       2025121800      D       f       ac
    6586583       example.net     1               1       2025121800      D       f       ab
    659 4       expiry1.test    1               1       1765992407      D       f       
     6594       expiry1.test    1               1       2026010702      D       t       
    660660\.
    661661
     
    76176153      0       1       1       admin   Initial User    Added record '192.168.2.17 TXT imma blocker!', TTL 2560 2025-12-23 13:06:20.492137-05   1       0
    76276255      0       1       1       admin   Initial User    Added record '192.168.2.18 CNAME 18-2.arpa.example.com', TTL 2560       2026-01-07 16:37:03.094557-05   1       0
     76356      4       1       1       admin   Initial User    Added record 'expired1.expiry1.test A 192.168.2.23', TTL 5400, expires at 2025-12-24 18:30      2026-01-07 17:55:46.022401-05   0       0
     76457      4       1       1       admin   Initial User    Added record 'expired2.expiry1.test TXT imma expire soon', TTL 5400, expires at 2026-01-10 07:00        2026-01-07 17:57:07.015962-05   0       0
     76558      4       1       1       admin   Initial User    Added record 'active-after1.expiry1.test TXT not active yet', TTL 5400, valid after 2026-01-11 11:30    2026-01-07 18:12:57.491476-05   0       0
    763766\.
    764767
     
    768771--
    769772
    770 SELECT pg_catalog.setval('public.log_log_id_seq', 55, true);
     773SELECT pg_catalog.setval('public.log_log_id_seq', 58, true);
    771774
    772775
     
    8558580       45      imma blocker!   16      192.168.2.17    0       0       0       2560    \N      1               1969-12-31 19:00:00-05  f       f       \N
    8568590       46      18-2.arpa.example.com   5       192.168.2.18    0       0       0       2560    \N      1               1969-12-31 19:00:00-05  f       f       \N
     8604       47      expired1.expiry1.test   1       192.168.2.23    0       0       0       5400    \N      0               2025-12-24 18:30:00-05  t       t       \N
     8614       48      expired2.expiry1.test   16      imma expire soon        0       0       0       5400    \N      0               2026-01-10 07:00:00-05  t       t       \N
     8624       49      active-after1.expiry1.test      16      not active yet  0       0       0       5400    \N      0               2026-01-11 11:30:00-05  f       t       \N
    857863\.
    858864
     
    862868--
    863869
    864 SELECT pg_catalog.setval('public.records_record_id_seq', 46, true);
     870SELECT pg_catalog.setval('public.records_record_id_seq', 49, true);
    865871
    866872
Note: See TracChangeset for help on using the changeset viewer.