Changeset 1015 for branches/cname-collision
- Timestamp:
- 02/03/26 11:29:50 (7 days ago)
- File:
-
- 1 edited
-
branches/cname-collision/t/cname.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cname-collision/t/cname.t
r1012 r1015 206 206 subtest 'Record expiry/valid-after' => sub { 207 207 208 ## Add new CNAME 208 209 subtest 'CNAME add - nonexpiring' => sub { 209 210 $newval = 'target.example.com'; … … 387 388 }; # add valid-after CNAME 388 389 390 ## Tests calling updateRec() instead of addRec() 391 subtest 'Update to CNAME - no timestamp' => sub { 392 $newval = 'target.example.com'; 393 subtest 'collision with expired record' => sub { 394 $newname = 'nostamp1a.expiry3.test'; 395 ($code, $msg) = $dnsdb->updateRec('n', 'n', 79, 6, \$newname, \$rectype, \$newval, 900); 396 ok( $code eq 'FAIL', "updateRec() claimed failure" ); 397 if ($code eq 'FAIL') { 398 ($rcount) = $dbh->selectrow_array("SELECT count(*) FROM records WHERE domain_id = 6 AND host = '$newname'"); 399 ok( $rcount == 1, " ... [$rcount] yep, hostname only occurs once" ); 400 like( $msg, qr/non-CNAME records with timestamps already exist/, " ... returned matching error" ); 401 } 402 }; 403 }; # update to CNAME with no timestamp 404 389 405 }; # record expiry/valid-after 390 406
Note:
See TracChangeset
for help on using the changeset viewer.
![[ DNS Administrator ]](/fx/dnsadmin-logo.png)