dynamicdns: Wait after changing domain name in tests

After a domain name change, Let's Encrypt will restart the webserver
and could cause a connection failure.

Test: DynamicDNS functional tests are passing.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
James Valleroy 2021-03-23 10:52:26 -04:00 committed by Veiko Aasa
parent 043b329e7d
commit bdd078a406
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -39,6 +39,10 @@ def _configure(browser):
'http://myip.datasystems24.de')
functional.submit(browser)
# After a domain name change, Let's Encrypt will restart the web
# server and could cause a connection failure.
functional.eventually(functional.nav_to_module, [browser, 'dynamicdns'])
def _has_original_config(browser):
functional.nav_to_module(browser, 'dynamicdns')
@ -71,3 +75,7 @@ def _change_config(browser):
browser.find_by_id('id_dynamicdns_ipurl').fill(
'http://myip2.datasystems24.de')
functional.submit(browser)
# After a domain name change, Let's Encrypt will restart the web
# server and could cause a connection failure.
functional.eventually(functional.nav_to_module, [browser, 'dynamicdns'])