summaryrefslogtreecommitdiff
path: root/selftest/selftest.pl
Commit message (Collapse)AuthorAgeFilesLines
* selftest: explicitly set "client min protocol = CORE"Stefan Metzmacher2019-07-081-0/+1
| | | | | | | | | This is the current default and what 'make test' assumes currently. The next commit will change the default to disable SMB1. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* selftest: Add linux namespace support (USE_NAMESPACES=1)Tim Beale2019-05-311-0/+10
| | | | | | | | | | | | | | | | | | | | | | This hooks up the selftest/ns/* scripts added earlier with the selftest system, so developers can optionally run a testenv or test using linux namespaces instead of socket-wrapper. The idea is this is experimental functionality that we can extend further in future, in order to make testing Samba more versatile. + The top-level WAF script now does an 'unshare' to create a new top-level 'selftest' namespace in which to create the testenv(s). + selftest.pl creates a common 'selftest0' bridge to connect together the individual DCs. + Update Samba.pm so it can use real IPs instead of loopback addresses. In fork_and_exec(), we add a couple of hooks so that the binary gets started in a different namespace (using unshare/start_in_ns.sh), and the parent process connects the new child namespace up to the common selftest0 bridge (using add_bridge_iface.sh). Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Allow for wider range of terminals (besides xterm)Tim Beale2019-05-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow developers to override the default @term_args, as well as the terminal itself. Currently, due to the nature of the args we pass to xterm (i.e. 'echo -e "blah.." && bash'), it doesn't make it very flexible for use with other terminals. By dropping these additional @term_args, it makes it much easier to slot in an alternative terminal. For example, these commands now work (more or less). TERMINAL="terminator" TERMINAL_ARGS="-x bash" \ SELFTEST_TESTENV=ad_dc make testenv TERMINAL="bash" TERMINAL_ARGS="" \ SELFTEST_TESTENV=nt4_dc make testenv TERMINAL="bash" TERMINAL_ARGS="--norc" \ SELFTEST_TESTENV=none make testenv bash is usable, but a little weird because its output is still being piped. Also bash with ad_dc is a little weird because we're using tee for the DC's stdout. (I'd also recommend --norc, as it makes it easier to differentiate between the testenv shell). Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Restore IPs 12-16 for selftest clientTim Beale2019-03-271-1/+4
| | | | | | | | | | | | | | | The assumption that tests only used the .11 IP was wrong. The winsreplication test tries to use multiple different IPs - CI doesn't fail when we remove the additional IPs, but it starts to skip test cases. + Update get_interfaces_config() and get_ipv4_addr() so we can add multiple different IPs for the same host. + Update selftest.pl so the client gets 6 IP addresses. + Update comments to better reflect this dependency. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Increase nss_wrapper max host entries handlingAndreas Schneider2019-03-221-0/+3
| | | | | | | | The logs are spammed with: nwrap_ed_inventarize_add_new: Hash table is full (Cannot allocate memory)! Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* selftest: Use new helper function for client's smb.conf IPTim Beale2019-03-141-1/+1
| | | | | | | | | This has the side-effect of giving the client an IPv6 address, which it hasn't had up until now. But it at least makes the client and server interfaces settings consistent, and gets rid of a hard-coded IP address. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Remove secondary client interfacesTim Beale2019-03-141-6/+1
| | | | | | | | | | | | | I can't see anything in the tests that ever tries to use these other IP addresses. While it makes sense that we might want the tests to simulate multiple different clients (with different IPs), we don't appear to do this currently. Removing the spare client addresses minimizes the number of hard-coded IP addresses in selftest. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Move @exported_envvars into Samba.pmTim Beale2019-03-121-98/+4
| | | | | | | | This brings it closer to the code that actually sets these variables (i.e. Samba3/4.pm). Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Remove unused SELFTEST_INTERFACESTim Beale2019-03-121-5/+0
| | | | | | | This doesn't appear to be used anywhere and dates back to 2008. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: force running with TZ=UTCStefan Metzmacher2019-02-271-0/+3
| | | | | | | | 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): Wed Feb 27 11:24:59 UTC 2019 on sn-devel-144
* selftest: Abort if we fail to startup testenv with '--one' optionTim Beale2019-02-201-1/+5
| | | | | | | | | | The --one selftest.pl option means abort when the first test fails. However, when 'make test' fails to startup a testenv, it'll try to continue and run other tests by default. When '--one' is used, selftest.pl can just die() at that point. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Remove need for $RODC_DC_SERVER env variableTim Beale2019-02-181-3/+0
| | | | | | | | Same deal as earlier patch - we can use the $SERVER env variable instead and avoid the need for this extra variable. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Remove unused environment variablesTim Beale2019-02-181-40/+0
| | | | | | | | | | | | | | | | | | We only really want generic environment variables. For 2+ DC environments, we have the $SERVER and $DC_SERVER (aka PDC) variables. However, lots of testenvs also export really specific environment variables, e.g. VAMPIRE_2000_DC_SERVER_IP (despite that testenv being only used for a single test case). Previously the <testenv>_SERVER variable was used for DRS tests, but we can avoid the need to do this now. The other variables are not used at all. The RODC and TRUST environment variables are still used by a few tests. SUBDOM_DC_SERVER is only used within Samba4.pm and not exported. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Export DC conf path for special casesTim Beale2019-02-181-0/+7
| | | | | | | | | | | | | | | | | | | | | In a few rare cases, a test needs to assert aspects both client-side and server-side aspects. A typical example would be the audit logging, which is exercising client-side behaviour, but also asserting the server-side logging. Usually this has involved a kludge in tests.py to either use socket-wrapper explicitly, or hardcode in the server smb.conf path. This patch exposes the existing SERVERCONFFILE env variable to the tests. DC_SERVERCONFFILE has been added for 2 DC testenvs, where we need the PDC's smb.conf. The benefit of doing this way is the filepath/testenv-dependency logic is all self-contained with the Perl code, and it doesn't bleed out into tests.py as well. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Add new test to run krb5.kdc.canon against a user with an SPN for ↵Andrew Bartlett2018-09-051-0/+1
| | | | | | | | | | a UPN The failures in this test compared with Windows Server 1709 are added to knownfail. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* selftest: Remove excption for NSS_WRAPPER_HOSTS and RESOLV_WRAPPER_HOSTSAndrew Bartlett2018-09-031-5/+1
| | | | | | | These must be set correctly for each command in provision also. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* selftest: Allow make test to run with --address-sanitizerAndrew Bartlett2018-05-031-0/+11
| | | | | | | | Recent GCC versions enforce that the library must be in LD_PRELOAD if linked to a plugin (like a python module). Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* selftest: consistently produce high-res UTC timeJamie McClymont2018-03-221-3/+4
| | | | | | | | | | | | | | | Currently some subunit reporters throughout the codebase provide low-res time, meaning timestamps jump back and forth in the subunit file. Also, some subunit reporters produce UTC timestamps while others produce local time. UTC was chosen as the standard for this commit since all of the timestamps end with a Z (= Zulu = UTC). Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Mar 22 13:26:44 CET 2018 on sn-devel-144
* selftest: Clear environment before provisionJamie McClymont2018-03-221-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, if an environment is being provisioned after a test which used ad_member_rfc2307, the provisioning process has all of the following in its environment: { 'DC_NETBIOSNAME' => 'LOCALDC', 'DC_PASSWORD' => 'locDCpass1', 'DC_SERVER_IP' => '127.0.0.21', 'DC_SERVER_IPV6' => 'fd00:0000:0000:0000:0000:0000:5357:5f15', 'DC_SERVER' => 'localdc', 'DC_USERNAME' => 'Administrator', 'DOMAIN' => 'SAMBADOMAIN', 'LOCAL_PATH' => '/.../st/ad_member_rfc2307/share', 'LOCK_DIR' => '/.../st/ad_member_rfc2307/lockdir', 'NETBIOSNAME' => 'RFC2307MEMBER', 'NMBD_SOCKET_DIR' => '/.../st/ad_member_rfc2307/nmbd', 'NSS_WRAPPER_GROUP' => '/.../st/ad_member_rfc2307/private/group', 'NSS_WRAPPER_HOSTNAME' => 'rfc2307member.samba.example.com', 'NSS_WRAPPER_HOSTS' => '/.../st/hosts', 'NSS_WRAPPER_MODULE_FN_PREFIX' => 'winbind', 'NSS_WRAPPER_MODULE_SO_PATH' => '/.../bin/default/nsswitch/libnss-wrapper-winbind.so', 'NSS_WRAPPER_PASSWD' => '/.../st/ad_member_rfc2307/private/passwd', 'PASSWORD' => 'loCalMemberPass', 'REALM' => 'SAMBA.EXAMPLE.COM', 'RESOLV_WRAPPER_HOSTS' => '/.../st/dns_host_file', 'SELFTEST_WINBINDD_SOCKET_DIR' => '/.../st/ad_member_rfc2307/winbindd', 'SERVER_IP' => '127.0.0.34', 'SERVER_IPV6' => 'fd00:0000:0000:0000:0000:0000:5357:5f22', 'SERVER' => 'RFC2307MEMBER', 'USERID' => '55668', 'USERNAME' => 'jamiemcclymont', } Unsurprisingly, some of these can cause issues for the provisioning process, if a reduced subset of tests is being run which causes the provision to encounter never-before-seen pairs of adjacent environments. For example, a run with only TESTS='--include-env=vampire_dc --include-env=ad_member_rfc2307' would fail to start up the vampire_dc with: Could not find machine account in secrets database: Failed to fetch machine account password from secrets.ldb: Could not find entry to match filter: '(&(flatname=SAMBADOMAIN)(objectclass=primaryDomain))' base: 'cn=Primary Domains': No such object: dsdb_search at ../source4/dsdb/common/util.c:4641 Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: generate a ramdon domain sid during provision and export as ↵Stefan Metzmacher2018-03-191-0/+3
| | | | | | | | | | | SAMSID/[TRUST_]DOMSID This will be useful for future tests. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13300 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: Fail testsuite on unknown environmentJamie McClymont2018-02-241-2/+2
| | | | | | | | | | | | | | The status quo was that tests in typo'd/unknown environments would be skipped. This was a side effect of the mechanism by which samba3 tests were run, which has now been changed. For an example of this being a problem in the past, see commit 523bd03f (which fixes an issue I noticed when reading subunit logs, and which did not fail the test). Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* selftest: change technique for running specific envsJamie McClymont2018-02-211-27/+7
| | | | | | | | | | | | | | | | | | | Currently testsuites excluded with --exclude/--include-env are skipped when encountered in the middle of a run, so they are included in progress reporting, and the @todo list does not accurately show what will be done. This change skips them earlier, preventing them from being added to @todo, as is done with pattern-based including/excluding. As well as making the progress indicator more accurate, this means that selftest.pl can use @todo to determine when we are finished with an environment. Signed-off-by: Jamie McClymont <jamiemcclymont@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): Wed Feb 21 07:47:58 CET 2018 on sn-devel-144
* selftest: move to declaratively specifying environments and their dependenciesJamie McClymont2018-02-211-6/+8
| | | | | | | | | | | | | | This removes the tangle of code for starting up dependencies, and allows selftest.pl to query dependencies (hence it can know when things can be shut down early and how to order environments for optimal memory usage - that patch not yet submitted). It also removes the slightly hacky special-casing of the ad_members, and sets $target->{vars} centrally (so each setup_ function does not need to). Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: remove prototypes from some subroutine templatesJamie McClymont2018-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rationale, as sent to samba-technical: > Why do you remove the explicit argument declarations for so many functions? > These declarations help catch usage errors, i.e. wrong number of calling > arguments, especially when you add arguments to functions. My understanding is that because these are object methods, the prototypes actually were not providing the checking benefits [see PERLSUB(1) (section "Prototypes")] -- this is evidenced by the fact that some of the prototypes I removed actually had the wrong number of arguments! Now that the subroutines are being dynamically called by function references, the checking also appears not to apply [see the same source]. There was also a more concrete reason: the setup code will automatically set up multiple environment dependencies and pass each of their vars as an individual parameter. Accomplishing this was [seemingly] impossible with the prototypes in place. Additionally, there seems to be a consensus among perl devs that prototypes are generally harmful: see this post (by my colleague) for example: http://www.perlmonks.org/?node_id=406231 Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Add RODC variables to list of those exportedGarming Sam2018-02-151-0/+6
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13269 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: allow more time for testsDouglas Bagnall2017-12-291-2/+2
| | | | | | | | | | | Maybe make test *should* run in under 4 hours, but it currently doesn't. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Dec 29 02:48:59 CET 2017 on sn-devel-144
* selftest: apply NSS_WRAPPER_HOSTNAME to child processesJamie McClymont2017-12-201-0/+1
| | | | | | | | | | | | | | | | | Currently, Samba3.pm returns a value for NSS_WRAPPER_HOSTNAME in provision, but selftest.pl does not apply it, so Samba3.pm /also/ sets it in its own environment. This breaks a command like this: make test TESTS="samba3.blackbox.smbclient_ntlm.plain samba3.rpc.samba3.netlogon" ... since samba3.blackbox.smbclient_ntlm.plain runs in an nt4_member env, thereby setting ENV{NSS_WRAPPER_HOSTNAME} to the value for a member, and samba3.rpc.samba3.netlogon depended on NSS_WRAPPER_HOSTNAME as a username (until previous commit). Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Make location of log file available in testsChristof Schmitt2017-12-151-0/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13189 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:bind_dlz: Use the 'binddns dir' if possibleAndreas Schneider2017-09-051-0/+7
| | | | | | | | | | | The code makes sure we are backwards compatible. It will first check if we still have files in the private directory, if yes it will use those. If the the file is not in the private directory it will try the binddns dir. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org>
* selftest: Make --include-env and --exclude-env use the base env nameAndrew Bartlett2017-07-241-3/+3
| | | | | | | | | | | | | | | | | | | | The code as deployed would have required (eg) '--include-env=ktest --include-env=ktest:local' which was not done in autobuild, causing tests to be skipped. This patch restores the intended behaviour. This causes 33 testsuites to run, one more test (the newly added samba.tests.ntlmauth) than the old regex provided (before 602772159dfd1213385f42ecbf31136f57693b63). (The regression dropped us down to matching only 7 tests). BUG: https://bugzilla.samba.org/show_bug.cgi?id=12922 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): Mon Jul 24 03:33:01 CEST 2017 on sn-devel-144
* selftest: Allow selftest.pl to run just some environmentsAndrew Bartlett2017-06-301-1/+33
| | | | | | | | This makes it easier to declare that some autobuild environments only run some selftest environments. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* selftest: Use 'ad_dc' as the default for testenvAndreas Schneider2017-06-201-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Make lockdir available in test environmentChristof Schmitt2017-05-081-0/+1
| | | | | Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* selftest: Add a variable to indicate that selftest is runningAndreas Schneider2017-04-291-0/+2
| | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: Start MIT KDC if Kerberos is from MITAndreas Schneider2017-04-291-0/+6
| | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: make sure we don't have any umask limitations for selftestStefan Metzmacher2017-04-101-0/+3
| | | | | | | | | | We create $prefix with 0700 (umask 0077), but everything else should not have a umask limitation (by default). BUG: https://bugzilla.samba.org/show_bug.cgi?id=12709 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: add vampire_2000_dc environmentBob Campbell2017-02-141-0/+7
| | | | | | | | | | | | | This is the equivalent of vampire_dc, but using a domain functional level of DS_DOMAIN_FUNCTION_2000. Using this functional level is useful for tests involving replication and linked attributes, as they behave differently at it. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> BUG: https://bugzilla.samba.org/show_bug.cgi?id=11139 Pair-programmed-with: Bob Campbell <bobcampbell@catalyst.net.nz>
* selftest: show multiple arguments for --helpDouglas Bagnall2017-02-101-1/+1
| | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Remove unsued variables WINBINDD_PRIV_PIPE_DIR and wbsockprivdirAndrew Bartlett2017-01-221-1/+0
| | | | | | | | | | I can not find anything that uses these in the testsuite Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Sun Jan 22 22:15:01 CET 2017 on sn-devel-144
* selftest/selftest.pl: print out '[expanded] command: ' in all error casesStefan Metzmacher2017-01-101-0/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest/selftest.pl: we don't need to call Subunit::progress_pop() twice on ↵Stefan Metzmacher2017-01-101-1/+0
| | | | | | | error Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: make sure we always export KRB5CCNAMEStefan Metzmacher2016-12-171-0/+8
| | | | | | | | | | | | | We should not risk the usage of the users global ccache! This results in unpredictable effects for the user and selftest itself. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Dec 17 22:58:28 CET 2016 on sn-devel-144
* selftest: also export TMPDIRStefan Metzmacher2016-12-171-0/+1
| | | | | | | This should hopefully avoid usage of /tmp. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: Do not include system krb5.conf in selftestAndreas Schneider2016-12-021-0/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12441 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* selftest: Do not use a central credential cacheAndreas Schneider2016-09-271-1/+1
| | | | | | | | We should use seperate caches and set the default_ccache_name accordingly. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest:Samba4: configure "password hash gpg key ids" for ad_dc (if available)Stefan Metzmacher2016-07-221-0/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* selftest: add check password script testBob Campbell2016-07-051-0/+1
| | | | | | | Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Always set up a resolv.conf and use it in samba_dnsupdateAndrew Bartlett2016-06-161-0/+1
| | | | | | | This allows samba_dnsupdate to be tested without resolv_wrapper. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* tests/dns_forwarder: Add testing for DNS forwardingGarming Sam2016-05-031-0/+2
| | | | | | | | | | | The new tests show that single and multiple forwarders work as expected. They also describe the behaviour encountered when the DNS server encounters a CNAME from a forwarded request (which is not to pursue any further). Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Pair-programmed-with: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* CVE-2016-2113: selftest: use "tls verify peer = no_check"Stefan Metzmacher2016-04-121-0/+1
| | | | | | | | | Individual tests will check the more secure values. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11752 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>