Changeset 1044 for branches/cname-collision/t/cname.t
- Timestamp:
- 02/20/26 13:37:06 (18 hours ago)
- File:
-
- 1 edited
-
branches/cname-collision/t/cname.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cname-collision/t/cname.t
r1043 r1044 313 313 $newname = 'expires-at5.expiry2.test'; 314 314 ($code, $msg) = $dnsdb->addRec('n', 'n', 5, \$newname, \$rectype, \$newval, 900, undef, 't', $expirystamp); 315 ok( $code, 'eq', 'FAIL', "addRec() claimed failure" );315 cmp_ok( $code, 'eq', 'FAIL', "addRec() claimed failure" ); 316 316 if ($code eq 'FAIL') { 317 317 ($rcount) = $dbh->selectrow_array("SELECT count(*) FROM records WHERE domain_id = 5 AND host = '$newname'"); … … 387 387 }; # add valid-after CNAME 388 388 389 ## Tests calling updateRec() instead of addRec() 390 subtest 'Update to CNAME - no timestamp' => sub { 389 ## Update a record to a CNAME or update an existing CNAME (no difference in handling 390 ## - to misquote Rincewind, "Don't worry about from ... The important word is to.") 391 ## Update to CNAME with no timestamp 392 subtest 'Update to CNAME - no timestamp' => sub { 391 393 $newval = 'target.example.com'; 392 394 subtest 'collision with expired record' => sub { … … 432 434 }; # update to CNAME with no timestamp 433 435 436 ## Update to CNAME with expiry 434 437 subtest 'CNAME update - expires soon' => sub { 435 438 my @ltime = localtime(time + 86400 * 3);
Note:
See TracChangeset
for help on using the changeset viewer.
![[ DNS Administrator ]](/fx/dnsadmin-logo.png)