Skip to content

Commit 44ffc7c

Browse files
JWCookalessio-locatelli
authored andcommitted
Replace httpbin with go-httpbin
1 parent 6fdc8b3 commit 44ffc7c

4 files changed

Lines changed: 6 additions & 9 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
- '3.10'
2727
- '3.9'
2828
services:
29-
nginx:
30-
image: kennethreitz/httpbin
29+
httpbin:
30+
image: mccutchen/go-httpbin
3131
ports:
32-
- 8080:80
32+
- 8080:8080
3333

3434
steps:
3535
# Install dependencies, with caching

‎docker-compose.yml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# Containers needed to test all backend services locally
22
services:
33
httpbin:
4-
image: kennethreitz/httpbin
4+
image: mccutchen/go-httpbin
55
container_name: httpbin
66
ports:
7-
# Use an unprivileged port to support running the Docker daemon as a non-root user (Rootless mode).
8-
# See https://docs.docker.com/engine/security/rootless/#networking-errors
9-
- ${HTTPBIN_CUSTOM_PORT:-8080}:80
7+
- ${HTTPBIN_CUSTOM_PORT:-8080}:8080
108

119
httpbin-custom:
1210
container_name: httpbin-custom

‎test/conftest.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
CACHE_NAME = 'pytest_cache'
1414
HTTPBIN_METHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE']
1515
HTTPBIN_FORMATS = [
16-
'brotli',
1716
'deflate',
1817
'deny',
1918
'encoding/utf8',

‎test/integration/base_backend_test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ async def test_cookies_with_redirect(self):
291291
session.cookie_jar.clear()
292292
await session.get(httpbin('cookies/set?test_cookie=value'))
293293

294-
cookies = session.cookie_jar.filter_cookies(httpbin())
294+
cookies = session.cookie_jar.filter_cookies(httpbin('cookies'))
295295
assert cookies['test_cookie'].value == 'value'
296296

297297
async def test_autoclose(self):

0 commit comments

Comments
 (0)