diff --git a/changedetectionio/run_socks_proxy_tests.sh b/changedetectionio/run_socks_proxy_tests.sh index 3bcc6852..813cc57d 100755 --- a/changedetectionio/run_socks_proxy_tests.sh +++ b/changedetectionio/run_socks_proxy_tests.sh @@ -15,13 +15,13 @@ docker run --network changedet-network -d --hostname socks5proxy-noauth --rm -p echo "---------------------------------- SOCKS5 -------------------" # SOCKS5 related - test from proxies.json docker run --network changedet-network \ - -v `pwd`/tests/proxy_socks5/proxies.json-example:/app/changedetectionio/test-datastore/proxies.json \ + -v `pwd`/tests/proxy_socks5/proxies.json-example:/tmp/proxies.json \ --rm \ -e "FLASK_SERVER_NAME=cdio" \ --hostname cdio \ -e "SOCKSTEST=proxiesjson" \ test-changedetectionio \ - bash -c 'cd changedetectionio && pytest --live-server-host=0.0.0.0 --live-server-port=5004 -s tests/proxy_socks5/test_socks5_proxy_sources.py' + bash -c 'cd changedetectionio && pytest --live-server-host=0.0.0.0 --live-server-port=5004 -s tests/proxy_socks5/test_socks5_proxy_sources.py --datastore-path /tmp' # SOCKS5 related - by manually entering in UI docker run --network changedet-network \ @@ -30,18 +30,18 @@ docker run --network changedet-network \ --hostname cdio \ -e "SOCKSTEST=manual" \ test-changedetectionio \ - bash -c 'cd changedetectionio && pytest --live-server-host=0.0.0.0 --live-server-port=5004 -s tests/proxy_socks5/test_socks5_proxy.py' + bash -c 'cd changedetectionio && pytest --live-server-host=0.0.0.0 --live-server-port=5004 -s tests/proxy_socks5/test_socks5_proxy.py --datastore-path /tmp' # SOCKS5 related - test from proxies.json via playwright - NOTE- PLAYWRIGHT DOESNT SUPPORT AUTHENTICATING PROXY docker run --network changedet-network \ -e "SOCKSTEST=manual-playwright" \ --hostname cdio \ -e "FLASK_SERVER_NAME=cdio" \ - -v `pwd`/tests/proxy_socks5/proxies.json-example-noauth:/app/changedetectionio/test-datastore/proxies.json \ + -v `pwd`/tests/proxy_socks5/proxies.json-example-noauth:/tmp/proxies.json \ -e "PLAYWRIGHT_DRIVER_URL=ws://sockpuppetbrowser:3000" \ --rm \ test-changedetectionio \ - bash -c 'cd changedetectionio && pytest --live-server-host=0.0.0.0 --live-server-port=5004 -s tests/proxy_socks5/test_socks5_proxy_sources.py' + bash -c 'cd changedetectionio && pytest --live-server-host=0.0.0.0 --live-server-port=5004 -s tests/proxy_socks5/test_socks5_proxy_sources.py --datastore-path /tmp' echo "socks5 server logs" docker logs socks5proxy