From c3582deb5a01b686ecad7254cb087effbaf062d3 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 5 Apr 2023 11:32:09 +0200 Subject: CI: add a test creating a vetoed file BUG: https://bugzilla.samba.org/show_bug.cgi?id=15143 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison (cherry picked from commit 2e8954d5be3336f1c4c2cf033209f632ad84e712) --- .../samba3.blackbox.test_veto_files.get_veto_file | 1 + source3/script/tests/test_veto_files.sh | 47 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 selftest/knownfail.d/samba3.blackbox.test_veto_files.get_veto_file diff --git a/selftest/knownfail.d/samba3.blackbox.test_veto_files.get_veto_file b/selftest/knownfail.d/samba3.blackbox.test_veto_files.get_veto_file new file mode 100644 index 00000000000..ff8f37f0509 --- /dev/null +++ b/selftest/knownfail.d/samba3.blackbox.test_veto_files.get_veto_file @@ -0,0 +1 @@ +^samba3.blackbox.test_veto_files.create_veto_file\(fileserver\) diff --git a/source3/script/tests/test_veto_files.sh b/source3/script/tests/test_veto_files.sh index 9f0526bd54c..5ecfb53b8a4 100755 --- a/source3/script/tests/test_veto_files.sh +++ b/source3/script/tests/test_veto_files.sh @@ -84,6 +84,42 @@ EOF fi } +smbclient_create_expect_error() +{ + filename="$1.$$" + expected_error="$2" + tmpfile=$PREFIX/smbclient_interactive_prompt_commands + cat >"$tmpfile" <