summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-07-30 12:47:03 +0200
committerRalph Boehme <slow@samba.org>2019-10-09 14:35:29 +0000
commitf479e010961e652230c7e33876058c8fb82e9019 (patch)
treecae75f302babbafd0347a3c98a5b7dfa5d470ca0 /selftest
parentf5510d7db3816c6a18dc333e1ae7f505fca69815 (diff)
downloadsamba-f479e010961e652230c7e33876058c8fb82e9019.tar.gz
s3:mdssvc: add unit tests for the Spotlight to Elasticsearch parser
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'selftest')
-rwxr-xr-xselftest/selftest.pl1
-rw-r--r--selftest/tests.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index 6139f3daa7d..b6094fef3b9 100755
--- a/selftest/selftest.pl
+++ b/selftest/selftest.pl
@@ -640,6 +640,7 @@ sub write_clientconf($$$)
tls crlfile = ${cacrl_pem}
tls verify peer = no_check
include system krb5 conf = no
+ elasticsearch:mappings = $srcdir_abs/source3/rpc_server/mdssvc/elasticsearch_mappings.json
";
close(CF);
}
diff --git a/selftest/tests.py b/selftest/tests.py
index 6a5da182c3f..cca2ad02c9e 100644
--- a/selftest/tests.py
+++ b/selftest/tests.py
@@ -398,3 +398,5 @@ plantestsuite("samba.unittests.test_registry_regfio", "none",
[os.path.join(bindir(), "default/source3/test_registry_regfio")])
plantestsuite("samba.unittests.test_oLschema2ldif", "none",
[os.path.join(bindir(), "default/source4/utils/oLschema2ldif/test_oLschema2ldif")])
+plantestsuite("samba.unittests.mdsparser_es", "none",
+ [os.path.join(bindir(), "default/source3/test_mdsparser_es")] + [configuration])