From: Joseph Sutton Date: Tue, 23 May 2023 04:42:54 +0000 (+1200) Subject: tests/audit_log: Correctly check for GUID X-Git-Tag: talloc-2.4.1~553 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffda69f2d9d074867c451b5f880315d126865bd2;p=thirdparty%2Fsamba.git tests/audit_log: Correctly check for GUID Pattern.match() only checks the starting portion of the string. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/audit_log_base.py b/python/samba/tests/audit_log_base.py index 18f86a9d310..8671f72e7b5 100644 --- a/python/samba/tests/audit_log_base.py +++ b/python/samba/tests/audit_log_base.py @@ -190,7 +190,7 @@ class AuditLogTestBase(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) def get_session(self): return self.auth_context["sessionId"]