From a693a9c53fbfb79b3d890843a53dcb06e20503d7 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 28 Oct 2025 12:57:22 +0100 Subject: [PATCH] and this --- .github/workflows/test-stack-reusable-workflow.yml | 7 +++++++ changedetectionio/run_custom_browser_url_tests.sh | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/test-stack-reusable-workflow.yml b/.github/workflows/test-stack-reusable-workflow.yml index ed004d706..c536b0474 100644 --- a/.github/workflows/test-stack-reusable-workflow.yml +++ b/.github/workflows/test-stack-reusable-workflow.yml @@ -96,6 +96,7 @@ jobs: - name: Test built container with Pytest run: | + docker network inspect changedet-network >/dev/null 2>&1 || docker network create changedet-network docker run --name test-cdio-basic-tests --network changedet-network test-changedetectionio bash -c 'cd changedetectionio && ./run_basic_tests.sh' - name: Extract memory report and logs @@ -303,6 +304,12 @@ jobs: run: | docker load -i /tmp/test-changedetectionio.tar + - name: Spin up ancillary services + run: | + docker network create changedet-network + docker run --network changedet-network -d -e "LOG_LEVEL=TRACE" --cap-add=SYS_ADMIN --name sockpuppetbrowser --hostname sockpuppetbrowser --rm -p 3000:3000 dgtlmoon/sockpuppetbrowser:latest + docker run --network changedet-network -d -e "LOG_LEVEL=TRACE" --cap-add=SYS_ADMIN --name sockpuppetbrowser-custom-url --hostname sockpuppetbrowser-custom-url -p 3001:3000 --rm dgtlmoon/sockpuppetbrowser:latest + - name: Test custom browser URL run: | cd changedetectionio diff --git a/changedetectionio/run_custom_browser_url_tests.sh b/changedetectionio/run_custom_browser_url_tests.sh index b0b6e458d..f288de823 100755 --- a/changedetectionio/run_custom_browser_url_tests.sh +++ b/changedetectionio/run_custom_browser_url_tests.sh @@ -7,6 +7,7 @@ # enable debug set -x docker network inspect changedet-network >/dev/null 2>&1 || docker network create changedet-network +docker run --network changedet-network -d --hostname selenium -p 4444:4444 --rm --shm-size="2g" selenium/standalone-chrome:4 # A extra browser is configured, but we never chose to use it, so it should NOT show in the logs docker run --rm -e "PLAYWRIGHT_DRIVER_URL=ws://sockpuppetbrowser:3000" --network changedet-network test-changedetectionio bash -c 'cd changedetectionio;pytest tests/custom_browser_url/test_custom_browser_url.py::test_request_not_via_custom_browser_url'