From e8989096b656cfe12232bd99bc2ce73618b3a676 Mon Sep 17 00:00:00 2001 From: Olivia Guyot Date: Tue, 30 Jul 2024 20:52:28 +0200 Subject: [PATCH] ci: show thesauri loaded in docker compose init --- .../docker-entrypoint.d/04-upload-thesauri.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/support-services/docker-entrypoint.d/04-upload-thesauri.sh b/support-services/docker-entrypoint.d/04-upload-thesauri.sh index ae898293be..a288bbb530 100755 --- a/support-services/docker-entrypoint.d/04-upload-thesauri.sh +++ b/support-services/docker-entrypoint.d/04-upload-thesauri.sh @@ -18,3 +18,12 @@ do echo "" done +curl "http://$host/geonetwork/srv/fre/thesaurus?_content_type=json" \ + -H 'Accept: application/json, text/plain, */*' \ + -H 'Content-Type: multipart/form-data' \ + -H 'Accept: application/json, text/plain, */*' \ + -H "Cookie: JSESSIONID=$jsessionid; XSRF-TOKEN=$xsrf_token" \ + -H "X-XSRF-TOKEN: $xsrf_token" + +echo "" +echo "Thesauri uploaded to GeoNetwork."