]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/auth_log: Correctly check for GUID
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 23 May 2023 04:43:10 +0000 (16:43 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 29 May 2023 22:32:28 +0000 (22:32 +0000)
Pattern.match() only checks the starting portion of the string.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/auth_log_base.py

index bc903168775afa1eb0709b4de65a82999d67986d..4a4aa81db8a290467889b265ff31ec0ed10f892c 100644 (file)
@@ -154,4 +154,4 @@ class AuthLogTestBase(samba.tests.TestCase):
     # Is the supplied GUID string correctly formatted
     #
     def is_guid(self, guid):
-        return self.GUID_RE.match(guid)
+        return self.GUID_RE.fullmatch(guid)