Skip to content

Commit 2dbde70

Browse files
committed
minor fixes in wiremock extension
1 parent bd1956c commit 2dbde70

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

localstack-wiremock/localstack_wiremock/utils/docker.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
from typing import Callable
55
import requests
66

7-
from localstack_wiremock.utils.h2_proxy import (
8-
apply_http2_patches_for_grpc_support,
9-
ProxyRequestMatcher,
10-
)
117
from localstack.utils.docker_utils import DOCKER_CLIENT
128
from localstack.extensions.api import Extension, http
139
from localstack.http import Request
@@ -24,7 +20,7 @@
2420
# TODO: merge utils with code in TypeDB extension over time ...
2521

2622

27-
class ProxiedDockerContainerExtension(Extension, ProxyRequestMatcher):
23+
class ProxiedDockerContainerExtension(Extension):
2824
name: str
2925
"""Name of this extension"""
3026
image_name: str
@@ -80,12 +76,6 @@ def update_gateway_routes(self, router: http.Router[http.RouteHandler]):
8076
resource = WithHost(self.host, [resource])
8177
router.add(resource)
8278

83-
# apply patches to serve HTTP/2 requests
84-
for port in self.http2_ports or []:
85-
apply_http2_patches_for_grpc_support(
86-
get_addressable_container_host(), port, self
87-
)
88-
8979
def on_platform_shutdown(self):
9080
self._remove_container()
9181

localstack-wiremock/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ dev = [
3535
]
3636

3737
[project.entry-points."localstack.extensions"]
38-
localstack_wiremock = "localstack_wiremock.extension:WireMockExtension"
38+
localstack-wiremock = "localstack_wiremock.extension:WireMockExtension"

0 commit comments

Comments
 (0)