1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

tests/audit_log: Correctly check for GUID

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>
This commit is contained in:
Joseph Sutton 2023-05-23 16:42:54 +12:00 committed by Andrew Bartlett
parent 72d5a5a33b
commit ffda69f2d9

View File

@ -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"]