Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kafka V1 Support #8381

Merged
merged 15 commits into from
Dec 13, 2024
1 change: 1 addition & 0 deletions moto/backend_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
("iotdata", re.compile("https?://data\\.iot\\.(.+)\\.amazonaws.com")),
("iotdata", re.compile("https?://data-ats\\.iot\\.(.+)\\.amazonaws.com")),
("ivs", re.compile("https?://ivs\\.(.+)\\.amazonaws\\.com")),
("kafka", re.compile("https?://kafka\\.(.+)\\.amazonaws\\.com")),
("kinesis", re.compile("https?://kinesis\\.(.+)\\.amazonaws\\.com")),
("kinesis", re.compile("https?://(.+)\\.control-kinesis\\.(.+)\\.amazonaws\\.com")),
("kinesis", re.compile("https?://(.+)\\.data-kinesis\\.(.+)\\.amazonaws\\.com")),
Expand Down
4 changes: 4 additions & 0 deletions moto/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
from moto.iot.models import IoTBackend
from moto.iotdata.models import IoTDataPlaneBackend
from moto.ivs.models import IVSBackend
from moto.kafka.models import KafkaBackend
from moto.kinesis.models import KinesisBackend
from moto.kinesisvideo.models import KinesisVideoBackend
from moto.kinesisvideoarchivedmedia.models import KinesisVideoArchivedMediaBackend
Expand Down Expand Up @@ -258,6 +259,7 @@ def get_service_from_url(url: str) -> Optional[str]:
"Literal['iot']",
"Literal['iot-data']",
"Literal['ivs']",
"Literal['kafka']",
"Literal['kinesis']",
"Literal['kinesisvideo']",
"Literal['kinesis-video-archived-media']",
Expand Down Expand Up @@ -528,6 +530,8 @@ def get_backend(name: "Literal['iot-data']") -> "BackendDict[IoTDataPlaneBackend
@overload
def get_backend(name: "Literal['ivs']") -> "BackendDict[IVSBackend]": ...
@overload
def get_backend(name: "Literal['kafka']") -> "BackendDict[KafkaBackend]": ...
@overload
def get_backend(name: "Literal['kinesis']") -> "BackendDict[KinesisBackend]": ...
@overload
def get_backend(
Expand Down
1 change: 1 addition & 0 deletions moto/kafka/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .models import kafka_backends # noqa: F401
1 change: 1 addition & 0 deletions moto/kafka/exceptions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Exceptions raised by the kafka service."""
Loading
Loading