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:
parent
72d5a5a33b
commit
ffda69f2d9
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user