#1752 - Moved dns_server ip address from the NIC to the Node. Updated the arcd_uc2_network so that clients and servers have a dns server. Added sys_log entries for DNSServer and DNSClient. MAde the DNSServer always rend a reply, but for the resolved IP address to be empty if it cannot be resolved.
This commit is contained in:
@@ -20,11 +20,9 @@ def test_dns_client_server(uc2_network):
|
||||
dns_server.show()
|
||||
|
||||
# fake domain should not be added to dns cache
|
||||
dns_client.check_domain_exists(
|
||||
target_domain="fake-domain.com", dest_ip_address=IPv4Address(domain_controller.ip_address)
|
||||
)
|
||||
assert not dns_client.check_domain_exists(target_domain="fake-domain.com")
|
||||
assert dns_client.dns_cache.get("fake-domain.com", None) is None
|
||||
|
||||
# arcd.com is registered in dns server and should be saved to cache
|
||||
dns_client.check_domain_exists(target_domain="arcd.com", dest_ip_address=IPv4Address(domain_controller.ip_address))
|
||||
assert dns_client.check_domain_exists(target_domain="arcd.com")
|
||||
assert dns_client.dns_cache.get("arcd.com", None) is not None
|
||||
|
||||
Reference in New Issue
Block a user