Skip to content

Commit f34b6f4

Browse files
committed
Use QJazz in tests
1 parent f3d93eb commit f34b6f4

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
@@ -42,12 +42,12 @@ jobs:
4242
- name: "LEGACY"
4343
php: "8.1"
4444
pg-postgis: "14-3"
45-
qgis-server: "3.34"
45+
qgis-server: "qgis-ltr-eager"
4646
update-projects: "FALSE"
4747
- name: "BLEEDING_EDGE"
4848
php: "8.3"
4949
pg-postgis: "17-3"
50-
qgis-server: "3.40"
50+
qgis-server: "qgis-release-eager"
5151
update-projects: "TRUE"
5252
env:
5353
CYPRESS_CI: TRUE

tests/Makefile

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

8484
up: env
85-
docker compose up -V --force-recreate -d
85+
docker compose --profile=swagger --profile=webdav up -V --force-recreate -d
8686

8787
stop:
88-
docker compose stop
88+
docker compose --profile=swagger --profile=webdav stop
8989

9090
reset:
91-
docker compose down -v --remove-orphans
91+
docker compose --profile=swagger --profile=webdav down -v --remove-orphans
9292
./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)