summaryrefslogtreecommitdiffstats
path: root/selftest
Commit message (Collapse)AuthorAgeFilesLines
* Remove another call to addUnexpectedSuccess with too many arguments.Jelmer Vernooij2015-03-061-1/+1
| | | | | | Change-Id: I5f1917e74ffd57b5ae228231c27fbdf70de2992f Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* TestCase.addUnexpectedSuccess doesn't take an error.Jelmer Vernooij2015-03-061-3/+3
| | | | | | Change-Id: I90f7dd225d9ed3cbc515292de9a37a816ac0639f Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Use samba TestCase so we get all compatibility functions on Python < 2.7.Jelmer Vernooij2015-03-063-3/+3
| | | | | | Change-Id: Iba87e3c8fa9331c4d5438ab60a8385379da634d7 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Use Samba TestCase class, as the python 2.6 one doesn't have assertIs, ↵Jelmer Vernooij2015-03-062-2/+2
| | | | | | | | assertIsInstance or addCleanup. Change-Id: I3daeffade0dac9795f61f91ee0da35fee0143a38 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Drop support for failfast mode, rather than adding support for it everywhere.Jelmer Vernooij2015-03-061-4/+0
| | | | | | Change-Id: I4d6070a0e3b89d5e390f84754dddba9ec17ddf21 Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Fix use of iso8601.Utc.Jelmer Vernooij2015-03-061-1/+2
| | | | | | Change-Id: Id592571a173eff36e2fb9b395f61a6fb53d580e6 Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Set failfast property for test reporters that need it.Jelmer Vernooij2015-03-061-0/+4
| | | | | | Change-Id: Ibd632b9f569c23e60bcd13bcff805e367dd2e71c Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Support using third party iso8601 module if system doesn't provide one.Jelmer Vernooij2015-03-061-1/+1
| | | | | | Change-Id: I5d035738d244d66d33788636c8ee8b322c227a0e Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* subunithelper: Fix progress support.Jelmer Vernooij2015-03-061-1/+8
| | | | | | Change-Id: I5dd2ca0f3bc02821d5c9e1dc878bba577667d162 Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Use iso8601 from the system, rather than the one bundled with subunit.Jelmer Vernooij2015-03-061-1/+1
| | | | | | Change-Id: I681bf79eb9ebe45b6972b3783c8e799eb612400b Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* format-subunit: Remove import of unnecessary third party modules testtools ↵Jelmer Vernooij2015-03-061-6/+1
| | | | | | | | and subunit. Change-Id: I3403ceacf8bbdf075c1c540081f7c3e82f4751bc Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* filter-subunit: Remove import of unnecessary third party modules testtools ↵Jelmer Vernooij2015-03-061-5/+0
| | | | | | | | and subunit. Change-Id: I6ed0c560c18b4001c7adb9af6f67535640a1b374 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Add basic tap2subunit converter, rather than relying on the one from ↵Jelmer Vernooij2015-03-062-23/+133
| | | | | | | | subunit-tools. Change-Id: I39ec5ec68c7c3c9d329d8f1a8ce01445b85c7ab8 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Fix handling of unexpected failures in subunithelper.Jelmer Vernooij2015-03-061-1/+1
| | | | | | Change-Id: I0da9fcec4a54c43c171b76bb9015ea84389c9bc6 Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Use samba.subunit in selftest.subunithelper, except for iso8601.Jelmer Vernooij2015-03-061-44/+38
| | | | | | Change-Id: Iec43e0368db91dbe981b39ac8388b50c1eafee0c Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Use samba.subunit in selftest/selftest.py.Jelmer Vernooij2015-03-061-1/+1
| | | | | | Change-Id: I804c16cdfcfddc5643a5af158ee62c4ddf478979 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Use Samba-only subunit module in selftest/tests/.Jelmer Vernooij2015-03-062-10/+12
| | | | | | Change-Id: I48c61f975c1fa49f6e244ad39dd720fe507db45b Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Use samba.subunit.run to run subunit tests.Jelmer Vernooij2015-03-061-14/+1
| | | | | | Change-Id: Id9bdd33b7ac5e4db40ab8bef4dbe0f04c36d8da7 Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest/tests/*.py: remove use of testtools.Jelmer Vernooij2015-03-066-7/+5
| | | | | | Change-Id: Ia692c6b3037b7d867310c3793980f9f953d31680 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: re-enable nsswrapper integration testing for dc and member ↵Michael Adam2015-03-021-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | environments. There are some failures: - The dc environment fails consistently due to duplicate uid, (for the calling user and the domain administrator). ==> Marked as knownfail. - The s3member environment only fails under very strange circumstances: - one needs to run the unix.whoami test in the member and s3member environment for the local.nss test to fail in the s3member:local env. The failure is then related to builtin administrators sharing a gid with a different group. --> This is really really strange!!! ==> Marked as knownfail. Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Mon Mar 2 19:50:55 CET 2015 on sn-devel-104
* selftest: shuffle msdfs-share DFS referral responsesDavid Disseldorp2015-02-281-1/+3
| | | | | | | | | | | | Add a secondary server path to the msdfs-src1 DFS link, and test "msdfs shuffle referrals" behaviour during selftest using the existing samba3.blackbox.smbclient_s3 suite. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Feb 28 01:22:36 CET 2015 on sn-devel-104
* torture: Add netr_setPassword(2) schannel test.Andreas Schneider2015-02-232-0/+51
| | | | | | | | | | | | Thanks to Florian Weimer <fweimer@redhat.com> for the help to write this torture test. Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Karolin Seeger <kseeger@samba.org> Autobuild-Date(master): Mon Feb 23 20:01:01 CET 2015 on sn-devel-104
* Remove documentation for testsuite-count subunit extension, which is no ↵Jelmer Vernooij2015-02-171-6/+0
| | | | | | | | | longer used. Change-Id: Ie7f671fdac4f878e1eea157ee7e300977a68deb0 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Update selftest README to point at upstream subunit repository for protocol ↵Jelmer Vernooij2015-02-171-16/+17
| | | | | | | | | description. Change-Id: I50c2a5e9847d269486cb5157357592004779704a Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: re-enable nss_winbind via nss_wrapper in the test-envs.Günther Deschner2015-02-132-0/+10
| | | | | | | | | | | | | | | | | | | | | Without exporting these new variables, we can never access or test nss_winbind from the selftest environments. This shows that our posixacl test probably needs fixing since now two subtests fail against plugin_s4_dc:local. This env was just not complete without winbind in nsswitch. The test failure is probably due to the strangeness of the AD/DC setup that the domain administrator uses the same uid as the root user, which in the selftest case is overridden to be the calling user. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Pair-Programmed-With: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Fri Feb 13 20:57:12 CET 2015 on sn-devel-104
* s4-selftest: push up the "users" gid to make gid collision more unlikely.Günther Deschner2015-02-131-2/+2
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:selftest: avoid creating two groups with GID 0 in provisionMichael Adam2015-02-131-4/+5
| | | | | | | Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:selftest: avoid creating two entries for UID 0 in provisionMichael Adam2015-02-131-4/+5
| | | | | | | | Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: run the samba.nss tests against :local environmentsMichael Adam2015-02-131-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* selftest/knownfail: add newline to end of file.Michael Adam2015-02-131-1/+1
| | | | | | | git always complains about what vim does to the file... Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* selftest: Run krb5.kdc with an account that has a UPN and an SPNAndrew Bartlett2015-02-081-0/+2
| | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz>
* selftest: fix check for RODC and RID Set allocationStefan Metzmacher2015-02-021-1/+1
| | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Feb 2 01:10:18 CET 2015 on sn-devel-104
* selftest: Fix typo namerserver -> nameserver.Jelmer Vernooij2015-01-301-2/+2
| | | | | | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Jan 30 19:59:40 CET 2015 on sn-devel-104
* selftest: Run krb5.kdc test against users with a UPNAndrew Bartlett2015-01-231-0/+22
| | | | | | | | | | | This tests both a UPN in our own realm, and a UPN with a non-realm suffix. Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Jan 23 08:10:07 CET 2015 on sn-devel-104
* torture-krb5: Add tests for combinations of enterprise, cannon, and ↵Andrew Bartlett2015-01-231-1/+7
| | | | | | | | | | | different input principals This combinational test confirms the interactions between a number of differnet kerberos flags and principal types. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz>
* torture: Extend krb5.kdc test to confirm correct RODC proxy behaviourAndrew Bartlett2015-01-231-0/+11
| | | | | | | | | | | The RODC should answer some requests locally, and others it should defer to the main DC. We can tell which KDC we talk do by the KVNO of the encrypted parts that are returned to the KDC. Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* torture: Extend KDC test to cover more options and modesAndrew Bartlett2015-01-231-0/+4
| | | | | | Signed-off-by: Garming Sam <garming@catalyst.net.nz> Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* torture: Additionally run testsuite for krb5 and KDC behaviour with ↵Andrew Bartlett2015-01-231-0/+21
| | | | | | | | unprivileged accounts Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* selftest: use env.SELFTEST_PREFIX to define subunit_cacheStefan Metzmacher2015-01-191-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3: auth - tests: Add test for "force user" being a unix-only user, not in ↵Jeremy Allison2015-01-141-0/+4
| | | | | | | | | | | | passdb. https://bugzilla.samba.org/show_bug.cgi?id=11044 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Jan 14 08:46:08 CET 2015 on sn-devel-104
* selftest: fix dns_host_file in samba3 targetGarming Sam2015-01-071-1/+1
| | | | | | | | | | | When setting up s3member twice in a row, the join ending up attempting kerberos and using an old ticket in the st folder, failing with bad credentials. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jan 7 03:58:10 CET 2015 on sn-devel-104
* selftest: use shared/libnss_wrapper_winbind.so.2Stefan Metzmacher2014-12-191-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>
* selftest: Use resolv_wrapper in the samba3 targets to join AD.Andreas Schneider2014-12-181-11/+60
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Use resolv_wrapper in the samba4 target.Andreas Schneider2014-12-182-15/+90
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Always enable dns fakeing.Andreas Schneider2014-12-181-2/+6
| | | | | | | | FIXME: This should be removed once we fixed adding records to the DNS server using nsupdate! Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Define if we should fake dns resolving.Andreas Schneider2014-12-182-1/+15
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Wait for the logon server to register to join the member.Andreas Schneider2014-12-181-0/+17
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Print better DC provisioning info.Andreas Schneider2014-12-181-3/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Also pass the IPv6 address for the KDC around.Andreas Schneider2014-12-181-17/+49
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Preload resolv_wrapper in selftest.Andreas Schneider2014-12-182-0/+12
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>