Lines Matching refs:test

10 # Dynamic update test suite.
64 sub test {
90 test("NOERROR", ["update", rr_del("a.$zone")]);
91 test("NOERROR", ["update", rr_del("b.$zone")]);
92 test("NOERROR", ["update", rr_del("c.$zone")]);
93 test("NOERROR", ["update", rr_del("d.$zone")]);
94 test("NOERROR", ["update", rr_del("e.$zone")]);
95 test("NOERROR", ["update", rr_del("f.$zone")]);
96 test("NOERROR", ["update", rr_del("ns.s.$zone")]);
97 test("NOERROR", ["update", rr_del("s.$zone")]);
98 test("NOERROR", ["update", rr_del("t.$zone")]);
99 test("NOERROR", ["update", rr_del("*.$zone")]);
100 test("NOERROR", ["update", rr_del("u.$zone")]);
101 test("NOERROR", ["update", rr_del("a.u.$zone")]);
102 test("NOERROR", ["update", rr_del("b.u.$zone")]);
106 test("NXDOMAIN", ["pre", yxdomain("a.$zone")]);
108 test("NXRRSET", ["pre", yxrrset("a.$zone A")]);
110 test("NOERROR", ["pre", nxdomain("a.$zone")]);
112 test("NOERROR", ["pre", nxrrset("a.$zone A")]);
114 test("NXRRSET", ["pre", yxrrset("a.$zone A 73.80.65.49")]);
118 test("NOERROR", ["update", rr_add("a.$zone 300 A 73.80.65.49")]);
122 test("NOERROR", ["pre", yxdomain("a.$zone")]);
124 test("NOERROR", ["pre", yxrrset("a.$zone A")]);
126 test("YXDOMAIN", ["pre", nxdomain("a.$zone")]);
128 test("YXRRSET", ["pre", nxrrset("a.$zone A")]);
130 test("NOERROR", ["pre", yxrrset("a.$zone A 73.80.65.49")]);
135 test("NOERROR", ["update", rr_add("a.$zone 300 A 73.80.65.50")]);
138 test("NOERROR", ["pre",
141 test("NOERROR", ["pre",
144 test("NXRRSET", ["pre", yxrrset("a.$zone A 73.80.65.49")]);
145 test("NXRRSET", ["pre", yxrrset("a.$zone A 73.80.65.50")]);
146 test("NXRRSET", ["pre",
152 section("Torture test of \"RRset exists (value dependent)\" prerequisites.");
154 test("NOERROR", ["update",
158 test("NOERROR", ["update",
162 test("NOERROR", ["update",
165 test("NOERROR", ["update",
168 test("NOERROR", ["pre",
180 test("NOERROR", ["update", rr_del("a.$zone A 73.80.65.49")]);
181 test("NOERROR", ["pre",
184 test("NOERROR", ["update", rr_del("a.$zone A 73.80.65.50")]);
185 test("NOERROR", ["pre", nxrrset("a.$zone A")]);
186 test("NOERROR", ["pre", nxdomain("a.$zone")]);
189 test("NOERROR", ["update", rr_add("a.$zone 300 A 73.80.65.49")]);
190 test("NOERROR", ["update", rr_add("a.$zone 300 A 73.80.65.50")]);
191 test("NOERROR", ["update", rr_add("a.$zone 300 MX 10 mail.$zone")]);
192 test("NOERROR", ["update", rr_del("a.$zone A")]);
193 test("NOERROR", ["pre", nxrrset("a.$zone A")]);
194 test("NOERROR", ["update", rr_add("a.$zone 300 A 73.80.65.49")]);
195 test("NOERROR", ["update", rr_add("a.$zone 300 A 73.80.65.50")]);
196 test("NOERROR", ["update", rr_del("a.$zone")]);
197 test("NOERROR", ["pre", nxdomain("a.$zone")]);
200 test("NOERROR", ["update", rr_add("a.$zone 300 PTR foo.net.")]);
201 test("NOERROR", ["pre", yxrrset("A.$zone PTR fOo.NeT.")]);
204 test("NOERROR", ["update", rr_add("b.$zone 300 CNAME foo.net.")]);
205 test("NOERROR", ["update", rr_add("b.$zone 300 A 73.80.65.49")]);
206 test("NOERROR", ["pre", yxrrset("b.$zone CNAME foo.net.")]);
207 test("NOERROR", ["pre", nxrrset("b.$zone A")]);
209 test("NOERROR", ["update", rr_add("c.$zone 300 A 73.80.65.49")]);
210 test("NOERROR", ["update", rr_add("c.$zone 300 CNAME foo.net.")]);
211 test("NOERROR", ["pre", yxrrset("c.$zone A")]);
212 test("NOERROR", ["pre", nxrrset("c.$zone CNAME")]);
214 # XXX should test with SIG, KEY, NXT, too.
221 #test("NOERROR", ["update", rr_add("c.$zone 300 WKS 73.80.65.49 TCP telnet ftp")]);
222 #test("NOERROR", ["update", rr_add("c.$zone 300 WKS 73.80.65.49 UDP telnet ftp")]);
223 #test("NOERROR", ["update", rr_add("c.$zone 300 WKS 73.80.65.50 TCP telnet ftp")]);
224 #test("NOERROR", ["update", rr_add("c.$zone 300 WKS 73.80.65.49 TCP smtp")]);
225 #test("NOERROR", ["pre",
239 test("NOERROR", ["update",
242 test("NOERROR", ["update", rr_del("$zone NS ns1.$zone")]);
243 test("NOERROR", ["update", rr_del("$zone NS ns2.$zone")]);
244 test("NOERROR", ["pre",
248 test("NOERROR", ["update", rr_add("n.$zone 300 NS ns1.$zone")]);
249 test("NOERROR", ["update", rr_del("n.$zone NS ns1.$zone")]);
250 test("NOERROR", ["pre", nxrrset("n.$zone NS")]);
256 test("NOERROR", ["update", rr_add("n.$zone 300 NS ns1.$zone")]);
257 test("NOERROR", ["update", rr_del("n.$zone NS")]);
258 test("NOERROR", ["pre", nxrrset("n.$zone NS")]);
260 test("NOERROR", ["update", rr_add("n.$zone 300 NS ns1.$zone")]);
261 test("NOERROR", ["pre", yxrrset("n.$zone NS")]);
262 test("NOERROR", ["update", rr_del("n.$zone")]);
263 test("NOERROR", ["pre", nxrrset("n.$zone NS")]);
266 test("NOERROR", ["update", rr_del("$zone NS")]);
267 test("NOERROR", ["pre",
270 test("NOERROR", ["update", rr_del("$zone")]);
271 test("NOERROR", ["pre",
276 test("NOERROR", ["update", rr_del("$zone SOA")]);
277 test("NOERROR", ["pre", yxrrset("$zone SOA")]);
282 test("NOERROR", ["update", rr_add("d.$zone 300 A 73.80.65.49")]);
283 test("NOERROR", ["pre", yxrrset("d.$zone A 73.80.65.49")]);
284 test("NOERROR", ["update",
287 test("NOERROR", ["pre", nxrrset("d.$zone A")]);
289 test("NOERROR", ["update", rr_del("d.$zone A 73.80.65.49")]);
290 test("NOERROR", ["pre", nxrrset("d.$zone A")]);
291 test("NOERROR", ["update",
295 test("NOERROR", ["pre", yxrrset("d.$zone A")]);
298 test("NOTZONE", ["pre", yxrrset("a.somewhere.else. A 73.80.65.49")]);
299 test("NOTZONE", ["update", rr_add("a.somewhere.else. 300 A 73.80.65.49")]);
303 test("NOERROR", ["update", rr_add("s.$zone 300 NS ns.s.$zone")]);
304 test("NOERROR", ["update", rr_add("ns.s.$zone 300 A 73.80.65.49")]);
305 test("NOERROR", ["pre", yxrrset("ns.s.$zone A 73.80.65.49")]);
308 test("NOERROR", ["update", rr_add("*.$zone 300 MX 10 mail.$zone")]);
309 test("NOERROR", ["pre", yxrrset("*.$zone MX 10 mail.$zone")]);
310 test("NXRRSET", ["pre", yxrrset("w.$zone MX 10 mail.$zone")]);
311 test("NOERROR", ["pre", nxrrset("w.$zone MX")]);
312 test("NOERROR", ["pre", nxdomain("w.$zone")]);
333 test("NOERROR", ["update", rr_add("$zone 300 SOA mname1. . $new_serial $soatimers")]);
345 test("NOERROR", ["update", rr_add("$zone 300 SOA mname2. . $new_serial $soatimers")]);
351 test("NOERROR", ["update", rr_add("$zone 300 SOA mname3. . $old_serial " .
361 #test("NOERROR", ["update", rr_add("a.$zone 300 TXT aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc")]);
362 #test("NOERROR", ["update", rr_del("a.$zone TXT aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc")]);
363 test("NOERROR", ["update", rr_add("a.$zone 300 TXT " . ("foo " x 3))]);
367 test("NOERROR", ["update", rr_add("t.$zone 300 A 73.80.65.49")]);
371 test("NOERROR", ["update",
381 # to be considered a duplicate or not? The test assumes that it
383 test("NOERROR", ["update", rr_add("t.$zone 302 A 73.80.65.50")]);
395 test("NOERROR", ["update", rr_add("t.$zone 303 A 73.80.65.51")]);
405 test("NOERROR", ["update", rr_add("a.u.$zone 300 A 73.80.65.49")]);
406 test("NOERROR", ["update", rr_add("b.u.$zone 300 A 73.80.65.49")]);
407 test("NOERROR", ["update", rr_add("u.$zone 300 TXT txt-not-in-nxt")]);
408 test("NOERROR", ["update", rr_add("u.$zone 300 NS ns.u.$zone")]);
410 test("NOERROR", ["update", rr_del("u.$zone NS ns.u.$zone")]);