summaryrefslogtreecommitdiff
path: root/testsuite/unittests
Commit message (Collapse)AuthorAgeFilesLines
* auth3: Remove auth_skel.cVolker Lendecke2021-04-191-10/+0
| | | | | | | | | | | | | | | Authentication is a very complex topic, and someone who is able to write a custom auth module turning a struct auth_usersupplied_info into a struct auth_serversupplied_info should be able to live without this skeleton module. This module also gave an example to load a secondary authentication module via a module parameter (the call to load_module()). We have abandoned this practice, and since the "auth methods" parameter has gone we don't use this anymore internally. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* test: Add a test for background_job_send crashVolker Lendecke2021-04-012-0/+89
| | | | | | | I haven't figured out how to properly add a crashing test to "knownfail", so this is added after the fix. Signed-off-by: Volker Lendecke <vl@samba.org>
* librpc: Make "dcesrv_context->callbacks" a pointerVolker Lendecke2021-03-161-1/+5
| | | | | | | | | This structure just grew from 3 to 6 pointers, avoid making a copy of this. All callers of dcesrv_init_context() have this as a static struct in the C object, so a pointer to that won't change. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* unittests: Mark test binaries for selftestAndreas Schneider2020-10-231-3/+3
| | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=14550 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* s3:rpc_server: Retrieve dcesrv_context from parent context to open NPSamuel Cabrero2020-03-201-22/+51
| | | | | | | | | Get the dcesrv_context from parent context and use it to search the endpoint serving the named pipe. Once we have the endpoint pass it to the make_internal_rpc_pipe_socketpair function. Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* unittest: workaround dependency problem in test_lib_util_modulesRalph Boehme2019-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | waf somehow screws the dependencies and the module ends up with a bunch of missing RPC related symbols once an RPC service has special dependencies like the mdssvc RPC service. $ bin/test_lib_util_modules test: test_samba_module_probe success: test_samba_module_probe test: test_samba_module_probe_dummy Error loading module '/home/samba/src/bin/modules/rpc/test_dummy_module.so': /home/samba/src/bin/modules/rpc/test_dummy_module.so: undefined symbol: rpc_service_mode failure: test_samba_module_probe_dummy [ NT_STATUS_IS_OK(status) ../../testsuite/unittests/test_lib_util_modules.c:39: error: Failure! ] test: test_samba_module_probe_slash success: test_samba_module_probe_slash This is currently not noticed as mdssvc is not enabled in selftest, but that is going to change with a subsequent commit. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:rpc_server: Return NTSTATUS in is_known_pipename functionSamuel Cabrero2019-07-221-6/+6
| | | | | | Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* unittests.lib_util_modules: test module probe with "skel", not "unix"Douglas Bagnall2018-02-221-1/+1
| | | | | | | The unix module is not available as a module on some systems. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* unittests: Fix missing include of signal.hLumir Balhar2017-10-181-0/+1
| | | | | | | | | Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Oct 18 14:24:39 CEST 2017 on sn-devel-144
* testsuite: Fix the 32-bit test buildVolker Lendecke2017-09-211-6/+6
| | | | | | | | | | | | samba_init_module returns 32-bit. For some reason on my 32-bit lxc "return 0" was converted to something but NT_STATUS_OK, making initialization fail. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Sep 21 02:49:32 CEST 2017 on sn-devel-144
* unittests: Do not install the test_dummy rpc moduleAndreas Schneider2017-07-051-1/+2
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12879 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Jul 5 22:21:06 CEST 2017 on sn-devel-144
* unittests: Add missing stdint.h includeAndreas Schneider2017-07-051-0/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12878 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* unittest: Add testsuite for smb_probe_module()Andreas Schneider2017-06-062-0/+84
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12780 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* unittest: Add testsuite for is_known_pipename()Andreas Schneider2017-06-063-0/+113
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12780 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* third_party: Add cmocka 1.1.1Andreas Schneider2017-04-101-9/+5
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Apr 10 11:38:13 CEST 2017 on sn-devel-144
* waf: Do not install the unit test binary for krb5sambaAndreas Schneider2017-02-131-1/+2
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12552 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Feb 13 14:17:39 CET 2017 on sn-devel-144
* testsuite: Add cmocka unit test for smb_krb5_kt_open()Andreas Schneider2016-12-162-0/+160
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Dec 16 05:43:12 CET 2016 on sn-devel-144