[tests] use xa instead of dd in the test case (#7204)

We are switching from dd to xa to conform the latest spec.
This commit is contained in:
whd
2021-11-30 12:39:07 -08:00
committed by GitHub
parent 34b64d3c6a
commit b2c0c1a2af
@@ -239,7 +239,7 @@ class TestDnssdServerOnBr(thread_cert.TestCase):
'ADDITIONAL': [
(dp_instance_name, 'IN', 'SRV', 0, 0, check_border_agent_port, dp_hostname),
(dp_instance_name, 'IN', 'TXT', lambda txt: (isinstance(txt, dict) and txt.get(
'nn') == network_name and 'xp' in txt and 'tv' in txt and 'dd' in txt)),
'nn') == network_name and 'xp' in txt and 'tv' in txt and 'xa' in txt)),
],
})
@@ -259,7 +259,7 @@ class TestDnssdServerOnBr(thread_cert.TestCase):
'QUESTION': [(dp_instance_name, 'IN', 'SRV'),],
'ANSWER': [(dp_instance_name, 'IN', 'SRV', 0, 0, check_border_agent_port, dp_hostname),],
'ADDITIONAL': [(dp_instance_name, 'IN', 'TXT', lambda txt: (isinstance(txt, dict) and txt.get(
'nn') == network_name and 'xp' in txt and 'tv' in txt and 'dd' in txt)),],
'nn') == network_name and 'xp' in txt and 'tv' in txt and 'xa' in txt)),],
})
dig_result = digger.dns_dig(server_addr, dp_instance_name, 'TXT')
@@ -267,7 +267,7 @@ class TestDnssdServerOnBr(thread_cert.TestCase):
dig_result, {
'QUESTION': [(dp_instance_name, 'IN', 'TXT'),],
'ANSWER': [(dp_instance_name, 'IN', 'TXT', lambda txt: (isinstance(txt, dict) and txt.get(
'nn') == network_name and 'xp' in txt and 'tv' in txt and 'dd' in txt)),],
'nn') == network_name and 'xp' in txt and 'tv' in txt and 'xa' in txt)),],
'ADDITIONAL': [(dp_instance_name, 'IN', 'SRV', 0, 0, check_border_agent_port, dp_hostname),],
})