summaryrefslogtreecommitdiff
path: root/wintest/wintest.py
AgeCommit message (Collapse)AuthorFilesLines
2012-06-21wintest: enable dns forwarding for internal dnsBjörn Baumbach1-0/+2
Internal DNS will forward dns requests to the original nameserver (specified in resolv.conf). Signed-off-by: Kai Blin <kai@samba.org> Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Thu Jun 21 23:47:35 CEST 2012 on sn-devel-104
2012-06-21wintest: get original nameserver for forwarding on a more general placeBjörn Baumbach1-5/+5
Signed-off-by: Kai Blin <kai@samba.org>
2012-06-21wintest: extend get_is_dc function with additional expectationsBjörn Baumbach1-1/+1
Windows Server 2003 r2 answers "wintest2k3 is not a DC." Signed-off-by: Kai Blin <kai@samba.org>
2012-06-21wintest: check netcats exitstatus instead of outputBjörn Baumbach1-2/+5
There are many netcat implementations with different output messages. Signed-off-by: Kai Blin <kai@samba.org>
2012-06-21wintest: set recursive queries for internal dnsBjörn Baumbach1-0/+3
Need dns recursive queries = yes, since host expects answers with RA-bit. Signed-off-by: Kai Blin <kai@samba.org>
2012-06-21wintest: add option to select the dns backendBjörn Baumbach1-0/+14
This is an option to use the internal dns. Signed-off-by: Kai Blin <kai@samba.org>
2012-06-21wintest: set nameserver on a more general placeBjörn Baumbach1-2/+0
Signed-off-by: Kai Blin <kai@samba.org>
2012-06-21wintest: add option to use ntvfs instead of s3fsBjörn Baumbach1-0/+6
Signed-off-by: Kai Blin <kai@samba.org>
2012-05-31wintest: introduce a variable to contain the (relative) path of smbclientMichael Adam1-2/+3
2012-02-17wintest: give host longer to register the SRV recordAndrew Bartlett1-1/+1
2012-02-17wintest: use net rpc to put authenticated users into TelentClients if we need toAndrew Bartlett1-0/+13
2012-02-17wintest: Allow Windows VM to have no default routeAndrew Bartlett1-3/+4
2012-02-16wintest: Give the Windows VM a little more time to start back upAndrew Bartlett1-1/+1
2012-02-16wintest: Cope with nc not timing out even when -w 1 is specifiedAndrew Bartlett1-2/+16
2012-02-16wintest: Allow access denied when turning off the firewallAndrew Bartlett1-2/+2
2012-02-16wintest: Retry joining the domain a few timesAndrew Bartlett1-4/+12
2012-02-16wintest: connect to correct hostname in test_net_useAndrew Bartlett1-2/+2
2011-04-07wintest Allow setting of the firewall to failAndrew Bartlett1-1/+1
This is also required to allow a telnet connection as non-admin. Andrew Bartlett
2011-04-07s3-wintest Add test of 'net use' against the Samba3 memberAndrew Bartlett1-0/+7
2011-04-07wintest Allow changing the telnet settings to fail, we might not be adminAndrew Bartlett1-1/+1
This allows us to test logging in as non-admin users over telnet
2011-03-29wintest: fixed syntax highlighting with emacsAndrew Tridgell1-1/+1
2011-02-22python: use os.environ[] instead of os.putenv()Andrew Tridgell1-2/+2
using os.putenv() causes too much confusion, as it doesn't update os.getenv() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-17wintest upper case the --vms paramter arguments to wintest.pyAndrew Bartlett1-1/+4
This makes it easier to specify
2010-12-16Typos in wintestZahari Zahariev1-2/+2
2010-12-14wintest Add testing of kerberos connections to Windows members of an AD domainAndrew Bartlett1-3/+42
This improves the Samba3 wintest script to test against Windows7 and WinXP domain members, and Windows7 standalone servers. To do this, more of the samba4 script is put in common, and we splut up the starting of the VMs from the preperation of the VM. This also improves the nmblookup command parsing to cope with both the samba3 and samba4 nmblookup commands. A krb5.conf is now provided for both s3 and s4 tests. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Dec 14 01:54:46 CET 2010 on sn-devel-104
2010-12-10wintest Share more of the S4 test code with the s3 testAndrew Bartlett1-0/+239
This allows us to run a private BIND in the S3 test, and allows the S3 test to join a freshly provisioned AD instance if the VM isn't already configured. Andrew Bartlett
2010-12-09wintest Remove the password expiry as the first stepAndrew Bartlett1-1/+10
This is particularly important before dcpromo, as the password will otherwise be expired in the new domain. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Dec 9 13:33:00 CET 2010 on sn-devel-104
2010-12-03wintest: put most of the main program login in wintest.pyAndrew Tridgell1-0/+47
this makes it easier to create new tests Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Dec 3 06:17:44 CET 2010 on sn-devel-104
2010-12-01wintest: cope with w2k3 form of dcdiag outputAndrew Tridgell1-2/+6
2010-12-01wintest: make command matching case insensitive by defaultAndrew Tridgell1-2/+5
the new BASEDN changes break the RODC join otherwise Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Dec 1 06:54:13 CET 2010 on sn-devel-104
2010-12-01wintest Another way to work out if a Windows machine is a DCAndrew Bartlett1-2/+15
it's not perfect (may fail on member servers) but it's picks up the difference between standalone and DC OK. Andrew Bartlett
2010-12-01wintest Make the new --vms option default to running all tests.Andrew Bartlett1-1/+2
Andrew Bartlett
2010-12-01wintest Set WIN_LCREALM and WIN_BASEDN automaticallyAndrew Bartlett1-1/+7
Also this uppper cases WIN_REALM, to avoid this being sensitive based on the configuration file. Andrew Bartlett
2010-12-01wintest Add a function to shut down all the managed VMs at the startAndrew Bartlett1-0/+8
This helps ensure that old virtual machines don't interfer with a new test run. Andrew Bartlett
2010-12-01wintest Add automatic dcpromo is the host isn't a DC yetAndrew Bartlett1-0/+10
This is slow, and requires an extra reboot, but should be consistent and reproducible. Andrew Bartlett
2010-12-01wintest: fixed casefold handling in expect callsAndrew Tridgell1-1/+6
2010-12-01wintest: make expect calls case insensitive by defaultAndrew Tridgell1-7/+10
2010-12-01wintest: added --vms optionAndrew Tridgell1-0/+12
this allows you to run tests associated with a specified list of VMs
2010-11-29wintest: cope with the heimdal version of kinitAndrew Tridgell1-4/+6
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Nov 29 08:49:36 CET 2010 on sn-devel-104
2010-11-27wintest: cope with VMs sometimes not rebootingAndrew Tridgell1-1/+28
my w2k8 image occasionally gets stuck in the early stages of booting. This adds code to detect a failed reboot, in which case the VM is reset Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sat Nov 27 02:42:19 CET 2010 on sn-devel-104
2010-11-27wintest: handle missing firewall commands Andrew Tridgell1-1/+3
my w2k3 box doesn't have these firewall commands
2010-11-24wintest: added an IPv6 address, and use fully qualified hostnameAndrew Tridgell1-6/+13
this also makes the resolv.conf handling more robust Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Nov 24 11:34:30 CET 2010 on sn-devel-104
2010-11-24wintest: remove reliance on hostname in /etc/hostsAndrew Tridgell1-0/+3
- don't setwinvars() in test code - use fully qualified names where possible - don't delete named and rndc config
2010-11-24wintest: fixed interface handling and DNS forwardingAndrew Tridgell1-4/+36
- allow for _IP vars on VMs - resolve IPs using nmblookup - forward DNS requests for windows domains
2010-11-23wintest: tidyups and new conf variablesAndrew Tridgell1-10/+6
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Nov 23 13:01:10 CET 2010 on sn-devel-104
2010-11-23wintest Evolve wintest to handle it's own BIND nameserverAndrew Bartlett1-1/+23
The changes here start our own copy of BIND, listening on a new interface that we create at the start of the script. The user must specify the IP address etc that this interface will have, and BIND and Samba will bind to that interface only. This means that we won't conflict with an existing BIND on the system, so long as it isn't configured to listen on all interfaces. We also auto-create the /etc/resolv.conf and restore it at the end of the script, using the existing server value from the script as a forwarder. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Nov 23 08:30:34 CET 2010 on sn-devel-104
2010-11-23wintest Improve wintest's handling of IP addresses and add more auto-setupAndrew Bartlett1-12/+62
- Don't change the IP address if DHCP is not in use The main reason to 'fix' the IP is to get around Dynamic DNS issues caused by the DHCP server, if the VM is already on a fixed IP, it does not matter. - Set the maximum telnet connection limit to 1024 This ensures that we can always make a new connection, regardless of the existing configuration. We also catch more conditions when the server has restricted the number of connections, and try again. - Set the route after the connection drops out My WinXP box always wants to drop the default route - Set the DNS as a distinct step My WinXP box drops the connection when we set DNS servers Andrew Bartlett
2010-11-23wintest Allow substitute to cope with objects like pexpect.EOFAndrew Bartlett1-0/+3
These are not strings, but may get passed into this function on the way to pexpect. Andrew Bartlett
2010-11-23wintest Set the virtual machine IP to match it's dynamic IP, but don't use DHCPAndrew Bartlett1-4/+66
The idea here is that the virtual machine stays on the address allocated by DHCP, but is configured statically. This avoids the need to manually set the address on the host, but avoids the host being instructed by DHCP not to do Dynamic DNS. Andrew Bartlett
2010-11-19wintest: added del_files, write_file and casefoldAndrew Tridgell1-3/+21