Ignore:
Timestamp:
02/20/26 13:37:06 (18 hours ago)
Author:
Kris Deugau
Message:

/branches/cname-collision

Complete a missed conversion from ok() to cmp_ok()
A couple more docucomments
See #88

File:
1 edited

Legend:

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

    r1043 r1044  
    313313      $newname = 'expires-at5.expiry2.test';
    314314      ($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" );
    316316      if ($code eq 'FAIL') {
    317317        ($rcount) = $dbh->selectrow_array("SELECT count(*) FROM records WHERE domain_id = 5 AND host = '$newname'");
     
    387387  }; # add valid-after CNAME
    388388
    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 {
    391393    $newval = 'target.example.com';
    392394    subtest 'collision with expired record' => sub {
     
    432434  }; # update to CNAME with no timestamp
    433435
     436  ## Update to CNAME with expiry
    434437  subtest 'CNAME update - expires soon' => sub {
    435438    my @ltime = localtime(time + 86400 * 3);
Note: See TracChangeset for help on using the changeset viewer.