From 90215c53df47728ea42faee15a9391ad0625b676 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 1 Dec 2010 14:27:07 +1100 Subject: 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 --- wintest/test-s4-howto.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wintest/test-s4-howto.py b/wintest/test-s4-howto.py index 185a86df426..1b4fbd6045b 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"]) -- cgit v1.2.1