mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
selftest: add tests for smb notify, using the a special share
That share will get the "honor change notify privilege = yes" option once it's implemented. For now it's marked as knownfail. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Björn Baumbach <bb@sernet.de> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3e9f0e9725
commit
bcfce0ecd3
1
selftest/knownfail.d/notify_privileged
Normal file
1
selftest/knownfail.d/notify_privileged
Normal file
@ -0,0 +1 @@
|
||||
^samba.tests.smb-notify.samba.tests.smb-notify.SMBNotifyTests.test_notify_privileged
|
@ -2889,6 +2889,9 @@ sub provision($$)
|
||||
path = $prefix_abs/share
|
||||
vfs objects =
|
||||
server smb encrypt = off
|
||||
|
||||
[notify_priv]
|
||||
copy = tmp
|
||||
";
|
||||
|
||||
close(CONF);
|
||||
|
@ -481,6 +481,14 @@ for t in smbtorture4_testsuites("dlz_bind9."):
|
||||
|
||||
planpythontestsuite("nt4_dc_smb1", "samba.tests.libsmb")
|
||||
|
||||
planpythontestsuite("ad_member", "samba.tests.smb-notify",
|
||||
environ={'USERNAME':'$DC_USERNAME',
|
||||
'PASSWORD':'$DC_PASSWORD',
|
||||
'USERNAME_UNPRIV':'alice',
|
||||
'PASSWORD_UNPRIV':'Secret007',
|
||||
'STRICT_CHECKING':'0',
|
||||
'NOTIFY_SHARE':'notify_priv'})
|
||||
|
||||
# Blackbox Tests:
|
||||
# tests that interact directly with the command-line tools rather than using
|
||||
# the API. These mainly test that the various command-line options of commands
|
||||
|
Loading…
x
Reference in New Issue
Block a user