summaryrefslogtreecommitdiff
path: root/wintest/wintest.py
Commit message (Collapse)AuthorAgeFilesLines
* PY3: change shebang to python3 in wintest dirJoe Guo2018-12-141-1/+1
| | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org>
* PEP8: fix W291: trailing whitespaceJoe Guo2018-08-241-1/+1
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E713: test for membership should be 'not in'Joe Guo2018-08-241-2/+2
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E711: comparison to None should be 'if cond is not None:'Joe Guo2018-08-241-1/+1
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E703: statement ends with a semicolonJoe Guo2018-08-241-2/+2
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E502: the backslash is redundant between bracketsJoe Guo2018-08-241-3/+3
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E401: multiple imports on one lineJoe Guo2018-08-241-2/+6
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E303: too many blank lines (2)Joe Guo2018-08-241-12/+0
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E302: expected 2 blank lines, found 1Joe Guo2018-08-241-0/+1
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E265: block comment should start with '# 'Joe Guo2018-08-241-1/+1
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E261: at least two spaces before inline commentJoe Guo2018-08-241-1/+1
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E231: missing whitespace after ','Joe Guo2018-08-241-2/+2
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E226: missing whitespace around arithmetic operatorJoe Guo2018-08-241-2/+2
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E225: missing whitespace around operatorJoe Guo2018-08-241-5/+5
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E202: whitespace before ')'Joe Guo2018-08-241-1/+1
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: fix E128: continuation line under-indented for visual indentJoe Guo2018-08-241-12/+12
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PEP8: whitespace fixes in wintest.pyJoe Guo2018-08-241-6/+6
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* python:samba: Use 'binddns dir' in samba-tool and samba_upgradednsAndreas Schneider2017-09-051-3/+3
| | | | | | | | | | This provisions the bind_dlz files in the 'binddns dir'. If you want to migrate to the new files strcuture you can run samba_upgradedns! BUG: https://bugzilla.samba.org/show_bug.cgi?id=12957 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org>
* wintest: Try harder to make wintest force the telnet server to startAndrew Bartlett2014-03-141-0/+11
| | | | | | | | | | | | | We try and force the server to start, and we try to force the TelnetClients group to exist Change-Id: I192f0aaaf283b77065ecc671ca2b59a69781d744 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-on: https://gerrit.samba.org/36 Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Mar 14 14:51:20 CET 2014 on sn-devel-104
* wintest: Try harder to recover from apparent failure to dcpromoAndrew Bartlett2012-11-061-1/+12
| | | | | Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* wintest: Give netdom join more time to completeAndrew Bartlett2012-10-031-1/+1
|
* wintest: Rework support for the internal DNS serverAndrew Bartlett2012-09-121-20/+36
| | | | | | | | | | | We still have to run BIND, the change is if BIND is run to support our own zone, or if we forward to as well as to windows. This also adapts to the new defaults. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* wintest: try to fix settings for the internal dns serverStefan Metzmacher2012-09-121-3/+3
| | | | metze
* s4 dns: use the internal DNS server per defaultKai Blin2012-09-121-3/+3
|
* wintest: enable dns forwarding for internal dnsBjörn Baumbach2012-06-211-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
* wintest: get original nameserver for forwarding on a more general placeBjörn Baumbach2012-06-211-5/+5
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* wintest: extend get_is_dc function with additional expectationsBjörn Baumbach2012-06-211-1/+1
| | | | | | Windows Server 2003 r2 answers "wintest2k3 is not a DC." Signed-off-by: Kai Blin <kai@samba.org>
* wintest: check netcats exitstatus instead of outputBjörn Baumbach2012-06-211-2/+5
| | | | | | There are many netcat implementations with different output messages. Signed-off-by: Kai Blin <kai@samba.org>
* wintest: set recursive queries for internal dnsBjörn Baumbach2012-06-211-0/+3
| | | | | | | Need dns recursive queries = yes, since host expects answers with RA-bit. Signed-off-by: Kai Blin <kai@samba.org>
* wintest: add option to select the dns backendBjörn Baumbach2012-06-211-0/+14
| | | | | | This is an option to use the internal dns. Signed-off-by: Kai Blin <kai@samba.org>
* wintest: set nameserver on a more general placeBjörn Baumbach2012-06-211-2/+0
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* wintest: add option to use ntvfs instead of s3fsBjörn Baumbach2012-06-211-0/+6
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* wintest: introduce a variable to contain the (relative) path of smbclientMichael Adam2012-05-311-2/+3
|
* wintest: give host longer to register the SRV recordAndrew Bartlett2012-02-171-1/+1
|
* wintest: use net rpc to put authenticated users into TelentClients if we need toAndrew Bartlett2012-02-171-0/+13
|
* wintest: Allow Windows VM to have no default routeAndrew Bartlett2012-02-171-3/+4
|
* wintest: Give the Windows VM a little more time to start back upAndrew Bartlett2012-02-161-1/+1
|
* wintest: Cope with nc not timing out even when -w 1 is specifiedAndrew Bartlett2012-02-161-2/+16
|
* wintest: Allow access denied when turning off the firewallAndrew Bartlett2012-02-161-2/+2
|
* wintest: Retry joining the domain a few timesAndrew Bartlett2012-02-161-4/+12
|
* wintest: connect to correct hostname in test_net_useAndrew Bartlett2012-02-161-2/+2
|
* wintest Allow setting of the firewall to failAndrew Bartlett2011-04-071-1/+1
| | | | | | This is also required to allow a telnet connection as non-admin. Andrew Bartlett
* s3-wintest Add test of 'net use' against the Samba3 memberAndrew Bartlett2011-04-071-0/+7
|
* wintest Allow changing the telnet settings to fail, we might not be adminAndrew Bartlett2011-04-071-1/+1
| | | | This allows us to test logging in as non-admin users over telnet
* wintest: fixed syntax highlighting with emacsAndrew Tridgell2011-03-291-1/+1
|
* python: use os.environ[] instead of os.putenv()Andrew Tridgell2011-02-221-2/+2
| | | | | | | using os.putenv() causes too much confusion, as it doesn't update os.getenv() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* wintest upper case the --vms paramter arguments to wintest.pyAndrew Bartlett2011-02-171-1/+4
| | | | This makes it easier to specify
* Typos in wintestZahari Zahariev2010-12-161-2/+2
|
* wintest Add testing of kerberos connections to Windows members of an AD domainAndrew Bartlett2010-12-141-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
* wintest Share more of the S4 test code with the s3 testAndrew Bartlett2010-12-101-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