From: Ralph Boehme Date: Fri, 17 Oct 2025 10:38:53 +0000 (+0200) Subject: mdssvc: add a test for parsing Spotlight date ranges X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1239e5a4c7f5930a4a1b3a6a7a005f4d543a5ea5;p=thirdparty%2Fsamba.git mdssvc: add a test for parsing Spotlight date ranges BUG: https://bugzilla.samba.org/show_bug.cgi?id=15930 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke --- diff --git a/selftest/knownfail.d/samba.unittests.mdsparser_es b/selftest/knownfail.d/samba.unittests.mdsparser_es new file mode 100644 index 00000000000..b5d7bc84c1e --- /dev/null +++ b/selftest/knownfail.d/samba.unittests.mdsparser_es @@ -0,0 +1 @@ +^samba.unittests.mdsparser_es.*test_mdsparser_es\(none\) diff --git a/source3/rpc_server/mdssvc/test_mdsparser_es.c b/source3/rpc_server/mdssvc/test_mdsparser_es.c index a61f84ceaff..5015de82127 100644 --- a/source3/rpc_server/mdssvc/test_mdsparser_es.c +++ b/source3/rpc_server/mdssvc/test_mdsparser_es.c @@ -155,6 +155,9 @@ static struct { }, { "InRange(kMDItemFSSize,1,2)", "file.filesize:[1 TO 2]" + }, { + "InRange(kMDItemContentCreationDate,$time.iso(2024-12-31T23:00:00Z),$time.iso(2025-12-31T23:00:00Z))", + "file.created:[2024\\\\-12\\\\-31T23\\\\:00\\\\:00Z TO 2025\\\\-12\\\\-31T23\\\\:00\\\\:00Z]" } };