Changeset 1041 for branches/cname-collision
- Timestamp:
- 02/18/26 18:11:42 (29 hours ago)
- File:
-
- 1 edited
-
branches/cname-collision/t/DNSTest.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cname-collision/t/DNSTest.pm
r1011 r1041 64 64 65 65 my ($dcount) = $dbh->selectrow_array("SELECT count(*) FROM domains WHERE NOT domain IN ". 66 "('example.com','example.net','example.org','expiry1.test','expiry2.test','expiry3.test' )");66 "('example.com','example.net','example.org','expiry1.test','expiry2.test','expiry3.test','cname-blocks1.test')"); 67 67 BAIL_OUT("# DB looks like it may not be a test DB, found $dcount > 0 non-test domains!\n") 68 68 if $dcount > 0; … … 71 71 my ($rcount) = $dbh->selectrow_array(qq{SELECT count(*) FROM records WHERE NOT ( 72 72 host like '%example.com' or host like '%example.net' or host like '%example.org' or 73 host like '%expiry_.test' or inetlazy(val) << '192.168.2.0/27' 73 host like '%expiry_.test' or host like '%cname-blocks_.test' or 74 inetlazy(val) << '192.168.2.0/27' 74 75 )}); 75 76 my $maxrecs = 0; 76 BAIL_OUT("# DB looks like it may not be a test DB, found $rcount > $maxrecs records!\n")77 BAIL_OUT("# DB looks like it may not be a test DB, found $rcount > $maxrecs non-test records!\n") 77 78 if $rcount > $maxrecs; 78 79 cmp_ok( $rcount, '<=', $maxrecs, "non-test record ($rcount): looks like a test DB" );
Note:
See TracChangeset
for help on using the changeset viewer.
![[ DNS Administrator ]](/fx/dnsadmin-logo.png)