@@ -301,9 +301,11 @@ void flb_test_write_operation_index()
301
301
NULL );
302
302
303
303
/* Enable test mode */
304
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
305
- cb_check_write_op_index ,
306
- NULL , NULL , cb_flush_context );
304
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" ,
305
+ cb_check_write_op_index , NULL , NULL );
306
+ TEST_CHECK (ret == 0 );
307
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
308
+ cb_flush_context , NULL );
307
309
TEST_CHECK (ret == 0 );
308
310
309
311
/* Start */
@@ -346,9 +348,12 @@ void flb_test_write_operation_create()
346
348
NULL );
347
349
348
350
/* Enable test mode */
349
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
350
- cb_check_write_op_create ,
351
- NULL , NULL , cb_flush_context );
351
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" ,
352
+ cb_check_write_op_create ,
353
+ NULL , NULL );
354
+ TEST_CHECK (ret == 0 );
355
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
356
+ cb_flush_context , NULL );
352
357
TEST_CHECK (ret == 0 );
353
358
354
359
/* Start */
@@ -393,9 +398,12 @@ void flb_test_write_operation_update()
393
398
NULL );
394
399
395
400
/* Enable test mode */
396
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
397
- cb_check_write_op_update ,
398
- NULL , NULL , cb_flush_context );
401
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" ,
402
+ cb_check_write_op_update ,
403
+ NULL , NULL );
404
+ TEST_CHECK (ret == 0 );
405
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
406
+ cb_flush_context , NULL );
399
407
TEST_CHECK (ret == 0 );
400
408
401
409
/* Start */
@@ -440,9 +448,12 @@ void flb_test_write_operation_upsert()
440
448
NULL );
441
449
442
450
/* Enable test mode */
443
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
444
- cb_check_write_op_upsert ,
445
- NULL , NULL , cb_flush_context );
451
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" ,
452
+ cb_check_write_op_upsert ,
453
+ NULL , NULL );
454
+ TEST_CHECK (ret == 0 );
455
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
456
+ cb_flush_context , NULL );
446
457
TEST_CHECK (ret == 0 );
447
458
448
459
/* Start */
@@ -486,9 +497,11 @@ void flb_test_index_type()
486
497
NULL );
487
498
488
499
/* Enable test mode */
489
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
490
- cb_check_index_type ,
491
- NULL , NULL , cb_flush_context );
500
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" , cb_check_index_type ,
501
+ NULL , NULL );
502
+ TEST_CHECK (ret == 0 );
503
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
504
+ cb_flush_context , NULL );
492
505
TEST_CHECK (ret == 0 );
493
506
494
507
/* Start */
@@ -533,9 +546,12 @@ void flb_test_logstash_format()
533
546
NULL );
534
547
535
548
/* Enable test mode */
536
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
537
- cb_check_logstash_format ,
538
- NULL , NULL , cb_flush_context );
549
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" ,
550
+ cb_check_logstash_format ,
551
+ NULL , NULL );
552
+ TEST_CHECK (ret == 0 );
553
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
554
+ cb_flush_context , NULL );
539
555
TEST_CHECK (ret == 0 );
540
556
541
557
/* Start */
@@ -581,9 +597,12 @@ void flb_test_logstash_format_nanos()
581
597
NULL );
582
598
583
599
/* Enable test mode */
584
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
585
- cb_check_logstash_format_nanos ,
586
- NULL , NULL , cb_flush_context );
600
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" ,
601
+ cb_check_logstash_format_nanos ,
602
+ NULL , NULL );
603
+ TEST_CHECK (ret == 0 );
604
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
605
+ cb_flush_context , NULL );
587
606
TEST_CHECK (ret == 0 );
588
607
589
608
/* Start */
@@ -627,9 +646,11 @@ void flb_test_tag_key()
627
646
NULL );
628
647
629
648
/* Enable test mode */
630
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
631
- cb_check_tag_key ,
632
- NULL , NULL , cb_flush_context );
649
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" , cb_check_tag_key ,
650
+ NULL , NULL );
651
+ TEST_CHECK (ret == 0 );
652
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
653
+ cb_flush_context , NULL );
633
654
TEST_CHECK (ret == 0 );
634
655
635
656
/* Start */
@@ -672,9 +693,11 @@ void flb_test_replace_dots()
672
693
NULL );
673
694
674
695
/* Enable test mode */
675
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
676
- cb_check_replace_dots ,
677
- NULL , NULL , cb_flush_context );
696
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" , cb_check_replace_dots ,
697
+ NULL , NULL );
698
+ TEST_CHECK (ret == 0 );
699
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
700
+ cb_flush_context , NULL );
678
701
TEST_CHECK (ret == 0 );
679
702
680
703
/* Start */
@@ -717,9 +740,11 @@ void flb_test_id_key()
717
740
NULL );
718
741
719
742
/* Enable test mode */
720
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
721
- cb_check_id_key ,
722
- NULL , NULL , cb_flush_context );
743
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" , cb_check_id_key ,
744
+ NULL , NULL );
745
+ TEST_CHECK (ret == 0 );
746
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
747
+ cb_flush_context , NULL );
723
748
TEST_CHECK (ret == 0 );
724
749
725
750
/* Start */
@@ -772,9 +797,11 @@ void flb_test_div0()
772
797
NULL );
773
798
774
799
/* Enable test mode */
775
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
776
- cb_check_nothing ,
777
- NULL , NULL , cb_flush_context );
800
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" , cb_check_nothing ,
801
+ NULL , NULL );
802
+ TEST_CHECK (ret == 0 );
803
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
804
+ cb_flush_context , NULL );
778
805
TEST_CHECK (ret == 0 );
779
806
780
807
/* Start */
@@ -853,9 +880,11 @@ void flb_test_long_index()
853
880
NULL );
854
881
855
882
/* Enable test mode */
856
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
857
- cb_check_long_index ,
858
- NULL , NULL , cb_flush_context );
883
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" , cb_check_long_index ,
884
+ NULL , NULL );
885
+ TEST_CHECK (ret == 0 );
886
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
887
+ cb_flush_context , NULL );
859
888
TEST_CHECK (ret == 0 );
860
889
861
890
/* Start */
@@ -901,9 +930,12 @@ void flb_test_logstash_prefix_separator()
901
930
NULL );
902
931
903
932
/* Enable test mode */
904
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
905
- cb_check_logstash_prefix_separator ,
906
- NULL , NULL , cb_flush_context );
933
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" ,
934
+ cb_check_logstash_prefix_separator ,
935
+ NULL , NULL );
936
+ TEST_CHECK (ret == 0 );
937
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
938
+ cb_flush_context , NULL );
907
939
TEST_CHECK (ret == 0 );
908
940
909
941
/* Start */
@@ -957,9 +989,12 @@ void flb_test_upstream_write_operation()
957
989
NULL );
958
990
959
991
/* Enable test mode */
960
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
961
- cb_check_write_op_index ,
962
- NULL , NULL , cb_flush_context );
992
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" ,
993
+ cb_check_write_op_index ,
994
+ NULL , NULL );
995
+ TEST_CHECK (ret == 0 );
996
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
997
+ cb_flush_context , NULL );
963
998
TEST_CHECK (ret == 0 );
964
999
965
1000
/* Start */
@@ -1013,9 +1048,11 @@ void flb_test_upstream_index_type()
1013
1048
NULL );
1014
1049
1015
1050
/* Enable test mode */
1016
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
1017
- cb_check_index_type ,
1018
- NULL , NULL , cb_flush_context );
1051
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" , cb_check_index_type ,
1052
+ NULL , NULL );
1053
+ TEST_CHECK (ret == 0 );
1054
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
1055
+ cb_flush_context , NULL );
1019
1056
TEST_CHECK (ret == 0 );
1020
1057
1021
1058
/* Start */
@@ -1078,9 +1115,12 @@ void flb_test_upstream_logstash_format()
1078
1115
NULL );
1079
1116
1080
1117
/* Enable test mode */
1081
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
1082
- cb_check_logstash_prefix_separator ,
1083
- NULL , NULL , cb_flush_context );
1118
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" ,
1119
+ cb_check_logstash_prefix_separator ,
1120
+ NULL , NULL );
1121
+ TEST_CHECK (ret == 0 );
1122
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
1123
+ cb_flush_context , NULL );
1084
1124
TEST_CHECK (ret == 0 );
1085
1125
1086
1126
/* Start */
@@ -1137,9 +1177,11 @@ void flb_test_upstream_replace_dots()
1137
1177
NULL );
1138
1178
1139
1179
/* Enable test mode */
1140
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
1141
- cb_check_replace_dots ,
1142
- NULL , NULL , cb_flush_context );
1180
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" , cb_check_replace_dots ,
1181
+ NULL , NULL );
1182
+ TEST_CHECK (ret == 0 );
1183
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
1184
+ cb_flush_context , NULL );
1143
1185
TEST_CHECK (ret == 0 );
1144
1186
1145
1187
/* Start */
@@ -1190,9 +1232,11 @@ void flb_test_upstream_id_key()
1190
1232
NULL );
1191
1233
1192
1234
/* Enable test mode */
1193
- ret = flb_output_set_test_with_ctx_callback (ctx , out_ffd , "formatter" ,
1194
- cb_check_id_key ,
1195
- NULL , NULL , cb_flush_context );
1235
+ ret = flb_output_set_test (ctx , out_ffd , "formatter" , cb_check_id_key ,
1236
+ NULL , NULL );
1237
+ TEST_CHECK (ret == 0 );
1238
+ ret = flb_output_set_test_flush_ctx_callback (ctx , out_ffd , "formatter" ,
1239
+ cb_flush_context , NULL );
1196
1240
TEST_CHECK (ret == 0 );
1197
1241
1198
1242
/* Start */
0 commit comments