3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-16 00:49:23 +01:00
iwd/autotests/testNetconfig
James Prestwood cdbd59103e auto-t: fix netconfig to handle resolvconf values out of order
The slaac_test was one that would occationally fail, but very rarely,
due to the resolvconf log values appearing in an unexpected order.

This appears to be related to a typo in netconfig-commit which would
not set netconfig-domains and instead set dns_list. This was fixed
with a pending patch:

https://lore.kernel.org/iwd/20240227204242.1509980-1-denkenz@gmail.com/T/#u

But applying this now leads to testNetconfig failing slaac_test
100% of the time.

I'm not familiar enough with resolveconf to know if this test change
is ok, but based on the test behavior the expected log and disk logs
are the same, just in the incorrect order. I'm not sure if this the
log order is deterministic so instead the check now iterates the
expected log and verifies each value appears once in the resolvconf
log.

Here is an example of the expected vs disk logs after running the
test:

Expected:

-a wlan1.dns
nameserver 192.168.1.2
nameserver 3ffe:501:ffff💯:10
nameserver 3ffe:501:ffff💯:50
-a wlan1.domain
search test1
search test2

Resolvconf log:

-a wlan1.domain
search test1
search test2
-a wlan1.dns
nameserver 192.168.1.2
nameserver 3ffe:501:ffff💯:10
nameserver 3ffe:501:ffff💯:50
2024-02-28 11:50:54 -06:00
..
ap-main.conf autotests: DHCPv4 renewal/resend test in testNetconfig 2022-07-12 12:47:09 -05:00
ap-ns1.conf autotests: DHCPv4 renewal/resend test in testNetconfig 2022-07-12 12:47:09 -05:00
auto.psk autotests: Also validate correct hostname sent over DHCPv4 2022-07-12 12:47:09 -05:00
autoconnect.psk auto-t: add netconfig timeout test 2024-01-30 14:00:30 -06:00
connection_test.py auto-t: fix testNetconfig lease parsing 2023-06-19 20:54:25 -05:00
dhcpd-v6.conf auto-t: Verify DNS entries added from DHCP/static 2022-06-22 15:57:36 -05:00
dhcpd.conf autotests: DHCPv4 renewal/resend test in testNetconfig 2022-07-12 12:47:09 -05:00
hw.conf autotests: DHCPv4 renewal/resend test in testNetconfig 2022-07-12 12:47:09 -05:00
main.conf auto-t: Verify DNS entries added from DHCP/static 2022-06-22 15:57:36 -05:00
resolvconf auto-t: Verify DNS entries added from DHCP/static 2022-06-22 15:57:36 -05:00
slaac_test.py auto-t: fix netconfig to handle resolvconf values out of order 2024-02-28 11:50:54 -06:00
stateless_test.py autotests: Add a stateless DHCPv6 test case 2022-10-04 12:45:07 -05:00
static_test.py autotests: Test ACD failure during connect 2022-08-23 15:47:06 -05:00
static.psk autotests: DHCPv4 renewal/resend test in testNetconfig 2022-07-12 12:47:09 -05:00
timeout_test.py auto-t: add netconfig timeout test 2024-01-30 14:00:30 -06:00