summaryrefslogtreecommitdiff
path: root/source4/selftest/tests.py
Commit message (Collapse)AuthorAgeFilesLines
* CVE-2016-0771: tests/dns: change samba.tests.dns from being a unittestGarming Sam2016-02-241-1/+1
| | | | | | | | | | | This makes it easier to invoke, particularly against Windows. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11128 BUG: https://bugzilla.samba.org/show_bug.cgi?id=11686 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* CVE-2016-0771: tests/dns: RPC => DNS roundtrip testGarming Sam2016-02-241-0/+1
| | | | | | | | | | | | | | Make sure that TXT entries stored via RPC come out the same in DNS. This has one caveat in that adding over RPC in Windows eats slashes, and so fails there. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11128 BUG: https://bugzilla.samba.org/show_bug.cgi?id=11686 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:selftest: also run rpc.winreg with kerberos and all possible auth optionsStefan Metzmacher2015-07-121-0/+7
| | | | | | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11061 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jun 23 17:31:08 CEST 2015 on sn-devel-104 (cherry picked from commit 6dd117b21ef06da68af67051f2822f71193d193a) Autobuild-User(v4-1-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-1-test): Sun Jul 12 00:09:40 CEST 2015 on sn-devel-104
* s4:selftest: run rpc.echo tests also with krb5 krb5,sign krb5,sealStefan Metzmacher2015-07-111-1/+1
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11061 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 5b917fd6226952a1f792d1ad921d2ae54ab6ab42)
* selftest: use shared/libnss_wrapper_winbind.so.2Stefan Metzmacher2015-01-111-1/+1
| | | | | | | | | | | | | This library is always available in make test. nss-wrapper strictly requires the linux nss api. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9299 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (similar to commit 4eb24fa545234be506eb1330ccbbfd5c2b9e0d82)
* torture: Ensure that GSSAPI and SPNEGO packets are accepted by dlz_bind9Andrew Bartlett2013-09-061-1/+1
| | | | | | | | | | | | | | | | | | | This exercises some more of the dlz_bind9 code outside BIND, by sending in a ticket to be access checked, wrapped either in SPNEGO or just in GSSAPI. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Sep 4 11:25:10 CEST 2013 on sn-devel-104 (cherry picked from commit 38e43961c01f6f491b069e7106fe2a2ec80bd840) The last 6 patches address bug #9091 - When replicating DNS for bind9_dlz we need to create the server-DNS account remotely.
* selftest: Add a basic test of samba_upgradednsAndrew Bartlett2013-09-061-0/+1
| | | | | | | | | | | This does not check that the command runs correctly, but does at least check that the command runs to completion without errors. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 16b26eafa75280e576333975cff5dd1505c118fa)
* selftest: Improve test coverage of DRS (bug #8680)Matthieu Patou2013-05-231-25/+26
| | | | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Rename samba4.blackbox.upgradeprovision.py to ↵Andrew Bartlett2013-03-041-1/+1
| | | | | | | | | | samba4.blackbox.upgradeprovision.current This name matches the other upgradeprovision tests for older saved provisions. Andrew Bartlett Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: rename 'promoted_vampire_dc' to 'promoted_dc'Stefan Metzmacher2013-01-271-2/+2
| | | | | | | | | | Unix domain socket are limited to 104 characters on Linux. Using something like this fails as it uses more than 104 characters: '/memdisk/autobuild/flakey/b232141/samba/bin/ab/promoted_vampire_dc/private/smbd.tmp/msg/msg.482379.2147483647' Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Add test for rfc2307 mapping handlingAndrew Bartlett2013-01-101-0/+1
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-selftest: make sure to test rpc.samr.passwords.validate over ncacn_ip_tcp.Günther Deschner2012-12-121-1/+1
| | | | | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Dec 12 13:13:47 CET 2012 on sn-devel-104
* selftest: check that samba-tool gpo works for basic operationsAndrew Bartlett2012-11-061-0/+7
| | | | | Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* samba-tool: Add samba-tool processes subcommandAndrew Bartlett2012-10-311-0/+1
| | | | | | | | | | | This will allow administrators to inspect the process list in a similar way to what running on a platform with setproctitle might permit. --pid= returns the registered server names for a PID (eg kdc, cldap_server) --name= returns the pids registered with a particular name. Andrew Bartlett
* source4.selftest.tests: Add FIXME about database verification.Jelmer Vernooij2012-10-271-0/+2
|
* source4.selftest.tests: Add suffix for smbclient4/nmblookup4.Jelmer Vernooij2012-10-271-16/+16
|
* selftesthelpers: Add function for printing smbtorture4 version.Jelmer Vernooij2012-10-271-2/+1
|
* selftest: Move determining of smbtorture4 options to selftesthelpers.Jelmer Vernooij2012-10-271-10/+7
|
* selftest/selftesthelpers: Share environment handling for extra smbtorture ↵Jelmer Vernooij2012-10-271-6/+6
| | | | options.
* selftesthelpers: Share code for listing smbtorture4 tests.Jelmer Vernooij2012-10-271-13/+0
|
* source4.selftest.tests: Rename plansmbtorturesuite() to plansmbtorture4suite().Jelmer Vernooij2012-10-271-60/+60
|
* source4.selftest.tests: Consistent naming of smbtorture binary.Jelmer Vernooij2012-10-271-25/+25
|
* selftest: Move more tests to common list script.Jelmer Vernooij2012-10-121-29/+0
| | | | | Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Fri Oct 12 02:06:42 CEST 2012 on sn-devel-104
* selftest: Move some tests to common test script.Jelmer Vernooij2012-10-111-2/+0
|
* samba4-tests: Move 'samba.tests.source' up.Jelmer Vernooij2012-09-271-1/+0
| | | | | | | | We would like to run this as early as possible so we get a quick failure when there is trailing whitespace. Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Thu Sep 27 20:26:27 CEST 2012 on sn-devel-104
* s4 dns: Add libaddns-based simple testsKai Blin2012-09-121-0/+2
|
* s4 dns: Run python tests in fl2003dc envKai Blin2012-09-121-1/+2
|
* s4:selftest: run thet dlz_bind9. tests in the chgdcpass envStefan Metzmacher2012-09-121-1/+1
| | | | metze
* selftest: Add tests for the dlz_bind9 moduleAndrew Bartlett2012-09-061-0/+4
| | | | | | | | This will help ensure that we do not break the fundemental loading etc. From here, it should be easy to extend this to more comprehensive tests. Andrew Bartlett
* selftest: Add a test for smbclient --machine-pass without secrets.tdbAndrew Bartlett2012-08-291-1/+1
| | | | | | | Errors in handling the upgrade case without a matching secrets.tdb caused segfaults in the server. This essentially tests both sides. Andrew Bartlett
* selftest: Add test of smbclient --machine-pass against and using both s3 and s4Andrew Bartlett2012-08-281-0/+3
| | | | | | This uses both smbclient binaries to ensure that both work in both environments. Andrew Bartlett
* s4-selftest: Add testing of samba-tool ntacl sysvolresetAndrew Bartlett2012-08-231-0/+1
|
* selftest: Add a test of the NT ACL -> posix ACL mapping layer to selftestAndrew Bartlett2012-08-231-0/+1
|
* s3-libsmb: Add a simple test for python bindingsVolker Lendecke2012-08-161-0/+2
| | | | | | | 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
* selftest: Rename samba4.blackbox.pdbtest to samba.blackbox.pdbtestAndrew Bartlett2012-08-081-1/+1
| | | | | | | | | This test covers s3dc as well. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Aug 8 09:57:14 CEST 2012 on sn-devel-104
* s4-selftest: do a dbcheck on our two vampire DCsAndrew Bartlett2012-07-061-1/+1
| | | | | | | | | | | However, due to using --domain-critical-only we have to knownfail the vampire DC here, as we do not fill in the backlinks on non-critical objects correctly. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Jul 6 16:54:10 CEST 2012 on sn-devel-104
* s4-selftest: Don't run lsarpc requiring a named pipe over tcpip.Andreas Schneider2012-07-061-1/+1
|
* s4-selftest: Don't plan lsa.secrets tests over tcpip.Andreas Schneider2012-07-061-4/+4
| | | | These will only work over a named pipe or ncalrpc.
* s4-selftest: Test samba-tool domain dcpromoAndrew Bartlett2012-07-061-1/+2
| | | | | | | This needs a new environment to test it properly. This requires a raise in the number of socket wrapper interfaces. Andrew Bartlett
* selftest: run pdbtest against s3dc as wellAndrew Bartlett2012-06-281-1/+1
| | | | | | | | | | | | This validates the password expiry, account disable in the s3 auth code and the save/restore of values in tdbsam. It also provides the first test of some net sam set subcommands. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Jun 28 20:39:38 CEST 2012 on sn-devel-104
* selftest: use a loop rather than declare tests for both dc and s3dcAndrew Bartlett2012-06-281-16/+16
|
* s4-selftest: expand passdb testingAndrew Bartlett2012-06-271-0/+1
| | | | This tests pdb_samba4 in the first instance
* s4-selftest: Add tests for dbcheck on an old database that needs repairAndrew Bartlett2012-06-161-0/+2
| | | | | | | | | We changed a lot since alpha13, so there are lots of legitimate errors to fix. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Jun 16 05:44:15 CEST 2012 on sn-devel-104
* s4-selftest: Test samba-tool drs replicate --local --full-syncAndrew Bartlett2012-06-111-1/+1
|
* s4:selftest: change the blackbox.samba_tool_demote test to use a binary ↵Michael Adam2012-05-311-1/+1
| | | | mapping for smbclient
* s4:selftest: change the blackbox.passwords test to use a binary mapping for ↵Michael Adam2012-05-311-1/+1
| | | | smbclient
* s4:selftest: change the blackbox.pkinit test to use a binary mapping for ↵Michael Adam2012-05-311-1/+1
| | | | smbclient
* s4:selftest: change the blackbox.kinit test to use a binary mapping for ↵Michael Adam2012-05-311-3/+3
| | | | smbclient
* s4:selftest: change the blackbox.export.keytab test to use a binary mapping ↵Michael Adam2012-05-311-1/+1
| | | | for smbclient
* s4:selftest: change the blackbox.chgdcpass test to use a binary mapping for ↵Michael Adam2012-05-311-1/+1
| | | | smbclient