mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-06 16:15:34 +00:00
was simply the wrong hostname
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user