summaryrefslogtreecommitdiff
path: root/python/samba/tests/getdcname.py
AgeCommit message (Collapse)AuthorFilesLines
2023-08-30python:tests: Complete assertion messagesJoseph Sutton1-2/+2
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-08-30python: Remove unused importsJoseph Sutton1-1/+0
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-06-23python:samba:tests: Fix code spellingAndreas Schneider1-8/+8
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-06-14selftest: Assert trust realm is not NoneJoseph Sutton1-2/+1
This is consistent with the other tests in this file. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-05-31sefltest: Improve getdcname test by confirming the _REQUIRED flag behavioursAndrew Bartlett1-2/+173
We do this by checking what the underlying CLDAP netlogon call returns. This also validates that behaviour. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2023-05-31selftest: Fix remaining incorrect references to 2012 -> 2012R2 FL in ↵Andrew Bartlett1-4/+4
GetDCNameEx test Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2023-05-31selftest: Change self.assertTrue(x is not None) -> self.assertIsNotNone(x)Andrew Bartlett1-30/+30
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2023-05-29selftest: Confirm that the flags like DS_DIRECTORY_SERVICE_9_REQUIRED workAndrew Bartlett1-0/+83
We need to confirm this both for forwarded requests, and also for requests direct to the possible DC. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon May 29 23:29:50 UTC 2023 on atb-devel-224
2023-05-29selftest: Rework samba.tests.getdcname not to use ncalrpcAndrew Bartlett1-1/+1
This test is able to operate over the network, which aids testing against a comparative windows DC. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
2023-05-29selftest: Assert that we have a trust in samba.tests.getdcnameAndrew Bartlett1-18/+9
We must ensure this test cannot became inoperative because the environment it was run against has no trust. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
2019-01-11selftest: Improve an error messageVolker Lendecke1-1/+2
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Fri Jan 11 06:01:01 CET 2019 on sn-devel-144
2018-10-25python/tests/getdcname: remove unused importsDouglas Bagnall1-3/+0
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org>
2018-05-04tests/getdcname: Add a number of tests for GetDCNameExGarming Sam1-0/+459
This will test the winbind forwarding to deal with sites that the target DC does not exist in. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13365 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>