Skip to content

Commit 6a93a3a

Browse files
authored
fix: Adjust ping requests. (#52)
* fix: Adjust ping requests. * fix: Use correct GitHub teams. * chore: Update ESDB docker image.
1 parent b47bdb1 commit 6a93a3a

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/.dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ updates:
66
interval: weekly
77
open-pull-requests-limit: 10
88
assignees:
9-
- thenativeweb/internal_eventsourcingdb_dep
9+
- thenativeweb/internal_dev
1010
labels:
1111
- Dependencies
1212
commit-message:
@@ -18,7 +18,7 @@ updates:
1818
interval: weekly
1919
open-pull-requests-limit: 10
2020
assignees:
21-
- thenativeweb/internal_eventsourcingdb_dep
21+
- thenativeweb/internal_dev
2222
labels:
2323
- Dependencies
2424
commit-message:
@@ -30,7 +30,7 @@ updates:
3030
interval: "weekly"
3131
open-pull-requests-limit: 10
3232
assignees:
33-
- thenativeweb/internal_eventsourcingdb_dep
33+
- thenativeweb/internal_dev
3434
labels:
3535
- Dependencies
3636
commit-message:

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @thenativeweb/internal_eventsourcingdb_rw
1+
* @thenativeweb/internal_dev

eventsourcingdb_client_python/handlers/ping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
async def ping(client: AbstractBaseClient) -> None:
8-
response = await client.http_client.get('/ping')
8+
response = await client.http_client.get('/api/ping')
99
response_body = bytes.decode(await response.body.read(), encoding='utf-8')
1010

1111
if response.status_code != HTTPStatus.OK or response_body != HTTPStatus.OK.phrase:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/thenativeweb/eventsourcingdb:0.73.0
1+
FROM ghcr.io/thenativeweb/eventsourcingdb:0.79.0

tests/shared/start_local_http_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def attached_handler():
3030

3131
attach_handlers(attach_handler)
3232

33-
@self.app.get('/__python_test__/ping')
33+
@self.app.get('/__python_test__/api/ping')
3434
def ping():
3535
return "OK"
3636

@@ -48,7 +48,7 @@ async def ping_app() -> RetryResult[None]:
4848
async with session:
4949
try:
5050
response = await session.get(
51-
f'http://localhost:{local_http_server.port}/__python_test__/ping', timeout=1
51+
f'http://localhost:{local_http_server.port}/__python_test__/api/ping', timeout=1
5252
)
5353
except aiohttp.ClientError as error:
5454
return Retry(cause=error)

tests/test_ping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def handle_ping(response: Response) -> Response:
4949
response.set_data('OK')
5050
return response
5151

52-
attach_handler('/ping', 'GET', handle_ping)
52+
attach_handler('/api/ping', 'GET', handle_ping)
5353

5454
client = await get_client(attach_handlers)
5555

@@ -67,7 +67,7 @@ def handle_ping(response: Response) -> Response:
6767
response.set_data('not OK')
6868
return response
6969

70-
attach_handler('/ping', 'GET', handle_ping)
70+
attach_handler('/api/ping', 'GET', handle_ping)
7171

7272
client = await get_client(attach_handlers)
7373

0 commit comments

Comments
 (0)