mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
samba-gpupdate: Test that sysvol paths download in case-insensitive way
Bug: https://bugzilla.samba.org/show_bug.cgi?id=14665 Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Björn Baumbach <bb@sernet.de>
This commit is contained in:
parent
6054564d4f
commit
554f2134a9
@ -188,6 +188,16 @@ class GPOTests(tests.TestCase):
|
||||
self.assertEqual(result, after, 'check_safe_path() didn\'t'
|
||||
' correctly convert \\ to /')
|
||||
|
||||
def test_check_safe_path_typesafe_name(self):
|
||||
path = '\\\\toady.suse.de\\SysVol\\toady.suse.de\\Policies\\' \
|
||||
'{31B2F340-016D-11D2-945F-00C04FB984F9}\\GPT.INI'
|
||||
expected_path = 'toady.suse.de/Policies/' \
|
||||
'{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI'
|
||||
|
||||
result = check_safe_path(path)
|
||||
self.assertEqual(result, expected_path,
|
||||
'check_safe_path unable to detect variable case sysvol components')
|
||||
|
||||
def test_gpt_ext_register(self):
|
||||
this_path = os.path.dirname(os.path.realpath(__file__))
|
||||
samba_path = os.path.realpath(os.path.join(this_path, '../../../'))
|
||||
|
1
selftest/knownfail.d/gpo
Normal file
1
selftest/knownfail.d/gpo
Normal file
@ -0,0 +1 @@
|
||||
^samba.tests.gpo.samba.tests.gpo.GPOTests.test_check_safe_path_typesafe_name
|
Loading…
Reference in New Issue
Block a user