From 9540a9ad03f4eb5efc38b45841eecf6c58e5d449 Mon Sep 17 00:00:00 2001 From: Etienne Trimaille Date: Wed, 2 Oct 2024 13:54:44 +0200 Subject: [PATCH] Tests - Add small tests data about upload --- .github/workflows/e2e_tests.yml | 25 +++++++++++++++--- tests/lizmap-ctl | 3 +++ tests/qgis-projects/media/.empty | 0 .../media/specific_media_folder/.empty | 0 .../media/specific_media_folder/random-4.jpg | Bin 0 -> 7468 bytes tests/qgis-projects/tests/README.md | 1 + tests/qgis-projects/tests/media/random-1.jpg | Bin 0 -> 9145 bytes .../image_file/random-3.jpg | Bin 0 -> 9395 bytes .../image_file_mandatory/random-2.jpg | Bin 0 -> 6750 bytes .../form_edition_upload/text_file/lorem-1.txt | 4 +++ .../text_file_mandatory/lorem-2.txt | 1 + tests/qgis-projects/tests/tests_dataset.sql | 3 ++- 12 files changed, 32 insertions(+), 5 deletions(-) delete mode 100644 tests/qgis-projects/media/.empty delete mode 100644 tests/qgis-projects/media/specific_media_folder/.empty create mode 100644 tests/qgis-projects/media/specific_media_folder/random-4.jpg create mode 100644 tests/qgis-projects/tests/media/random-1.jpg create mode 100644 tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/image_file/random-3.jpg create mode 100644 tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/image_file_mandatory/random-2.jpg create mode 100644 tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/text_file/lorem-1.txt create mode 100644 tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/text_file_mandatory/lorem-2.txt diff --git a/.github/workflows/e2e_tests.yml b/.github/workflows/e2e_tests.yml index b17f09f8c8..0625ecf758 100644 --- a/.github/workflows/e2e_tests.yml +++ b/.github/workflows/e2e_tests.yml @@ -130,6 +130,17 @@ jobs: cd end2end npx playwright test --project=end2end + - name: Generate PG dump from Playwright + if: failure() + run: | + ./lizmap-ctl dump-pgsql + + - name: Check the database diff from Playwright + if: failure() + run: | + git diff qgis-projects/tests/tests_dataset.sql + git restore qgis-projects/tests/tests_dataset.sql + - name: Notify in case of playwright failure, from mainstream branches only uses: peter-evans/commit-comment@v3 if: github.repository == '3liz/lizmap-web-client' && failure() && steps.test-playwright.outcome != 'success' && github.event_name == 'repository_dispatch' @@ -184,11 +195,17 @@ jobs: tests/end2end/cypress/screenshots tests/end2end/cypress/downloads - - name: Check DB diff + - name: Generate PG dump from Cypress + if: failure() run: | - cd qgis-projects/tests/ - PGPASSWORD=lizmap1234! pg_dump -h localhost -p 8132 -U lizmap -f --no-owner --no-acl -n tests_projects -f tests_dataset.sql -# git diff tests/qgis-projects/tests/tests_dataset.sql + ./lizmap-ctl dump-pgsql + + - name: Check the database diff from Cypress + if: failure() + run: | + git diff qgis-projects/tests/tests_dataset.sql + git restore qgis-projects/tests/tests_dataset.sql + # [[ -z $(git status --porcelain -uno) ]] # exit $? diff --git a/tests/lizmap-ctl b/tests/lizmap-ctl index ce833fa934..35de35c876 100755 --- a/tests/lizmap-ctl +++ b/tests/lizmap-ctl @@ -126,6 +126,9 @@ case $COMMAND in shell-pgsql) docker exec -it --user postgres -e PGPASSWORD="lizmap1234!" lizmap${LZMBRANCH}_test_pgsql /bin/bash -l ;; + dump-pgsql) + docker exec -it -e PGPASSWORD="lizmap1234!" lizmap${LZMBRANCH}_test_pgsql pg_dump -U lizmap --no-owner --no-acl -n tests_projects -f /srv/lzm/tests/qgis-projects/tests/tests_dataset.sql + ;; redis-cli) docker exec -it lizmap${LZMBRANCH}_test_redis redis-cli ;; diff --git a/tests/qgis-projects/media/.empty b/tests/qgis-projects/media/.empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/tests/qgis-projects/media/specific_media_folder/.empty b/tests/qgis-projects/media/specific_media_folder/.empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/tests/qgis-projects/media/specific_media_folder/random-4.jpg b/tests/qgis-projects/media/specific_media_folder/random-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..28c5cfb2c27f9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SdG)@nCeI~*rj(D^>(P74K?A4z#VPVES+-Wo|vYaLs>8LUAnJQs<{Y7@{ zU)rs;AlnX5T4}d3YmIn91E3OaPAq>02rIgRih9GcR#`MZ(z7{7)gEh!2mj#SD!dE9 za420vpU3`I16aqg+2KlEgS?5AdMjp8$hRHHx156KeWSJ^hlJ5HP=!fWcbQ&{`d09a z^keWIj7=*x+Nl7ck5hV%w-Hl6i?he7poMiYTQY?UlUiykH? zKxIAe>-V|)U;KwNG<)4nl@@l`yG6!O2j0+xAZwd{ILu19^)b)Xex#v!)ZqUT`75?ZMcvjop#dPgf_pv{yr S{KByz{jrL%@Gk#p_5T4%u22a8 literal 0 HcmV?d00001 diff --git a/tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/image_file/random-3.jpg b/tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/image_file/random-3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..80326eca2c0423fbeb1d974b3083691e398ef451 GIT binary patch literal 9395 zcmb7pWmp`|()KQ}xGXI0E{ntB?jGDBxVu|`;4T4zC%9X12o~IfJ0y6pBxnKzdH0cX z&iD80xu&~zx~6Knue-YM>U~~)-T{1(^LMZX0F;!V08{_~fDFI`A_9PL>93m<2>QF# zgUe+9$}izE^S?R>a2bN|KYfQ7q`&py2LCRK@cJ)1|7lSGfK(I!68s4l4>uR^%|9{_ zZXr4i1waUY{t12q3jfvN=Hdbt{$u_582~^i{KxtjTm|u8ne8w0@FJxxqof3HH5{zG zd|arNWQD1D__?1q05SknWMmX%5Go1^3K|+JIwn3ACI$v32_6IopMsQ%l7f_+oSL44 ziJF#;j+~rXfQ5~V8wP_>F$swY@`!Tq!g&5N0z^YY!^FTO#=;`zp&_T?`Ts7@0{~o9 zARAx|5l9O_zy%`W0-uKfWblCi|0;iv;qMAQ8OTT=6nH1e-#!0t9{`AihyZ$C2Vf!s z0SI73Fno58(1q>N!i|wMl&qWhl~m!Pb;h_$+EJuNhcH`~6hkDTY$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0zBbJsPTS40RT(_7U2RDm!?|>K}{Lhaa41qgkjMl6ZL@U3|64$i~>dQ|m zqC=xXCjd&7ME0;nv?x2TQKzJ!U3%2WbvpBWMu&`I$3Z2PKKjmZo%HBk@%h&%h$pCa ztBo&fqFvSX2*1DGl6tMa7Ou0~$h+l7mdCs}n4ZRrzC>!)(4t*yu@DVLPWQ12;>=0) z_Jnh@j{HOFHBs6gm?kNVTA$}ST6JY=AaRo*29=e)brE-LDx3qNRlPo%oAsv%*w)FVEQ zENfaabjxHNQ??cg-8iWct6+vVewFUgZ`@idYUPkOLYUH<1PV=xHdcOO(M-?h z#KsipP}1t0T|QwW;TCR|s0=gjSRgd$BEZY$Shw~M$Wksgiwf_b-nS}tWsHa$%iQBA zahT*xW@O{VY2_-9{&Yj4Pss_IgaI!PX^=$nr2@*bJC*8W`6r8Xdg)G!aa*8zs~9hS g1NrCMgffXgMh0LW3SY4pp!X{b0nYDCn4Z`E5AMOFAOHXW literal 0 HcmV?d00001 diff --git a/tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/image_file_mandatory/random-2.jpg b/tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/image_file_mandatory/random-2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2b1f3f93fc72e6d95cfb6f856351cf58d79667c1 GIT binary patch literal 6750 zcmb7HcRXC()8ExaUA;xDZq>C&h|VgjcZn9g6E!3((L1Y?=p|N-UK70&k?19&1`$C- zklkT%=iyB$6)S%bg(d(66?SEj*&Pw`WS;Zq=IR$?fl#00{}_*02~ZQNEj*v zME%7;jD?6~d;krG--WpW`TyuZg@l0lf306#0RUL}f2|K;RIvXSzMdkdr=Y5e>9rlL zy?k6*R23yyV8VB=76A$X0z5o?JX`{Ne0)Mef?LE?B*a8S#Pk%DWK_2q?l9kGU}9on z7vN%HQUE3*d~F0sNJvObL`+9QLMIGn0t^4Y>8b|+ zA^;2lhOmLG04xv?8w9-S12AG<3L6N#{zU&0=40UC;^A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&rTv|vRUq0vA!VS%NQHY#>g+<}57XUIW{qFaIcGt1VGR5&2Mi(9=O*`y zS|?vLs!H(rG~6VHTRWiT&qxngg`e4+U|20Z6X|@^TTn${a;(ElC*%OT-R*9mm#Xyh zv0)}t=vO_ur~Goi1=kPpOw!C!dfZRdoWh}_uSZE9R=V7=GkD>yk+)>cv^A5lnt;2& z;5)HT?ODM=x-fs1K-_C+@%l*Gk~1#7-8^W?PSQa|nqVFsl-b=jGNPY#Ka6>|{#?F_ z&I5Ix$-|%K-%^OP$$0lzHd{@}G7|S<4H){EHPK&{Nn?p*o=kbJM(*q|aT=Yb5~C c!TVp96&H_mmI`xt`2xB>EM*79!LH{22mJQVjsO4v literal 0 HcmV?d00001 diff --git a/tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/text_file/lorem-1.txt b/tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/text_file/lorem-1.txt new file mode 100644 index 0000000000..a1a0538247 --- /dev/null +++ b/tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/text_file/lorem-1.txt @@ -0,0 +1,4 @@ +Lorem ipsum odor amet, consectetuer adipiscing elit. +Ac feugiat gravida luctus, sodales est lectus per. +Turpis torquent luctus posuere semper aliquam donec ornare. +Tortor habitasse natoque sapien parturient maecenas metus lacinia? diff --git a/tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/text_file_mandatory/lorem-2.txt b/tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/text_file_mandatory/lorem-2.txt new file mode 100644 index 0000000000..56ad3c5b69 --- /dev/null +++ b/tests/qgis-projects/tests/media/upload/form_edition_all_field_type/form_edition_upload/text_file_mandatory/lorem-2.txt @@ -0,0 +1 @@ +Lorem ipsum odor amet, consectetuer adipiscing elit. diff --git a/tests/qgis-projects/tests/tests_dataset.sql b/tests/qgis-projects/tests/tests_dataset.sql index 31bb33cc42..903030e749 100644 --- a/tests/qgis-projects/tests/tests_dataset.sql +++ b/tests/qgis-projects/tests/tests_dataset.sql @@ -3291,6 +3291,7 @@ COPY tests_projects.form_edition_snap_polygon (id, geom) FROM stdin; -- COPY tests_projects.form_edition_upload (id, generic_file, text_file, image_file, text_file_mandatory, image_file_mandatory, image_file_specific_root_folder) FROM stdin; +2 \N \N \N media/upload/form_edition_all_field_type/form_edition_upload/text_file_mandatory/lorem-2.txt media/upload/form_edition_all_field_type/form_edition_upload/image_file_mandatory/random-2.jpg ../media/specific_media_folder/random-4.jpg \. @@ -4011,7 +4012,7 @@ SELECT pg_catalog.setval('tests_projects.form_edition_snap_polygon_id_seq', 2, t -- Name: form_edition_upload_id_seq; Type: SEQUENCE SET; Schema: tests_projects; Owner: - -- -SELECT pg_catalog.setval('tests_projects.form_edition_upload_id_seq', 1, true); +SELECT pg_catalog.setval('tests_projects.form_edition_upload_id_seq', 2, true); --