Skip to content

Commit 966ad2e

Browse files
committed
Use QJazz in tests
1 parent 42e07a2 commit 966ad2e

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

.github/workflows/e2e_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
- name: "LEGACY"
3131
php: "8.2"
3232
pg-postgis: "14-3"
33-
qgis-server: "3.40"
33+
qgis-server: "qgis-ltr-eager"
3434
update-projects: "FALSE"
3535
- name: "BLEEDING_EDGE"
3636
php: "8.3"
3737
pg-postgis: "17-3"
38-
qgis-server: "3.40"
38+
qgis-server: "qgis-release-eager"
3939
update-projects: "TRUE"
4040
env:
4141
CYPRESS_CI: TRUE

tests/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ show-qgis-server-versions:
6363
docker run \
6464
-u $(LIZMAP_USER_ID):$(LIZMAP_GROUP_ID) \
6565
--rm -i \
66-
-e QGSRV_SERVER_PLUGINPATH=/srv/plugins \
66+
-e QGIS_PLUGINPATH=/srv/plugins \
6767
-e QGIS_PLUGIN_MANAGER_SKIP_SOURCES_FILE=True \
6868
-v $(shell pwd)/qgis-server-plugins:/srv/plugins \
6969
-v $(shell pwd)/:/src \
@@ -83,11 +83,11 @@ upgrade-projects:
8383
3liz/qjazz:${LZMQGSRVVERSION} \
8484

8585
up: env
86-
docker compose up -V --force-recreate -d
86+
docker compose --profile=swagger --profile=webdav up -V --force-recreate -d
8787

8888
stop:
89-
docker compose stop
89+
docker compose --profile=swagger --profile=webdav stop
9090

9191
reset:
92-
docker compose down -v --remove-orphans
92+
docker compose --profile=swagger --profile=webdav down -v --remove-orphans
9393
./lizmap-ctl clean

tests/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ services:
123123
- { type: bind, source: ./api, target: /api }
124124
ports:
125125
- ${SWAGGER_PORT}:8080
126+
profiles:
127+
- swagger
126128
volumes:
127129
pg_data:
128130
name: "lizmap${LZMBRANCH}_pg_data"

tests/docker-conf/qgis-server.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ route = "/"
3636

3737
[[backends.root.api]]
3838
endpoint = "lizmap"
39-
name = "Lizmap api"
39+
name = "Lizmap"
4040

tests/end2end/playwright.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default defineConfig({
44
testDir: './playwright',
55
snapshotPathTemplate: '{testDir}/__screenshots__/{testFilePath}/{arg}{ext}',
66
/* Maximum time one test can run for. */
7-
timeout: 30 * 1000,
7+
timeout: 10 * 1000,
88
expect: {
99
/**
1010
* Maximum time expect() should wait for the condition to be met.
@@ -17,7 +17,8 @@ export default defineConfig({
1717
/* Fail the build on CI if you accidentally left test.only in the source code. */
1818
forbidOnly: !!process.env.CI,
1919
/* Retry on CI only */
20-
retries: process.env.CI ? 2 : 0,
20+
/* retries: process.env.CI ? 2 : 0, */
21+
retries: 0,
2122
/* Opt out of parallel tests on CI. */
2223
workers: process.env.CI ? 2 : undefined,
2324
/* Reporter to use. */

tests/run-docker

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ "$CMD" == "reset" ]; then
1818
exit 0
1919
elif [ "$CMD" == "build" ]; then
2020
# install or update base images, to be sure we have the latest images
21-
docker compose pull
21+
docker compose --profile=webdav --profile=swagger pull
2222
fi
2323

24-
docker compose $CMD "$@"
24+
docker compose --profile=webdav --profile=swagger $CMD "$@"

0 commit comments

Comments
 (0)