Agent: Browser-Schleife, HTTP-Dienst und Image

This commit is contained in:
Rsclub2_2 committed 2026-11-15 01:15:50 +01:00
1 parent 6df39d6b93
commit 181eab40fb
9 files changed
+715

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
# Builds the agent image and runs all agent tests in it (the browser tests need Playwright and Chromium).
# Call from the repository root. The container gets no network: the test pages are served on 127.0.0.1 inside it.
set -eu
# --load: with a docker-container buildx builder the image would otherwise stay in the build cache only
docker build -q --load -t unsubscriber-agent-test agent >/dev/null
docker run --rm --network none --user pwuser -v "$PWD/agent/tests:/app/tests:ro" unsubscriber-agent-test \
python -m pytest -q -p no:cacheprovider /app/tests