summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/tests
AgeCommit message (Collapse)AuthorFilesLines
2012-08-23selftest: Cope with the multiple possible representations of -1 in posixacl.pyAndrew Bartlett1-28/+29
2012-08-23selftest: Extend posixacl test to check the actual ACLAndrew Bartlett1-2/+274
Needing to be able to write this test is the primary reason I have been reworking the VFS and posix ACL layer over the past few weeks. By exposing the POSIX ACL as a IDL object we can eaisly manipulate it in python, and then verify that the ACL was handled correctly. This ensures the when we write an ACL in provision, that it will indeed allow that access at the FS layer. We need to extend this beyond just the critical two ACLs set during provision, to also include some special (hard) cases involving the merging of ACE entries, as this is the most delicate part of the ACL transfomation. A similar test should also be written to read the posix ACL and the mapped NT ACL on a file that has never had an NT ACL set. Andrew Bartlett
2012-08-23selftest: Add a test of the NT ACL -> posix ACL mapping layerAndrew Bartlett1-0/+131
This is the start of what will be a series of tests confirming exactly how some NT ACLs are mapped to posix ACLs. Andrew Bartlett
2012-08-23s4-scripting: Redefine getntacl() as accessing via the smbd VFS or directlyAndrew Bartlett1-2/+2
This allows us to write tests that compare the smbd vfs with what is in the DB or xattr. Andrew Bartlett
2012-08-16s3-libsmb: Add a simple test for python bindingsVolker Lendecke1-0/+78
Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Aug 16 22:49:06 CEST 2012 on sn-devel-104
2012-08-15s4-selftest: Fix test name for samba.tests.dcerpc.bareAndrew Bartlett1-1/+1
2012-08-07s4-scripting: Remove unused variables from ntacl testsAndrew Bartlett1-10/+0
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 7 11:15:41 CEST 2012 on sn-devel-104
2012-06-15lib/param: Use server role = 'standalone server' to be consistant with ↵Andrew Bartlett1-2/+5
member server standalne is left as an alias. Andrew Bartlett
2012-06-12s4:tests: fix use of a non-existent word (existant)Michael Adam3-4/+4
2012-06-06s4 dns: Correctly handle A questions for CNAMEsKai Blin1-0/+76
When an A/AAAA lookup is made for a name that actually is a CNAME record, we need to return the CNAME record, and then do the A/AAAA lookup for the name the CNAME points at. This still fails for CNAMEs pointing at records for domains we need to ask our forwarders for. Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Wed Jun 6 15:23:55 CEST 2012 on sn-devel-104
2012-06-06s4 dns: Structure tests a bit betterKai Blin1-0/+3
2012-05-03s4-samba-tool: make new samba-tool group listmembers use samAccountNameAndrew Bartlett1-2/+2
This is the unique username value. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu May 3 01:57:41 CEST 2012 on sn-devel-104
2012-05-03Extension to the samba-tool group subcommand functionality to allow listing ↵Lukasz Zalewski1-0/+19
of the members of an AD group
2012-03-19s4:selftest: add test for "samba-tool group list"Michael Adam1-0/+22
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Mar 19 02:30:39 CET 2012 on sn-devel-104
2012-03-18s4:selftest: add a new testsuite for the "samba-tool group" commandMichael Adam1-0/+128
2012-03-15samba.tests.source: Verify that only executable python files (and only ↵Jelmer Vernooij1-1/+20
executable files) have a shebang line.
2012-03-15s4:selftest: remove python shebang accidentially re-added to the "samba-tool ↵Michael Adam1-2/+0
user" test Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Mar 15 16:17:54 CET 2012 on sn-devel-104
2012-03-15s4:selftest: fix message typo in test for "samba-tool user list"Michael Adam1-1/+3
Spotted by kukks - thanks. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Mar 15 14:24:29 CET 2012 on sn-devel-104
2012-03-14s4:selftest: fix a message-typo in the "samba-tool user" testsuite.Michael Adam1-1/+1
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Mar 14 21:19:11 CET 2012 on sn-devel-104
2012-03-14s4:selftest: add a new test for "samba-tool user list"Michael Adam1-1/+27
2012-03-13s4-python: Add missing python source file encoding.Andreas Schneider1-0/+2
See http://www.python.org/dev/peps/pep-0263/ Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Tue Mar 13 19:31:09 CET 2012 on sn-devel-104
2012-03-13s4-python: Remove env from non-executable samba_tool scripts.Andreas Schneider2-4/+0
2012-03-13s4-python: Remove env from non-executable dcerpc scripts.Andreas Schneider11-21/+4
2012-03-13s4-python: Remove execute flag from non-executable rpc_talloc script.Andreas Schneider1-0/+0
2012-03-13s4-python: Remove env from non-executable blackbox test scripts.Andreas Schneider2-3/+0
2012-03-13s4-python: Remove execute flag from ndrdump blackbox script.Andreas Schneider1-0/+0
2012-03-13s4-python: Remove env from non-executable test scripts.Andreas Schneider28-57/+0
2012-03-11s4 dns: Test deleting records and fix a small buKai Blin1-0/+39
Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Sun Mar 11 02:27:45 CET 2012 on sn-devel-104
2012-03-11s4 dns: Clean up tests a bitKai Blin1-2/+1
2012-03-11s4 dns: Support TXT updates, add testsKai Blin1-0/+81
2012-03-10samba.tests.blackbox.samba_tool_drs: Remove unused import.Jelmer Vernooij1-1/+0
2012-03-10samba.tests.samba_tool.base: Avoid unnecessary call to ↵Jelmer Vernooij1-2/+1
testtools.matchers.Contains. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 10 05:27:51 CET 2012 on sn-devel-104
2012-03-10samba.tests.samba_tool.user: Remove unused imports.Jelmer Vernooij1-2/+0
2012-03-06s4 dns: Fix TCP handling in the DNS serverKai Blin1-0/+34
Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Mar 6 21:17:19 CET 2012 on sn-devel-104
2012-03-06policy/python: Move python binding tests to standard location.Jelmer Vernooij1-0/+36
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Mar 6 02:26:29 CET 2012 on sn-devel-104
2012-02-27samba.xattr: Massively simplify copytree_with_xattrs.Jelmer Vernooij1-1/+24
2012-02-26provision: Simplify make_smbconf a bit.Jelmer Vernooij1-2/+2
2012-02-26provision: Add tests for determine_netbios_name.Jelmer Vernooij1-0/+9
2012-02-26provision: Split out result reporting for backends.Jelmer Vernooij1-1/+3
2012-02-26provision: Put adminpass details in ProvisionResult.Jelmer Vernooij1-9/+15
2012-02-26provision/tests: Test for phpldapadminconfig path.Jelmer Vernooij1-3/+21
2012-02-26provision: Leave result reporting up to caller.Jelmer Vernooij1-2/+3
2012-02-25provision: Start splitting out provision result reporting from actual ↵Jelmer Vernooij1-2/+33
provisioning. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Feb 25 22:13:10 CET 2012 on sn-devel-104
2012-02-25Factor out sanitize_server_role.Jelmer Vernooij1-1/+18
2012-02-18s4-python: Various formatting fixes.Jelmer Vernooij6-9/+15
2012-02-10tests/source: Add wafsamba/ files to list of Python files to check.Jelmer Vernooij1-2/+16
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Feb 10 01:45:16 CET 2012 on sn-devel-104
2012-01-24python: Change except: statement to except Exception:Amitay Isaacs1-1/+1
This way we only catch true exceptions and keyboard interrupts are not caught here. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 24 03:32:40 CET 2012 on sn-devel-104
2012-01-12s4:pygensec/tests: add test for gensec_set_max_update_size()Stefan Metzmacher1-0/+54
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jan 12 14:47:05 CET 2012 on sn-devel-104
2012-01-10s4:python tests __init__.py - do not depend on "subprocess.check_call()"Matthias Dieter Wallnöfer1-1/+4
Method not present in Python 2.4 Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Jan 10 00:41:59 CET 2012 on sn-devel-104
2012-01-09s4:python tests __init__.py - do not depend on "subprocess.CalledProcessError"Matthias Dieter Wallnöfer1-6/+11
The class is not present in Python 2.4 Reviewed-by: Jelmer