wintest: wait for the windows DC to register its DNS name
authorAndrew Tridgell <tridge@samba.org>
Wed, 1 Dec 2010 03:27:07 +0000 (14:27 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 1 Dec 2010 05:09:58 +0000 (16:09 +1100)
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>

wintest/test-s4-howto.py

index 185a86df4264d0f8f43af547ec1ba49a3da8cda8..1b4fbd6045b7a9741573b5e190e6b5d25577e68b 100755 (executable)
@@ -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"])