tests/mdssvc: match hits:total:value to be the actual amount of entries in hits
authorRalph Boehme <slow@samba.org>
Fri, 21 Apr 2023 05:07:13 +0000 (07:07 +0200)
committerJule Anger <janger@samba.org>
Mon, 31 Jul 2023 08:05:14 +0000 (08:05 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15342

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 7f5e4edf64f7e4175f652bf8762d4edc110ad6b1)

python/samba/tests/dcerpc/mdssvc.py

index 5002e5d26d64926496792258c557cdd82f348a84..985f35aa725d9beda6bb954be4d56f9d09759f19 100644 (file)
@@ -166,7 +166,7 @@ class MdssvcTests(RpcInterfaceTestCase):
         }'''
         fake_json_response = r'''{
           "hits" : {
-            "total" : {"value" : 2},
+            "total" : {"value" : 9},
             "hits" : [
               {"_source" : {"path" : {"real" : "%BASEPATH%/x+x"}}},
               {"_source" : {"path" : {"real" : "%BASEPATH%/x*x"}}},