From 2af9c65f2a17ace4e1021b5c8fd6df636c904cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Filipensk=C3=BD?= Date: Fri, 23 Jun 2023 12:03:30 +0200 Subject: [PATCH] s3:tests: Add rpcclient 'dfsgetinfo' test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG: https://bugzilla.samba.org/show_bug.cgi?id=15400 Signed-off-by: Pavel Filipenský Reviewed-by: Jeremy Allison --- selftest/knownfail.d/rpc-dfs | 1 + source3/script/tests/test_rpcclient_dfs.sh | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/selftest/knownfail.d/rpc-dfs b/selftest/knownfail.d/rpc-dfs index 8ab72ff7b38..50499bf3662 100644 --- a/selftest/knownfail.d/rpc-dfs +++ b/selftest/knownfail.d/rpc-dfs @@ -1,2 +1,3 @@ #_dfs_EnumEx() is not implemented on RPC server side ^samba3.blackbox.rpcclient_dfs.dfsenumex +^samba3.blackbox.rpcclient_dfs.dfsgetinfo diff --git a/source3/script/tests/test_rpcclient_dfs.sh b/source3/script/tests/test_rpcclient_dfs.sh index 6d588d2ced2..0ae9e5015cd 100755 --- a/source3/script/tests/test_rpcclient_dfs.sh +++ b/source3/script/tests/test_rpcclient_dfs.sh @@ -31,8 +31,15 @@ ${RPCCLIENTCMD} -c "dfsenum 5" RC=$? testit "dfsenum" test ${RC} -eq 0 || failed=$((failed + 1)) +# This test fails: _dfs_EnumEx() is not implemented on samba RPC server side ${RPCCLIENTCMD} -c "dfsenumex 5" RC=$? testit "dfsenumex" test ${RC} -eq 0 || failed=$((failed + 1)) +# Every backslash is reduced twice, so we need to enter it 4 times. +# Rpc server then gets: '\\server\share\path' +${RPCCLIENTCMD} -c "dfsgetinfo \\\\\\\\${SERVER}\\\\msdfs-share\\\\msdfs-src1 ${SERVER} msdfs-src1" +RC=$? +testit "dfsgetinfo" test ${RC} -eq 0 || failed=$((failed + 1)) + testok "$0" "${failed}"