X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=python%2Fsamba%2Ftests%2Fblackbox%2Fmdsearch.py;fp=python%2Fsamba%2Ftests%2Fblackbox%2Fmdfind.py;h=8da5a49e136ec367b7f14787616af218d86baa71;hb=359c6bd21084b075d3d47f5cec427a5801ac11de;hp=5c1c0c3d1558bd82e83bee4529d1a74dedc533fb;hpb=942c0d2128cb8e64a9354dde6bdae82a1c1c3d88;p=bbaumbach%2Fsamba-autobuild%2F.git diff --git a/python/samba/tests/blackbox/mdfind.py b/python/samba/tests/blackbox/mdsearch.py similarity index 93% rename from python/samba/tests/blackbox/mdfind.py rename to python/samba/tests/blackbox/mdsearch.py index 5c1c0c3d155..8da5a49e136 100644 --- a/python/samba/tests/blackbox/mdfind.py +++ b/python/samba/tests/blackbox/mdsearch.py @@ -1,5 +1,5 @@ # -# Blackbox tests for mdfind +# Blackbox tests for mdsearch # # Copyright (C) Ralph Boehme 2019 # @@ -17,7 +17,7 @@ # along with this program. If not, see . # -"""Blackbox test for mdfind""" +"""Blackbox test for mdsearch""" import os import time @@ -95,8 +95,8 @@ class MdfindBlackboxTests(BlackboxTestCase): self.server.server_activate() self.server.serve_forever() - def test_mdfind(self): - """Simple blackbox test for mdfind""" + def test_mdsearch(self): + """Simple blackbox test for mdsearch""" username = os.environ["USERNAME"] password = os.environ["PASSWORD"] @@ -123,7 +123,7 @@ class MdfindBlackboxTests(BlackboxTestCase): self.server.json_in = json_in.replace("%BASEPATH%", self.sharepath) self.server.json_out = json_out.replace("%BASEPATH%", self.sharepath) - output = self.check_output("mdfind -s %s -U %s%%%s fileserver spotlight '*==\"samba*\"'" % (config, username, password)) + output = self.check_output("mdsearch -s %s -U %s%%%s fileserver spotlight '*==\"samba*\"'" % (config, username, password)) actual = output.decode('utf-8').splitlines() expected = ["%s/%s" % (self.sharepath, file) for file in testfiles]