mirror of
https://github.com/espressif/openthread.git
synced 2026-10-14 11:47:38 +00:00
[tests] remove DUA validation from border router firewall test (#13131)
This commit removes all DUA (Domain Unicast Address) validation and verification steps from test_firewall.py. Since DUA routing features are being phased out or removed, this keeps the firewall test in sync and prevents potential failures during test runs. Specifically: - Removed DUA ping validation from host to router. - Removed DUA collection call (collect_duas). - Removed the packet verifier checks checking for DUA ping traffic.
This commit is contained in:
@@ -127,9 +127,6 @@ class Firewall(thread_cert.TestCase):
|
|||||||
# 1. Host pings router1's OMR from host's infra address.
|
# 1. Host pings router1's OMR from host's infra address.
|
||||||
self.assertTrue(host_ping_ether(router1.get_ip6_address(config.ADDRESS_TYPE.OMR)[0], interface=host.ETH_DEV))
|
self.assertTrue(host_ping_ether(router1.get_ip6_address(config.ADDRESS_TYPE.OMR)[0], interface=host.ETH_DEV))
|
||||||
|
|
||||||
# 2. Host pings router1's DUA from host's infra address.
|
|
||||||
self.assertTrue(host_ping_ether(router1.get_ip6_address(config.ADDRESS_TYPE.DUA), interface=host.ETH_DEV))
|
|
||||||
|
|
||||||
# 3. Host pings router1's OMR from router1's RLOC.
|
# 3. Host pings router1's OMR from router1's RLOC.
|
||||||
self.assertFalse(
|
self.assertFalse(
|
||||||
host_ping_ether(router1.get_ip6_address(config.ADDRESS_TYPE.OMR)[0],
|
host_ping_ether(router1.get_ip6_address(config.ADDRESS_TYPE.OMR)[0],
|
||||||
@@ -215,7 +212,6 @@ class Firewall(thread_cert.TestCase):
|
|||||||
self.collect_rloc16s()
|
self.collect_rloc16s()
|
||||||
self.collect_extra_vars()
|
self.collect_extra_vars()
|
||||||
self.collect_omrs()
|
self.collect_omrs()
|
||||||
self.collect_duas()
|
|
||||||
|
|
||||||
def verify(self, pv: pktverify.packet_verifier.PacketVerifier):
|
def verify(self, pv: pktverify.packet_verifier.PacketVerifier):
|
||||||
pkts = pv.pkts
|
pkts = pv.pkts
|
||||||
@@ -231,12 +227,6 @@ class Firewall(thread_cert.TestCase):
|
|||||||
pkts.filter_wpan_src64(vars['BR_1']).filter_wpan_dst16(
|
pkts.filter_wpan_src64(vars['BR_1']).filter_wpan_dst16(
|
||||||
vars['Router_1_RLOC16']).filter_ping_request(identifier=_pkt.icmpv6.echo.identifier).must_next()
|
vars['Router_1_RLOC16']).filter_ping_request(identifier=_pkt.icmpv6.echo.identifier).must_next()
|
||||||
|
|
||||||
# 2. Host pings router1's DUA from host's infra address.
|
|
||||||
_pkt = pkts.filter_eth_src(vars['Host_ETH']).filter_ipv6_dst(
|
|
||||||
vars['Router_1_DUA']).filter_ping_request().must_next()
|
|
||||||
pkts.filter_wpan_src64(vars['BR_1']).filter_wpan_dst16(
|
|
||||||
vars['Router_1_RLOC16']).filter_ping_request(identifier=_pkt.icmpv6.echo.identifier).must_next()
|
|
||||||
|
|
||||||
# 3. Host pings router1's OMR from router1's RLOC.
|
# 3. Host pings router1's OMR from router1's RLOC.
|
||||||
_pkt = pkts.filter_eth_src(vars['Host_ETH']).filter_ipv6_src_dst(
|
_pkt = pkts.filter_eth_src(vars['Host_ETH']).filter_ipv6_src_dst(
|
||||||
vars['Router_1_RLOC'], vars['Router_1_OMR'][0]).filter_ping_request().must_next()
|
vars['Router_1_RLOC'], vars['Router_1_OMR'][0]).filter_ping_request().must_next()
|
||||||
|
|||||||
Reference in New Issue
Block a user