@@ -57,7 +57,7 @@ func TestHandler_Kafka(t *testing.T) {
5757 {
5858 name : "get kafka services" ,
5959 app : func () * runtime.App {
60- app := runtime .New (& static.Config {})
60+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
6161 _ , _ = app .Kafka .Add (& dynamic.Config {
6262 Info : dynamic.ConfigInfo {Url : try .MustUrl ("kafka.yaml" )},
6363 Data : asyncapi3test .NewConfig (
@@ -91,7 +91,7 @@ func TestHandler_Kafka(t *testing.T) {
9191 {
9292 name : "get specific" ,
9393 app : func () * runtime.App {
94- app := runtime .New (& static.Config {})
94+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
9595 cfg := & dynamic.Config {
9696 Info : dynamictest .NewConfigInfo (),
9797 Data : asyncapi3test .NewConfig (
@@ -221,7 +221,7 @@ func TestHandler_Kafka(t *testing.T) {
221221 {
222222 name : "get specific with group" ,
223223 app : func () * runtime.App {
224- app := runtime .New (& static.Config {})
224+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
225225 app .Kafka .Set ("foo" , getKafkaInfoWithGroup (asyncapi3test .NewConfig (
226226 asyncapi3test .WithInfo ("foo" , "bar" , "1.0" ),
227227 asyncapi3test .WithServer ("foo" , "kafka" , "foo.bar" ),
@@ -246,7 +246,7 @@ func TestHandler_Kafka(t *testing.T) {
246246 {
247247 name : "get specific with group no generation" ,
248248 app : func () * runtime.App {
249- app := runtime .New (& static.Config {})
249+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
250250 app .Kafka .Set ("foo" , getKafkaInfoWithGroup (asyncapi3test .NewConfig (
251251 asyncapi3test .WithInfo ("foo" , "bar" , "1.0" ),
252252 asyncapi3test .WithServer ("foo" , "kafka" , "foo.bar" ),
@@ -273,7 +273,7 @@ func TestHandler_Kafka(t *testing.T) {
273273 return t1
274274 }
275275
276- app := runtime .New (& static.Config {})
276+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
277277 app .Kafka .Set ("foo" , getKafkaInfoWithGroup (asyncapi3test .NewConfig (
278278 asyncapi3test .WithInfo ("foo" , "bar" , "1.0" ),
279279 asyncapi3test .WithServer ("foo" , "kafka" , "foo.bar" ),
@@ -321,7 +321,7 @@ func TestHandler_Kafka(t *testing.T) {
321321 {
322322 name : "get specific with topic and openapi schema" ,
323323 app : func () * runtime.App {
324- app := runtime .New (& static.Config {})
324+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
325325 app .Kafka .Set ("foo" , getKafkaInfo (asyncapi3test .NewConfig (
326326 asyncapi3test .WithInfo ("foo" , "bar" , "1.0" ),
327327 asyncapi3test .WithChannel ("foo" ,
@@ -369,7 +369,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
369369 {
370370 name : "get kafka topics but empty" ,
371371 app : func () * runtime.App {
372- app := runtime .New (& static.Config {})
372+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
373373 _ , _ = app .Kafka .Add (& dynamic.Config {
374374 Info : dynamic.ConfigInfo {Url : try .MustUrl ("kafka.yaml" )},
375375 Data : asyncapi3test .NewConfig (
@@ -394,7 +394,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
394394 {
395395 name : "get kafka topics with one topic" ,
396396 app : func () * runtime.App {
397- app := runtime .New (& static.Config {})
397+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
398398 _ , _ = app .Kafka .Add (& dynamic.Config {
399399 Info : dynamic.ConfigInfo {Url : try .MustUrl ("kafka.yaml" )},
400400 Data : asyncapi3test .NewConfig (
@@ -424,7 +424,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
424424 {
425425 name : "get specific kafka topic" ,
426426 app : func () * runtime.App {
427- app := runtime .New (& static.Config {})
427+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
428428 _ , _ = app .Kafka .Add (& dynamic.Config {
429429 Info : dynamic.ConfigInfo {Url : try .MustUrl ("kafka.yaml" )},
430430 Data : asyncapi3test .NewConfig (
@@ -454,7 +454,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
454454 {
455455 name : "get specific kafka topic but not found" ,
456456 app : func () * runtime.App {
457- app := runtime .New (& static.Config {})
457+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
458458 _ , _ = app .Kafka .Add (& dynamic.Config {
459459 Info : dynamic.ConfigInfo {Url : try .MustUrl ("kafka.yaml" )},
460460 Data : asyncapi3test .NewConfig (
@@ -482,7 +482,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
482482 {
483483 name : "produce kafka message into topic" ,
484484 app : func () * runtime.App {
485- app := runtime .New (& static.Config {})
485+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
486486
487487 msg := asyncapi3test .NewMessage (
488488 asyncapi3test .WithContentType ("application/json" ),
@@ -532,7 +532,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
532532 {
533533 name : "produce kafka message into topic using binary" ,
534534 app : func () * runtime.App {
535- app := runtime .New (& static.Config {})
535+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
536536 _ , _ = app .Kafka .Add (& dynamic.Config {
537537 Info : dynamic.ConfigInfo {Url : try .MustUrl ("kafka.yaml" )},
538538 Data : asyncapi3test .NewConfig (
@@ -571,7 +571,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
571571 {
572572 name : "produce invalid kafka message into topic" ,
573573 app : func () * runtime.App {
574- app := runtime .New (& static.Config {})
574+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
575575
576576 msg := asyncapi3test .NewMessage (
577577 asyncapi3test .WithContentType ("application/json" ),
@@ -627,7 +627,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
627627 {
628628 name : "get kafka partitions" ,
629629 app : func () * runtime.App {
630- app := runtime .New (& static.Config {})
630+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
631631 _ , _ = app .Kafka .Add (& dynamic.Config {
632632 Info : dynamic.ConfigInfo {Url : try .MustUrl ("kafka.yaml" )},
633633 Data : asyncapi3test .NewConfig (
@@ -656,7 +656,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
656656 {
657657 name : "get specific kafka partition" ,
658658 app : func () * runtime.App {
659- app := runtime .New (& static.Config {})
659+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
660660 _ , _ = app .Kafka .Add (& dynamic.Config {
661661 Info : dynamic.ConfigInfo {Url : try .MustUrl ("kafka.yaml" )},
662662 Data : asyncapi3test .NewConfig (
@@ -685,7 +685,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
685685 {
686686 name : "produce kafka message into specific partition" ,
687687 app : func () * runtime.App {
688- app := runtime .New (& static.Config {})
688+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
689689
690690 msg := asyncapi3test .NewMessage (
691691 asyncapi3test .WithContentType ("application/json" ),
@@ -739,7 +739,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
739739 {
740740 name : "produce kafka message into specific partition using XML" ,
741741 app : func () * runtime.App {
742- app := runtime .New (& static.Config {})
742+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
743743
744744 msg := asyncapi3test .NewMessage (
745745 asyncapi3test .WithContentType ("application/xml" ),
@@ -801,7 +801,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
801801 {
802802 name : "produce kafka message into specific partition using plain XML string" ,
803803 app : func () * runtime.App {
804- app := runtime .New (& static.Config {})
804+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
805805
806806 msg := asyncapi3test .NewMessage (
807807 asyncapi3test .WithContentType ("application/xml" ),
@@ -853,7 +853,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
853853 {
854854 name : "produce invalid kafka message into specific partition using plain XML string" ,
855855 app : func () * runtime.App {
856- app := runtime .New (& static.Config {})
856+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
857857
858858 msg := asyncapi3test .NewMessage (
859859 asyncapi3test .WithContentType ("application/xml" ),
@@ -912,7 +912,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
912912 {
913913 name : "get records" ,
914914 app : func () * runtime.App {
915- app := runtime .New (& static.Config {})
915+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
916916
917917 msg := asyncapi3test .NewMessage (
918918 asyncapi3test .WithContentType ("application/json" ),
@@ -970,7 +970,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
970970 {
971971 name : "get specific record" ,
972972 app : func () * runtime.App {
973- app := runtime .New (& static.Config {})
973+ app := runtime .New (& static.Config {}, & dynamictest. Reader {} )
974974
975975 msg := asyncapi3test .NewMessage (
976976 asyncapi3test .WithContentType ("application/json" ),
@@ -1035,7 +1035,7 @@ func TestHandler_KafkaAPI(t *testing.T) {
10351035}
10361036
10371037func TestHandler_Kafka_NotFound (t * testing.T ) {
1038- h := api .New (runtime .New (& static.Config {}), static.Api {})
1038+ h := api .New (runtime .New (& static.Config {}, & dynamictest. Reader {} ), static.Api {})
10391039
10401040 try .Handler (t ,
10411041 http .MethodGet ,
0 commit comments