1
0
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:
Björn Baumbach 2020-07-20 16:49:39 +02:00 committed by Stefan Metzmacher
parent 3e9f0e9725
commit bcfce0ecd3
3 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1 @@
^samba.tests.smb-notify.samba.tests.smb-notify.SMBNotifyTests.test_notify_privileged

View File

@ -2889,6 +2889,9 @@ sub provision($$)
path = $prefix_abs/share
vfs objects =
server smb encrypt = off
[notify_priv]
copy = tmp
";
close(CONF);

View File

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