3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-05 11:39:24 +01:00
iwd/autotests/util
Andrew Zaborowski 187706c348 autotests: DHCPv4 renewal/resend test in testNetconfig
Test that the DHCPv4 lease got renewed after the T1 timer runs out.
Then also simulate the DHCPREQUEST during renew being lost and
retransmitted and the lease eventually getting renewed T1 + 60s later.

The main downside is that this test will inevitably take a while if
running in Qemu without the time travel ability.

Update the test and some utility code to run hostapd in an isolated net
namespace for connection_test.py.  We now need a second hostapd
instance though because in static_test.py we test ACD and we need to
produce an IP conflict.  Moving the hostapd instance unexpectedly fixes
dhcpd's internal mechanism to avoid IP conflicts and it would no longer
assign 192.168.1.10 to the second client, it'd notice that address was
already in use and assign the next free address, or fail if there was
none.  So add a second hostapd instance that runs in the main namespace
together with the statically-configured client, it turns out the test
relies on the kernel being unable to deliver IP traffic to interfaces on
the same system.
2022-07-12 12:47:09 -05:00
..
config.py auto-t: introduce pure python test-runner re-write 2020-09-10 17:59:49 -05:00
ead.py auto-t: correctly import Mapping from collections 2022-06-01 11:01:50 -05:00
hlrauc.py auto-t: hlrauc.py: remove unix socket on cleanup 2021-02-26 10:07:17 -06:00
hostapd.py autotests: DHCPv4 renewal/resend test in testNetconfig 2022-07-12 12:47:09 -05:00
hwsim.py auto-t: correctly import Mapping from collections 2022-06-01 11:01:50 -05:00
iwd.py auto-t: iwd.py: add DPP properties 2022-06-30 13:38:02 -05:00
ofono.py auto-t: ofono.py: use non_block_wait 2021-08-13 11:16:19 -05:00
testutil.py auto-t: In testNetconfig verify routes created 2022-06-22 15:57:22 -05:00
wpas.py auto-t: allow skipping tests is wpa_supplicant is not found 2022-06-02 16:47:02 -05:00