Univention Bugzilla – Bug 29211
S4 Connector DNS Tests
Last modified: 2023-03-25 06:49:18 CET
Es fehlen Tests für die DNS Synchronisation im S4 Connector.
added tests to check dns syncing of : -a record -aaaa record -alias -forward zone -reverse zone -serial -service record -ttl -txt record
-renamed from 200* to 175* -fixed typo in dnstests.py -added 175sync_create_dns_pointer_record -removed system role -added if __name__ == '__main__' where missing
Currently the function wait_for_sync() waits by default for 1 * (connector/s4/poll/sleep + 3). Please have a look at s4connector.sh ad_wait_for_synchronization() and use the same algorithm.
52_s4connector/dnstests.py: adapted wait_for_sync() to match s4connector.sh/ad_wait_for_syncronisation() Fixed small Bug in test_dns_aaaa_record() with not displayed leading zeros of ipv6 address in dig output 52_s4connector/175*: adapted to use reworked wait_for_sync() 52_s4connector/176*: adapted to use reworked wait_for_sync()
The tests should only be started on a system the connector is configured. Otherwise you have to consider the DRS replication delay. See connector_running_on_this_host function in s4connector.sh.
-function exit_if_connector_not_running added to s4connector.py (similar to connector_running_on_this_host) and implemented into tests -cleaned testscripts
The tests look fine AFAIS.