Run desec playwright tests via docker compose, too

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl
2026-06-25 17:17:16 +02:00
parent ce8a7f6f46
commit bf5296b070
4 changed files with 37 additions and 119 deletions
+13
View File
@@ -34,6 +34,8 @@ services:
environment:
SKIP_DOMAIN_VALIDATION: ${SKIP_DOMAIN_VALIDATION-true}
APACHE_PORT: 11000
TESTING___DESEC_API_BASE: http://desec-mock:8090/api/v1
TESTING___DESEC_UPDATE_URL: http://desec-mock:8090/update
entrypoint: bash /start.sh
app-code-from-image:
@@ -56,6 +58,13 @@ services:
profiles:
- local-code
desec-mock:
image: docker.io/library/node:latest
volumes:
- ..:/app/php
working_dir: /app
command: node php/tests/desec-mock.mjs 8090 2>&1
test-runner-base:
image: mcr.microsoft.com/playwright:v1.56.1
volumes:
@@ -65,10 +74,14 @@ services:
- '9323:9323' # to view test reports
profiles:
- none
depends_on:
desec-mock:
condition: service_started
environment:
BASE_URL: "https://nextcloud-aio-mastercontainer:8080"
DEBUG: "pw:api"
CI: "true"
DESEC_MOCK_URL: "http://desec-mock:8090"
command: |-
bash -c "
cd tests
+6
View File
@@ -68,4 +68,10 @@ else
sleep 1
SKIP_DOMAIN_VALIDATION=false
run_tests tests/restore-instance.spec.js
sleep 1
run_tests tests/desec-register.spec.js
sleep 1
run_tests tests/desec-existing.spec.js
sleep 1
run_tests tests/desec-existing-slug.spec.js
fi