summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-12-01 14:27:07 +1100
committerAndrew Tridgell <tridge@samba.org>2010-12-01 16:09:58 +1100
commit90215c53df47728ea42faee15a9391ad0625b676 (patch)
tree49bc26be0e2b02795cc91d528e2aca8330841e80
parenta940d5d344991968d2a6383bdfcd93e9aaa15285 (diff)
downloadsamba-90215c53df47728ea42faee15a9391ad0625b676.tar.gz
samba-90215c53df47728ea42faee15a9391ad0625b676.tar.bz2
samba-90215c53df47728ea42faee15a9391ad0625b676.zip
wintest: wait for the windows DC to register its DNS name
after a windows DC uses dcpromo to join our domain, it can take a while for it to register its DNS name Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rwxr-xr-xwintest/test-s4-howto.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wintest/test-s4-howto.py b/wintest/test-s4-howto.py
index 185a86df42..1b4fbd6045 100755
--- a/wintest/test-s4-howto.py
+++ b/wintest/test-s4-howto.py
@@ -326,6 +326,9 @@ def test_dcpromo(t, vm):
t.info("Checking the dcpromo join is OK")
t.chdir('${PREFIX}')
t.port_wait("${WIN_IP}", 139)
+ t.retry_cmd("host -t A ${WIN_HOSTNAME}.${LCREALM}. ${INTERFACE_IP}",
+ ['${WIN_HOSTNAME}.${LCREALM} has address'],
+ retries=30, delay=10, casefold=True)
t.retry_cmd('bin/smbclient -L ${WIN_HOSTNAME}.${LCREALM} -Uadministrator@${LCREALM}%${PASSWORD1}', ["C$", "IPC$", "Sharename"])
t.cmd_contains("host -t A ${WIN_HOSTNAME}.${LCREALM}.", ['has address'])
t.cmd_contains('bin/smbclient -L ${WIN_HOSTNAME}.${LCREALM} -Utestallowed@${LCREALM}%${PASSWORD1}', ["C$", "IPC$", "Sharename"])