| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
from confluent_kafka import DeserializingConsumer |
| 20 |
from confluent_kafka.avro import AvroConsumer |
| 21 |
from tests.common import TestUtils |
| 22 |
|
| 23 |
|
| 24 |
class TestDeserializingConsumer(DeserializingConsumer): |
| 25 |
def __init__(self, conf=None, **kwargs): |
| 26 |
TestUtils.update_conf_group_protocol(conf) |
| 27 |
TestUtils.remove_forbidden_conf_group_protocol_consumer(conf) |
| 28 |
super(TestDeserializingConsumer, self).__init__(conf, **kwargs) |
| 29 |
|
| 30 |
|
| 31 |
class TestAvroConsumer(AvroConsumer): |
| 32 |
def __init__(self, conf=None, **kwargs): |
| 33 |
TestUtils.update_conf_group_protocol(conf) |
| 34 |
TestUtils.remove_forbidden_conf_group_protocol_consumer(conf) |
| 35 |
super(TestAvroConsumer, self).__init__(conf, **kwargs) |