From 7cc144a9c337ec0e40989fa0958b2fa945e9a7ce Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Mon, 6 Jul 2026 16:30:24 +0200 Subject: [PATCH] test(search): set Mtime on opensearch folder and root fixtures The Mtime field is mapped as an OpenSearch `date`, which rejects an empty value with `mapper_parsing_exception: cannot parse empty date`. The folder and root fixtures had no Mtime, so serializing them to `"Mtime": ""` made TestEngine_Purge/purge_resource_trees fail when the document was indexed. Give both a valid RFC3339 Mtime, matching the file fixture. --- .../internal/opensearchtest/testdata/resource_folder.json | 3 ++- .../search/internal/opensearchtest/testdata/resource_root.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/services/search/internal/opensearchtest/testdata/resource_folder.json b/services/search/internal/opensearchtest/testdata/resource_folder.json index aa469daf98..345ef71724 100644 --- a/services/search/internal/opensearchtest/testdata/resource_folder.json +++ b/services/search/internal/opensearchtest/testdata/resource_folder.json @@ -3,5 +3,6 @@ "RootID" : "1$1!1", "ParentID" : "1$1!1", "Path" : "./parent d!r", - "Type" : 2 + "Type" : 2, + "Mtime" : "2025-07-24T15:15:01.324093+02:00" } diff --git a/services/search/internal/opensearchtest/testdata/resource_root.json b/services/search/internal/opensearchtest/testdata/resource_root.json index 18e401dfbd..0ea9e063df 100644 --- a/services/search/internal/opensearchtest/testdata/resource_root.json +++ b/services/search/internal/opensearchtest/testdata/resource_root.json @@ -1,5 +1,6 @@ { "ID" : "1$1!1", "RootID" : "1$1!1", - "Path" : "." + "Path" : ".", + "Mtime" : "2025-07-24T15:15:01.324093+02:00" }