s4-torture: Reorder the epmapper tests.
[bbaumbach/samba-autobuild/.git] / source4 / torture / rpc / epmapper.c
1 /* 
2    Unix SMB/CIFS implementation.
3    test suite for epmapper rpc operations
4
5    Copyright (C) Andrew Tridgell 2003
6    
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 3 of the License, or
10    (at your option) any later version.
11    
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16    
17    You should have received a copy of the GNU General Public License
18    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include "includes.h"
22 #include "librpc/gen_ndr/ndr_epmapper_c.h"
23 #include "librpc/ndr/ndr_table.h"
24 #include "librpc/rpc/dcerpc_proto.h"
25 #include "torture/rpc/torture_rpc.h"
26 #include "lib/util/util_net.h"
27
28 /*
29   display any protocol tower
30  */
31 static void display_tower(struct torture_context *tctx, struct epm_tower *twr)
32 {
33         int i;
34
35         for (i = 0; i < twr->num_floors; i++) {
36                 torture_comment(tctx,
37                                 " %s",
38                                 epm_floor_string(tctx, &twr->floors[i]));
39         }
40         torture_comment(tctx, "\n");
41 }
42
43 static bool test_Insert(struct torture_context *tctx,
44                         struct dcerpc_binding_handle *h,
45                         struct ndr_syntax_id object,
46                         const char *annotation,
47                         struct dcerpc_binding *b)
48 {
49         struct epm_Insert r;
50         NTSTATUS status;
51
52         r.in.num_ents = 1;
53         r.in.entries = talloc_array(tctx, struct epm_entry_t, 1);
54
55         if (torture_setting_bool(tctx, "samba4", false)) {
56                 torture_skip(tctx, "Skip Insert test against Samba4");
57         }
58
59         /* FIXME zero */
60         ZERO_STRUCT(r.in.entries[0].object);
61         r.in.entries[0].annotation = annotation;
62
63         r.in.entries[0].tower = talloc(tctx, struct epm_twr_t);
64
65         status = dcerpc_binding_build_tower(tctx,
66                                             b,
67                                             &r.in.entries[0].tower->tower);
68
69         torture_assert_ntstatus_ok(tctx,
70                                    status,
71                                    "Unable to build tower from binding struct");
72         r.in.replace = 0;
73
74         /* shoot! */
75         status = dcerpc_epm_Insert_r(h, tctx, &r);
76
77         if (NT_STATUS_IS_ERR(status)) {
78                 torture_comment(tctx,
79                                 "epm_Insert failed - %s\n",
80                                 nt_errstr(status));
81                 return false;
82         }
83
84         if (r.out.result != EPMAPPER_STATUS_OK) {
85                 torture_comment(tctx,
86                                 "epm_Insert failed - internal error: 0x%.4x\n",
87                                 r.out.result);
88                 return false;
89         }
90
91         return true;
92 }
93
94 static bool test_Delete(struct torture_context *tctx,
95                         struct dcerpc_binding_handle *h,
96                         const char *annotation,
97                         struct dcerpc_binding *b)
98 {
99         NTSTATUS status;
100         struct epm_Delete r;
101
102         r.in.num_ents = 1;
103         r.in.entries = talloc_array(tctx, struct epm_entry_t, 1);
104
105         ZERO_STRUCT(r.in.entries[0].object);
106         r.in.entries[0].annotation = annotation;
107
108         r.in.entries[0].tower = talloc(tctx, struct epm_twr_t);
109
110         status = dcerpc_binding_build_tower(tctx,
111                                             b,
112                                             &r.in.entries[0].tower->tower);
113
114         torture_assert_ntstatus_ok(tctx,
115                                    status,
116                                    "Unable to build tower from binding struct");
117         r.in.num_ents = 1;
118
119         status = dcerpc_epm_Delete_r(h, tctx, &r);
120         if (NT_STATUS_IS_ERR(status)) {
121                 torture_comment(tctx,
122                                 "epm_Delete failed - %s\n",
123                                 nt_errstr(status));
124                 return false;
125         }
126
127         if (r.out.result != EPMAPPER_STATUS_OK) {
128                 torture_comment(tctx,
129                                 "epm_Delete failed - internal error: 0x%.4x\n",
130                                 r.out.result);
131                 return false;
132         }
133
134         return true;
135 }
136
137 static bool test_Map_tcpip(struct torture_context *tctx,
138                            struct dcerpc_binding_handle *h,
139                            struct ndr_syntax_id map_syntax)
140 {
141         struct epm_Map r;
142         struct GUID uuid;
143         struct policy_handle entry_handle;
144         struct ndr_syntax_id syntax;
145         struct dcerpc_binding map_binding;
146         struct epm_twr_t map_tower;
147         struct epm_twr_p_t towers[20];
148         struct epm_tower t;
149         uint32_t num_towers;
150         uint32_t port;
151         uint32_t i;
152         long int p;
153         const char *tmp;
154         const char *ip;
155         char *ptr;
156         NTSTATUS status;
157
158         torture_comment(tctx, "Testing epm_Map\n");
159
160         ZERO_STRUCT(uuid);
161         ZERO_STRUCT(entry_handle);
162
163         r.in.object = &uuid;
164         r.in.map_tower = &map_tower;
165         r.in.entry_handle = &entry_handle;
166         r.out.entry_handle = &entry_handle;
167         r.in.max_towers = 10;
168         r.out.towers = towers;
169         r.out.num_towers = &num_towers;
170
171         /* Create map tower */
172         map_binding.transport = NCACN_IP_TCP;
173         map_binding.object = map_syntax;
174         map_binding.host = "0.0.0.0";
175         map_binding.endpoint = "135";
176
177         status = dcerpc_binding_build_tower(tctx, &map_binding,
178                                             &map_tower.tower);
179         torture_assert_ntstatus_ok(tctx, status,
180                                    "epm_Map_tcpip failed: can't create map_tower");
181
182         torture_comment(tctx,
183                         "epm_Map request for '%s':\n",
184                         ndr_interface_name(&map_syntax.uuid, map_syntax.if_version));
185         display_tower(tctx, &r.in.map_tower->tower);
186
187         status = dcerpc_epm_Map_r(h, tctx, &r);
188
189         torture_assert_ntstatus_ok(tctx, status, "epm_Map_simple failed");
190         torture_assert(tctx, r.out.result == EPMAPPER_STATUS_OK,
191                        "epm_Map_tcpip failed: result is not EPMAPPER_STATUS_OK");
192
193         /* Check the result */
194         t = r.out.towers[0].twr->tower;
195
196         /* Check if we got the correct RPC interface identifier */
197         dcerpc_floor_get_lhs_data(&t.floors[0], &syntax);
198         torture_assert(tctx, ndr_syntax_id_equal(&syntax, &map_syntax),
199                        "epm_Map_tcpip failed: Interface identifier mismatch");
200
201         torture_comment(tctx,
202                         "epm_Map_tcpip response for '%s':\n",
203                         ndr_interface_name(&syntax.uuid, syntax.if_version));
204
205         dcerpc_floor_get_lhs_data(&t.floors[1], &syntax);
206         torture_assert(tctx, ndr_syntax_id_equal(&syntax, &ndr_transfer_syntax),
207                        "epm_Map_tcpip failed: floor 2 is not NDR encoded");
208
209         torture_assert(tctx, t.floors[2].lhs.protocol == EPM_PROTOCOL_NCACN,
210                        "epm_Map_tcpip failed: floor 3 is not NCACN_IP_TCP");
211
212         tmp = dcerpc_floor_get_rhs_data(tctx, &t.floors[3]);
213         p = strtol(tmp, &ptr, 10);
214         port = p & 0xffff;
215         torture_assert(tctx, port > 1024 && port < 65535, "epm_Map_tcpip failed");
216
217         ip = dcerpc_floor_get_rhs_data(tctx, &t.floors[4]);
218         torture_assert(tctx, is_ipaddress(ip), "epm_Map_tcpip failed");
219
220         for (i = 0; i < *r.out.num_towers; i++) {
221                 if (r.out.towers[i].twr) {
222                         display_tower(tctx, &t);
223                 }
224         }
225
226         return true;
227 }
228
229 static bool test_Map_full(struct torture_context *tctx,
230                            struct dcerpc_pipe *p)
231 {
232         const struct ndr_syntax_id obj = {
233                 { 0x8a885d04, 0x1ceb, 0x11c9, {0x9f, 0xe8}, {0x08,0x00,0x2b,0x10,0x48,0x60} },
234                 2
235         };
236         struct dcerpc_binding_handle *h = p->binding_handle;
237         const char *annotation = "SMBTORTURE";
238         struct dcerpc_binding *b;
239         NTSTATUS status;
240         bool ok;
241
242         status = dcerpc_parse_binding(tctx, "ncacn_ip_tcp:216.83.154.106[41768]", &b);
243         torture_assert_ntstatus_ok(tctx,
244                                    status,
245                                    "Unable to generate dcerpc_binding struct");
246         b->object = obj;
247
248         ok = test_Insert(tctx, h, obj, annotation, b);
249         if (!ok) {
250                 return false;
251         }
252
253         ok = test_Map_tcpip(tctx, h, obj);
254         if (!ok) {
255                 return false;
256         }
257
258         ok = test_Delete(tctx, h, annotation, b);
259         if (!ok) {
260                 return false;
261         }
262
263         return true;
264 }
265
266 static bool test_Map_display(struct dcerpc_binding_handle *b,
267                              struct torture_context *tctx,
268                              struct epm_twr_t *twr)
269 {
270         NTSTATUS status;
271         struct epm_Map r;
272         struct GUID uuid;
273         struct policy_handle handle;
274         struct ndr_syntax_id syntax;
275         uint32_t num_towers;
276         uint32_t i;
277
278         ZERO_STRUCT(uuid);
279         ZERO_STRUCT(handle);
280
281         r.in.object = &uuid;
282         r.in.map_tower = twr;
283         r.in.entry_handle = &handle;
284         r.out.entry_handle = &handle;
285         r.in.max_towers = 10;
286         r.out.num_towers = &num_towers;
287
288         dcerpc_floor_get_lhs_data(&twr->tower.floors[0], &syntax);
289
290         torture_comment(tctx,
291                         "epm_Map results for '%s':\n",
292                         ndr_interface_name(&syntax.uuid, syntax.if_version));
293
294         /* RPC protocol identifier */
295         twr->tower.floors[2].lhs.protocol = EPM_PROTOCOL_NCACN;
296         twr->tower.floors[2].lhs.lhs_data = data_blob(NULL, 0);
297         twr->tower.floors[2].rhs.ncacn.minor_version = 0;
298
299         /* Port address */
300         twr->tower.floors[3].lhs.protocol = EPM_PROTOCOL_TCP;
301         twr->tower.floors[3].lhs.lhs_data = data_blob(NULL, 0);
302         twr->tower.floors[3].rhs.tcp.port = 0;
303
304         /* Transport */
305         twr->tower.floors[4].lhs.protocol = EPM_PROTOCOL_IP;
306         twr->tower.floors[4].lhs.lhs_data = data_blob(NULL, 0);
307         twr->tower.floors[4].rhs.ip.ipaddr = "0.0.0.0";
308
309         status = dcerpc_epm_Map_r(b, tctx, &r);
310         if (NT_STATUS_IS_OK(status) && r.out.result == 0) {
311                 for (i=0;i<*r.out.num_towers;i++) {
312                         if (r.out.towers[i].twr) {
313                                 display_tower(tctx, &r.out.towers[i].twr->tower);
314                         }
315                 }
316         }
317
318         twr->tower.floors[3].lhs.protocol = EPM_PROTOCOL_HTTP;
319         twr->tower.floors[3].lhs.lhs_data = data_blob(NULL, 0);
320         twr->tower.floors[3].rhs.http.port = 0;
321
322         status = dcerpc_epm_Map_r(b, tctx, &r);
323         if (NT_STATUS_IS_OK(status) && r.out.result == 0) {
324                 for (i=0;i<*r.out.num_towers;i++) {
325                         if (r.out.towers[i].twr) {
326                                 display_tower(tctx, &r.out.towers[i].twr->tower);
327                         }
328                 }
329         }
330
331         twr->tower.floors[3].lhs.protocol = EPM_PROTOCOL_UDP;
332         twr->tower.floors[3].lhs.lhs_data = data_blob(NULL, 0);
333         twr->tower.floors[3].rhs.http.port = 0;
334
335         status = dcerpc_epm_Map_r(b, tctx, &r);
336         if (NT_STATUS_IS_OK(status) && r.out.result == 0) {
337                 for (i=0;i<*r.out.num_towers;i++) {
338                         if (r.out.towers[i].twr) {
339                                 display_tower(tctx, &r.out.towers[i].twr->tower);
340                         }
341                 }
342         }
343
344         twr->tower.floors[3].lhs.protocol = EPM_PROTOCOL_SMB;
345         twr->tower.floors[3].lhs.lhs_data = data_blob(NULL, 0);
346         twr->tower.floors[3].rhs.smb.unc = "";
347
348         twr->tower.floors[4].lhs.protocol = EPM_PROTOCOL_NETBIOS;
349         twr->tower.floors[4].lhs.lhs_data = data_blob(NULL, 0);
350         twr->tower.floors[4].rhs.netbios.name = "";
351
352         status = dcerpc_epm_Map_r(b, tctx, &r);
353         if (NT_STATUS_IS_OK(status) && r.out.result == 0) {
354                 for (i = 0; i < *r.out.num_towers; i++) {
355                         if (r.out.towers[i].twr) {
356                                 display_tower(tctx, &r.out.towers[i].twr->tower);
357                         }
358                 }
359         }
360
361         /* FIXME: Extend to do other protocols as well (ncacn_unix_stream, ncalrpc) */
362
363         return true;
364 }
365
366 static bool test_Map_simple(struct torture_context *tctx,
367                             struct dcerpc_pipe *p)
368 {
369         NTSTATUS status;
370         struct epm_Lookup r;
371         struct policy_handle entry_handle;
372         uint32_t num_ents = 0;
373         struct dcerpc_binding_handle *h = p->binding_handle;
374
375         ZERO_STRUCT(entry_handle);
376
377         torture_comment(tctx, "Testing epm_Map\n");
378
379         /* get all elements */
380         r.in.inquiry_type = RPC_C_EP_ALL_ELTS;
381         r.in.object = NULL;
382         r.in.interface_id = NULL;
383         r.in.vers_option = RPC_C_VERS_ALL;
384
385         r.in.entry_handle = &entry_handle;
386         r.in.max_ents = 10;
387
388         r.out.entry_handle = &entry_handle;
389         r.out.num_ents = &num_ents;
390
391         do {
392                 int i;
393
394                 status = dcerpc_epm_Lookup_r(h, tctx, &r);
395                 if (!NT_STATUS_IS_OK(status) ||
396                     r.out.result != EPMAPPER_STATUS_OK) {
397                         break;
398                 }
399
400                 for (i = 0; i < *r.out.num_ents; i++) {
401                         if (r.out.entries[i].tower->tower.num_floors == 5) {
402                                 test_Map_display(h, tctx, r.out.entries[i].tower);
403                         }
404                 }
405         } while (NT_STATUS_IS_OK(status) &&
406                  r.out.result == EPMAPPER_STATUS_OK &&
407                  *r.out.num_ents == r.in.max_ents &&
408                  !policy_handle_empty(&entry_handle));
409
410         torture_assert_ntstatus_ok(tctx, status, "epm_Map_simple failed");
411
412         torture_assert(tctx,
413                        policy_handle_empty(&entry_handle),
414                        "epm_Map_simple failed - The policy handle should be emtpy.");
415
416         return true;
417 }
418
419 static bool test_LookupHandleFree(struct torture_context *tctx,
420                                   struct dcerpc_binding_handle *h,
421                                   struct policy_handle *entry_handle) {
422         NTSTATUS status;
423         struct epm_LookupHandleFree r;
424
425         if (torture_setting_bool(tctx, "samba4", false)) {
426                 torture_skip(tctx, "Skip Insert test against Samba4");
427         }
428
429         if (policy_handle_empty(entry_handle)) {
430                 torture_comment(tctx,
431                                 "epm_LookupHandleFree failed - empty policy_handle\n");
432                 return false;
433         }
434
435         r.in.entry_handle = entry_handle;
436         r.out.entry_handle = entry_handle;
437
438         status = dcerpc_epm_LookupHandleFree_r(h, tctx, &r);
439         if (NT_STATUS_IS_ERR(status)) {
440                 torture_comment(tctx,
441                                 "epm_LookupHandleFree failed - %s\n",
442                                 nt_errstr(status));
443                 return false;
444         }
445
446         if (r.out.result != EPMAPPER_STATUS_OK) {
447                 torture_comment(tctx,
448                                 "epm_LookupHandleFree failed - internal error: "
449                                 "0x%.4x\n",
450                                 r.out.result);
451                 return false;
452         }
453
454         return true;
455 }
456
457 static bool test_Lookup_simple(struct torture_context *tctx,
458                                struct dcerpc_pipe *p)
459 {
460         NTSTATUS status;
461         struct epm_Lookup r;
462         struct policy_handle entry_handle;
463         uint32_t num_ents = 0;
464         struct dcerpc_binding_handle *h = p->binding_handle;
465
466         ZERO_STRUCT(entry_handle);
467
468         torture_comment(tctx, "Testing epm_Lookup\n");
469
470         /* get all elements */
471         r.in.inquiry_type = RPC_C_EP_ALL_ELTS;
472         r.in.object = NULL;
473         r.in.interface_id = NULL;
474         r.in.vers_option = RPC_C_VERS_ALL;
475
476         r.in.entry_handle = &entry_handle;
477         r.in.max_ents = 10;
478
479         r.out.entry_handle = &entry_handle;
480         r.out.num_ents = &num_ents;
481
482         do {
483                 int i;
484
485                 status = dcerpc_epm_Lookup_r(h, tctx, &r);
486                 if (!NT_STATUS_IS_OK(status) ||
487                     r.out.result != EPMAPPER_STATUS_OK) {
488                         break;
489                 }
490
491                 torture_comment(tctx,
492                                 "epm_Lookup returned %d events, entry_handle: %s\n",
493                                 *r.out.num_ents,
494                                 GUID_string(tctx, &entry_handle.uuid));
495
496                 for (i = 0; i < *r.out.num_ents; i++) {
497                         torture_comment(tctx,
498                                         "\n  Found '%s'\n",
499                                         r.out.entries[i].annotation);
500
501                         display_tower(tctx, &r.out.entries[i].tower->tower);
502                 }
503         } while (NT_STATUS_IS_OK(status) &&
504                  r.out.result == EPMAPPER_STATUS_OK &&
505                  *r.out.num_ents == r.in.max_ents &&
506                  !policy_handle_empty(&entry_handle));
507
508         torture_assert_ntstatus_ok(tctx, status, "epm_Lookup failed");
509         torture_assert(tctx, r.out.result == EPMAPPER_STATUS_NO_MORE_ENTRIES, "epm_Lookup failed");
510
511         torture_assert(tctx,
512                        policy_handle_empty(&entry_handle),
513                        "epm_Lookup failed - The policy handle should be emtpy.");
514
515         return true;
516 }
517
518 /*
519  * This test starts a epm_Lookup request, but doesn't finish the
520  * call terminates the search. So it will call epm_LookupHandleFree.
521  */
522 static bool test_Lookup_terminate_search(struct torture_context *tctx,
523                                          struct dcerpc_pipe *p)
524 {
525         bool ok;
526         NTSTATUS status;
527         struct epm_Lookup r;
528         struct policy_handle entry_handle;
529         uint32_t i, num_ents = 0;
530         struct dcerpc_binding_handle *h = p->binding_handle;
531
532         ZERO_STRUCT(entry_handle);
533
534         torture_comment(tctx, "Testing epm_Lookup and epm_LookupHandleFree\n");
535
536         /* get all elements */
537         r.in.inquiry_type = RPC_C_EP_ALL_ELTS;
538         r.in.object = NULL;
539         r.in.interface_id = NULL;
540         r.in.vers_option = RPC_C_VERS_ALL;
541
542         r.in.entry_handle = &entry_handle;
543         r.in.max_ents = 2;
544
545         r.out.entry_handle = &entry_handle;
546         r.out.num_ents = &num_ents;
547
548         status = dcerpc_epm_Lookup_r(h, tctx, &r);
549
550         torture_assert_ntstatus_ok(tctx, status, "epm_Lookup failed");
551         torture_assert(tctx, r.out.result == EPMAPPER_STATUS_OK, "epm_Lookup failed");
552
553         torture_comment(tctx,
554                         "epm_Lookup returned %d events, entry_handle: %s\n",
555                         *r.out.num_ents,
556                         GUID_string(tctx, &entry_handle.uuid));
557
558         for (i = 0; i < *r.out.num_ents; i++) {
559                 torture_comment(tctx,
560                                 "\n  Found '%s'\n",
561                                 r.out.entries[i].annotation);
562         }
563
564         ok = test_LookupHandleFree(tctx,
565                                    h,
566                                    &entry_handle);
567         if (!ok) {
568                 return false;
569         }
570
571         return true;
572 }
573
574 static bool test_Insert_noreplace(struct torture_context *tctx,
575                                   struct dcerpc_pipe *p)
576 {
577         bool ok;
578         NTSTATUS status;
579         struct epm_Insert r;
580         struct dcerpc_binding *b;
581         struct dcerpc_binding_handle *h = p->binding_handle;
582
583         torture_comment(tctx, "Testing epm_Insert(noreplace) and epm_Delete\n");
584
585         if (torture_setting_bool(tctx, "samba4", false)) {
586                 torture_skip(tctx, "Skip Insert test against Samba4");
587         }
588
589         r.in.num_ents = 1;
590         r.in.entries = talloc_array(tctx, struct epm_entry_t, 1);
591
592         ZERO_STRUCT(r.in.entries[0].object);
593         r.in.entries[0].annotation = "smbtorture endpoint";
594
595         status = dcerpc_parse_binding(tctx, "ncalrpc:[SMBTORTURE]", &b);
596         torture_assert_ntstatus_ok(tctx,
597                                    status,
598                                    "Unable to generate dcerpc_binding struct");
599
600         r.in.entries[0].tower = talloc(tctx, struct epm_twr_t);
601
602         status = dcerpc_binding_build_tower(tctx,
603                                             b,
604                                             &r.in.entries[0].tower->tower);
605         torture_assert_ntstatus_ok(tctx,
606                                    status,
607                                    "Unable to build tower from binding struct");
608         r.in.replace = 0;
609
610         status = dcerpc_epm_Insert_r(h, tctx, &r);
611         torture_assert_ntstatus_ok(tctx, status, "epm_Insert failed");
612
613         torture_assert(tctx, r.out.result == 0, "epm_Insert failed");
614
615         ok = test_Delete(tctx, h, "smbtorture", b);
616         if (!ok) {
617                 return false;
618         }
619
620         return true;
621 }
622
623 #if 0
624 /*
625  * The MS-RPCE documentation states that this function isn't implemented and
626  * SHOULD NOT be called by a client.
627  */
628 static bool test_InqObject(struct torture_context *tctx, struct dcerpc_pipe *p)
629 {
630         NTSTATUS status;
631         struct epm_InqObject r;
632         struct dcerpc_binding_handle *b = p->binding_handle;
633
634         r.in.epm_object = talloc(tctx, struct GUID);
635         *r.in.epm_object = ndr_table_epmapper.syntax_id.uuid;
636
637         status = dcerpc_epm_InqObject_r(b, tctx, &r);
638         torture_assert_ntstatus_ok(tctx, status, "InqObject failed");
639
640         return true;
641 }
642 #endif
643
644 struct torture_suite *torture_rpc_epmapper(TALLOC_CTX *mem_ctx)
645 {
646         struct torture_suite *suite = torture_suite_create(mem_ctx, "epmapper");
647         struct torture_rpc_tcase *tcase;
648
649         tcase = torture_suite_add_rpc_iface_tcase(suite,
650                                                   "epmapper",
651                                                   &ndr_table_epmapper);
652
653         /* This is a stack */
654         torture_rpc_tcase_add_test(tcase,
655                                    "Map_simple",
656                                    test_Map_simple);
657         torture_rpc_tcase_add_test(tcase,
658                                    "Map_full",
659                                    test_Map_full);
660         torture_rpc_tcase_add_test(tcase,
661                                    "Lookup_simple",
662                                    test_Lookup_simple);
663         torture_rpc_tcase_add_test(tcase,
664                                    "Lookup_terminate_search",
665                                    test_Lookup_terminate_search);
666         torture_rpc_tcase_add_test(tcase,
667                                    "Insert_noreplace",
668                                    test_Insert_noreplace);
669
670         return suite;
671 }
672
673 /* vim: set ts=8 sw=8 noet cindent syntax=c.doxygen: */