@@ -91,7 +91,7 @@ def test_json_record_serialization(kafka_cluster, load_file):
91
91
92
92
"""
93
93
topic = kafka_cluster .create_topic ("serialization-json" )
94
- sr = kafka_cluster .schema_registry ({ 'url' : 'http://localhost:8081' } )
94
+ sr = kafka_cluster .schema_registry ()
95
95
96
96
schema_str = load_file ("product.json" )
97
97
value_serializer = JSONSerializer (schema_str , sr )
@@ -139,7 +139,7 @@ def test_json_record_serialization_incompatible(kafka_cluster, load_file):
139
139
140
140
"""
141
141
topic = kafka_cluster .create_topic ("serialization-json" )
142
- sr = kafka_cluster .schema_registry ({ 'url' : 'http://localhost:8081' } )
142
+ sr = kafka_cluster .schema_registry ()
143
143
144
144
schema_str = load_file ("product.json" )
145
145
value_serializer = JSONSerializer (schema_str , sr )
@@ -165,7 +165,7 @@ def test_json_record_serialization_no_title(kafka_cluster, load_file):
165
165
load_file (callable(str)): JSON Schema file reader
166
166
167
167
"""
168
- sr = kafka_cluster .schema_registry ({ 'url' : 'http://localhost:8081' } )
168
+ sr = kafka_cluster .schema_registry ()
169
169
schema_str = load_file ('not_title.json' )
170
170
171
171
with pytest .raises (ValueError ,
@@ -184,7 +184,7 @@ def test_json_record_serialization_custom(kafka_cluster, load_file):
184
184
185
185
"""
186
186
topic = kafka_cluster .create_topic ("serialization-json" )
187
- sr = kafka_cluster .schema_registry ({ 'url' : 'http://localhost:8081' } )
187
+ sr = kafka_cluster .schema_registry ()
188
188
189
189
schema_str = load_file ("product.json" )
190
190
value_serializer = JSONSerializer (schema_str , sr ,
@@ -228,7 +228,7 @@ def test_json_record_deserialization_mismatch(kafka_cluster, load_file):
228
228
229
229
"""
230
230
topic = kafka_cluster .create_topic ("serialization-json" )
231
- sr = kafka_cluster .schema_registry ({ 'url' : 'http://localhost:8081' } )
231
+ sr = kafka_cluster .schema_registry ()
232
232
233
233
schema_str = load_file ("contractor.json" )
234
234
schema_str2 = load_file ("product.json" )
0 commit comments