was simply the wrong hostname

This commit is contained in:
dgtlmoon
2022-12-26 13:31:43 +01:00
parent 5f997e5d1b
commit 794a6d59de
2 changed files with 1 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ docker run --network changedet-network -d --name squid-two --hostname squid-two
# Used for configuring a custom proxy URL via the UI
docker run --network changedet-network -d \
--name squid-custom \
--hostname squid-squid-custom \
--hostname squid-custom \
--rm \
-v `pwd`/tests/proxy_list/squid-auth.conf:/etc/squid/conf.d/debian.conf \
-v `pwd`/tests/proxy_list/squid-passwords.txt:/etc/squid3/passwords \

View File

@@ -38,16 +38,11 @@ def test_select_custom(client, live_server):
res = client.get(url_for("index"))
assert b'Proxy Authentication Required' not in res.data
with open('info2.html', 'wb') as f:
f.write(res.data)
res = client.get(
url_for("preview_page", uuid="first"),
follow_redirects=True
)
# We should see something via proxy
with open('info.html', 'wb') as f:
f.write(res.data)
assert b'HEAD' in res.data
#