]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add description for test cases that were missing it
authorJouni Malinen <j@w1.fi>
Sat, 16 May 2020 22:29:40 +0000 (01:29 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 16 May 2020 22:31:19 +0000 (01:31 +0300)
All test_*() functions are expected to use __doc__ to provide a short
description of the test case.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_ft.py
tests/hwsim/test_ap_psk.py
tests/hwsim/test_hs20_filter.py

index 1162f98af233d2a5c72cce31bfc1de854ed9e07f..f2ca6f1ea029ccf5bd3cbc11acb67726518807b2 100644 (file)
@@ -1530,6 +1530,7 @@ def test_ap_ft_eap_pull(dev, apdev):
     generic_ap_ft_eap_pull(dev, apdev)
 
 def test_ap_ft_eap_pull_vlan(dev, apdev):
+    """WPA2-EAP-FT AP (pull PMK) - with VLAN"""
     generic_ap_ft_eap_pull(dev, apdev, vlan=True)
 
 def test_ap_ft_eap_pull_wildcard(dev, apdev):
index f52e38843b5651cf3ef8a49884a07e8a83cbd0a7..116733a1b1e0bb574a6ddae79e0dc38b48044d2c 100644 (file)
@@ -2935,6 +2935,7 @@ def test_rsn_ie_proto_psk_sta(dev, apdev):
 
 @remote_compatible
 def test_ap_cli_order(dev, apdev):
+    """hostapd configuration parameter SET ordering"""
     ssid = "test-rsn-setup"
     passphrase = 'zzzzzzzz'
 
index 5194339c77be0b720f6d69687319a6b6a8e91d52..11cf347563197cace280f7e1db427d823d173e14 100644 (file)
@@ -104,9 +104,11 @@ def _test_ip4_gtk_drop(devs, apdevs, params, dst):
             pass
 
 def test_ip4_gtk_drop_bcast(devs, apdevs, params):
+    """Hotspot 2.0 frame filtering - IPv4 GTK drop broadcast"""
     _test_ip4_gtk_drop(devs, apdevs, params, dst='ffffffffffff')
 
 def test_ip4_gtk_drop_mcast(devs, apdevs, params):
+    """Hotspot 2.0 frame filtering - IPv4 GTK drop multicast"""
     _test_ip4_gtk_drop(devs, apdevs, params, dst='ff0000000000')
 
 def _test_ip6_gtk_drop(devs, apdevs, params, dst):
@@ -140,12 +142,15 @@ def _test_ip6_gtk_drop(devs, apdevs, params, dst):
             pass
 
 def test_ip6_gtk_drop_bcast(devs, apdevs, params):
+    """Hotspot 2.0 frame filtering - IPv6 GTK drop broadcast"""
     _test_ip6_gtk_drop(devs, apdevs, params, dst='ffffffffffff')
 
 def test_ip6_gtk_drop_mcast(devs, apdevs, params):
+    """Hotspot 2.0 frame filtering - IPv6 GTK drop multicast"""
     _test_ip6_gtk_drop(devs, apdevs, params, dst='ff0000000000')
 
 def test_ip4_drop_gratuitous_arp(devs, apdevs, params):
+    """Hotspot 2.0 frame filtering - IPv4 drop gratuitous ARP"""
     require_under_vm()
     procfile = '/proc/sys/net/ipv4/conf/%s/drop_gratuitous_arp' % devs[0].ifname
     if not os.path.exists(procfile):
@@ -173,6 +178,7 @@ def test_ip4_drop_gratuitous_arp(devs, apdevs, params):
             subprocess.call(['ip', 'neigh', 'del', '10.0.0.1', 'dev', dev.ifname])
 
 def test_ip6_drop_unsolicited_na(devs, apdevs, params):
+    """Hotspot 2.0 frame filtering - IPv6 drop unsolicited NA"""
     require_under_vm()
     procfile = '/proc/sys/net/ipv6/conf/%s/drop_unsolicited_na' % devs[0].ifname
     if not os.path.exists(procfile):