|
4 | 4 | from typing import Callable |
5 | 5 | import requests |
6 | 6 |
|
7 | | -from localstack_wiremock.utils.h2_proxy import ( |
8 | | - apply_http2_patches_for_grpc_support, |
9 | | - ProxyRequestMatcher, |
10 | | -) |
11 | 7 | from localstack.utils.docker_utils import DOCKER_CLIENT |
12 | 8 | from localstack.extensions.api import Extension, http |
13 | 9 | from localstack.http import Request |
|
24 | 20 | # TODO: merge utils with code in TypeDB extension over time ... |
25 | 21 |
|
26 | 22 |
|
27 | | -class ProxiedDockerContainerExtension(Extension, ProxyRequestMatcher): |
| 23 | +class ProxiedDockerContainerExtension(Extension): |
28 | 24 | name: str |
29 | 25 | """Name of this extension""" |
30 | 26 | image_name: str |
@@ -80,12 +76,6 @@ def update_gateway_routes(self, router: http.Router[http.RouteHandler]): |
80 | 76 | resource = WithHost(self.host, [resource]) |
81 | 77 | router.add(resource) |
82 | 78 |
|
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 | | - |
89 | 79 | def on_platform_shutdown(self): |
90 | 80 | self._remove_container() |
91 | 81 |
|
@@ -127,7 +117,9 @@ def start_container(self) -> None: |
127 | 117 |
|
128 | 118 | def _ping_endpoint(): |
129 | 119 | # TODO: allow defining a custom healthcheck endpoint ... |
130 | | - response = requests.get(f"http://{container_host}:{main_port}/") |
| 120 | + response = requests.get( |
| 121 | + f"http://{container_host}:{main_port}/__admin/health" |
| 122 | + ) |
131 | 123 | assert response.ok |
132 | 124 |
|
133 | 125 | try: |
|
0 commit comments