From: Björn Baumbach Date: Mon, 20 Jul 2020 14:49:39 +0000 (+0200) Subject: selftest: add tests for smb notify, using the a special share X-Git-Tag: samba-4.14.0rc1~233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcfce0ecd3153d158f712ff548a1ccd005031bc8;p=thirdparty%2Fsamba.git 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 Signed-off-by: Björn Baumbach Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- diff --git a/selftest/knownfail.d/notify_privileged b/selftest/knownfail.d/notify_privileged new file mode 100644 index 00000000000..44ff8cbd1b0 --- /dev/null +++ b/selftest/knownfail.d/notify_privileged @@ -0,0 +1 @@ +^samba.tests.smb-notify.samba.tests.smb-notify.SMBNotifyTests.test_notify_privileged diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 8b1d809c941..9c8b657e66d 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -2889,6 +2889,9 @@ sub provision($$) path = $prefix_abs/share vfs objects = server smb encrypt = off + +[notify_priv] + copy = tmp "; close(CONF); diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 9dc2df44bc4..bc6bdb484ed 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -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