Compare commits

...

7 Commits

Author SHA1 Message Date
dgtlmoon
285a65ced4 wrong test check 2022-12-26 14:01:22 +01:00
dgtlmoon
467cd099e9 revert 2022-12-26 13:32:48 +01:00
dgtlmoon
794a6d59de was simply the wrong hostname 2022-12-26 13:31:43 +01:00
dgtlmoon
5f997e5d1b wtf 2022-12-26 10:07:24 +01:00
dgtlmoon
e412fd6146 hmm 2022-12-26 09:49:06 +01:00
dgtlmoon
c950ab5219 archive debug output 2022-12-26 09:29:22 +01:00
dgtlmoon
fcbda7829a hmm fixes the error on github? 2022-12-25 23:03:14 +01:00
3 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,6 @@ jobs:
cd changedetectionio
./run_proxy_tests.sh
cd ..
- name: Test changedetection.io container starts+runs basically without error
run: |

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 \
@@ -57,3 +57,5 @@ then
echo "Did not see a valid request to changedetection.io in the squid logs (while checking preferred proxy - squid two)"
exit 1
fi
docker kill squid-one squid-two squid-custom

View File

@@ -38,13 +38,12 @@ def test_select_custom(client, live_server):
res = client.get(url_for("index"))
assert b'Proxy Authentication Required' not in res.data
res = client.get(
url_for("preview_page", uuid="first"),
follow_redirects=True
)
# We should see something via proxy
assert b'HEAD' in res.data
assert b'<div class=""> - 0.' in res.data
#
# Now we should see the request in the container logs for "squid-squid-custom" because it will be the only default