summaryrefslogtreecommitdiff
path: root/source3/script/tests
Commit message (Collapse)AuthorAgeFilesLines
* libcli/dns: Add resolv.conf parsingVolker Lendecke2019-01-151-0/+20
| | | | | | | | | | | Right now this only looks at the nameserver setting. It is initally made for asynchronous AD DC lookup routines, where we don't need the "search", "domain" and other settings. When we convert general "net", "smbclient" and others to use this, we might either add "domain" handling to this code or look at something like c-ares which already does it. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tests/ntlm_auth: Port ntlm_auth_diagnostics tests to pythonSamuel Cabrero2018-12-191-23/+0
| | | | | | | | | | | Port ntlm_auth_diagnostics bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Wed Dec 19 16:21:32 CET 2018 on sn-devel-144
* tests/ntlm_auth: Port ntlm_auth_krb5 tests to pythonSamuel Cabrero2018-12-191-32/+0
| | | | | | | | Port ntlm_auth_krb5 bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth ntlm-server-1 ↵Samuel Cabrero2018-12-191-67/+0
| | | | | | | | | | with incorrect fixed password against winbind Port ntlm_auth bash script tests to python and remove bash test script Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth ntlm-server-1 ↵Samuel Cabrero2018-12-191-37/+0
| | | | | | | | | | with plaintext password against winbind but wrong sid Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth ntlm-server-1 ↵Samuel Cabrero2018-12-191-37/+0
| | | | | | | | | | with plaintext password against winbind Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth ntlm-server-1 ↵Samuel Cabrero2018-12-191-38/+0
| | | | | | | | | | with incorrect fixed password Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth ntlm-server-1 ↵Samuel Cabrero2018-12-191-37/+0
| | | | | | | | | | with fixed password Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth plaintext ↵Samuel Cabrero2018-12-191-33/+0
| | | | | | | | | | authentication with failed require-membership-of Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth plaintext ↵Samuel Cabrero2018-12-191-32/+0
| | | | | | | | | | authentication with require-membership-of Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP ↵Samuel Cabrero2018-12-191-2/+0
| | | | | | | | | | gss-spnego-client and gss-spnego server against winbind with failed require-membership-of Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth against winbindd ↵Samuel Cabrero2018-12-191-1/+0
| | | | | | | | | | with failed require-membership-of Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP ↵Samuel Cabrero2018-12-191-2/+0
| | | | | | | | | | gss-spnego-client and gss-spnego server against winbind with require-membership-of Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth against winbindd ↵Samuel Cabrero2018-12-191-1/+0
| | | | | | | | | | | | with require-membership-of Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Noel Power <noel.power@suse.com>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth ccached ↵Samuel Cabrero2018-12-191-3/+0
| | | | | | | | | credentials with NTLMSSP client and gss-spnego server Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP ↵Samuel Cabrero2018-12-191-2/+0
| | | | | | | | | | gss-spnego-client and gss-spnego server against winbind Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP ↵Samuel Cabrero2018-12-191-1/+0
| | | | | | | | | | gss-spnego-client and gss-spnego server Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP ↵Samuel Cabrero2018-12-191-1/+0
| | | | | | | | | | client and gss-spnego server Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth against winbinddSamuel Cabrero2018-12-191-1/+0
| | | | | | | | Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth and ntlm_auth ↵Samuel Cabrero2018-12-191-2/+0
| | | | | | | | | | with specified domain Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* PY3: change shebang to python3 in misc dirsJoe Guo2018-12-141-3/+3
| | | | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org> Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Fri Dec 14 18:00:40 CET 2018 on sn-devel-144
* s3:test: make sids2xids test compatible with py2 and py3Joe Guo2018-12-141-12/+17
| | | | | | | | define a wrapper function for subprocess.check_output, to return bytes for py2 and unicode for py3, and replace Popen with it. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org>
* s3:tests: Add test for checking that root is not allowed as home dirAndreas Schneider2018-12-051-0/+37
| | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13699 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Dec 5 05:22:43 CET 2018 on sn-devel-144
* s3:tests: Test for users connecting to their 'homes' shareAndreas Schneider2018-12-051-0/+99
| | | | | | | | | This adds a test for CVE-2009-2813. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13699 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* Add simple tests for net rpc share allowedusersOlly Betts2018-11-301-0/+30
| | | | | | Signed-off-by: Olly Betts <olly@survex.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* New testcase samba3.blackbox.net_rpc_join_credsOlly Betts2018-11-301-0/+30
| | | | | | | | Tests that you can now use a credentials file with net. Signed-off-by: Olly Betts <olly@survex.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:selftest: add a VSS test reading a streamRalph Boehme2018-11-271-0/+38
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13455 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:script/tests: add a test for VSS write behaviourRalph Boehme2018-11-271-0/+76
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13688 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* nsswitch: Run nsswitch thread testVolker Lendecke2018-11-011-0/+17
| | | | | | | | 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 Nov 1 05:06:23 CET 2018 on sn-devel-144
* s3:utils/smbget fix recursive download with empty source directoriesChristian Ambach2018-10-261-1/+37
| | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13199 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Oct 26 09:58:07 CEST 2018 on sn-devel-144
* s3:utils/smbget add error handling for mkdir() callsChristian Ambach2018-10-261-0/+24
| | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3:script/tests reduce code duplicationChristian Ambach2018-10-261-11/+15
| | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* PEP8: fix E128: continuation line under-indented for visual indentJoe Guo2018-09-061-2/+2
| | | | | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Sep 6 15:50:17 CEST 2018 on sn-devel-144
* PEP8: fix E101: indentation contains mixed spaces and tabsJoe Guo2018-09-062-281/+281
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: add a durable handle test with delayed disconnectRalph Boehme2018-08-311-0/+21
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13549 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* PEP8: fix E401: multiple imports on one lineJoe Guo2018-08-241-1/+3
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E305: expected 2 blank lines after class or function definition, ↵Joe Guo2018-08-241-0/+2
| | | | | | | | found 1 Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E302: expected 2 blank lines, found 1Joe Guo2018-08-241-0/+6
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E265: block comment should start with '# 'Joe Guo2018-08-241-2/+2
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E231: missing whitespace after ','Joe Guo2018-08-241-1/+1
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E225: missing whitespace around operatorJoe Guo2018-08-241-3/+3
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E222: multiple spaces after operatorJoe Guo2018-08-241-2/+2
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E202: whitespace before ')'Joe Guo2018-08-241-1/+1
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E201: whitespace after '('Joe Guo2018-08-241-1/+1
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3: tests: smbclient. Regression test to ensure we get ↵Jeremy Allison2018-08-101-0/+42
| | | | | | | | | | | | NT_STATUS_DIRECTORY_NOT_EMPTY on rmdir. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13204 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Aug 10 21:08:14 CEST 2018 on sn-devel-144
* s3/script/tests: Add simple (smb1 & smb2) get/set/list tests for smbcquotasNoel Power2018-07-313-0/+444
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13553 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3/script/test: modify existing smbcquota test to use SMB2 in addition to SMB1.Noel Power2018-07-311-2/+12
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13553 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:tests: Add test for smbclient --quietJustin Stephenson2018-06-261-0/+34
| | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13485 Signed-off-by: Justin Stephenson <jstephen@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Björn Baumbach <bb@sernet.de> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Jun 26 20:29:19 CEST 2018 on sn-devel-144
* s3: torture: Add DELETE-PRINT test.Jeremy Allison2018-06-011-0/+63
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13457 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: Add test for 'dfree cache'Christof Schmitt2018-05-251-0/+35
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13446 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>