Abmelde-Agent: Fälle, Zeitlauf und Agent-Dienst (Vikunja 97) (#3)
This commit was merged in pull request #3.
This commit is contained in:
36 files changed
+4385
-8
No files matched your search
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/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
|
||||
# --init: python would be PID 1 and ignore SIGTERM, so a hanging run could not be stopped
|
||||
docker run --init --rm --network none --user pwuser -v "$PWD/agent/tests:/app/tests:ro" unsubscriber-agent-test \
|
||||
python -m pytest -q -p no:cacheprovider /app/tests
|
||||
Reference in new issue
Block a user