From: Jouni Malinen Date: Sun, 1 Mar 2015 15:35:06 +0000 (+0200) Subject: tests: RADIUS Accounting server unreachable and multiple STAs X-Git-Tag: hostap_2_4~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b5664f0fbe4542e109b3bf010274720ae7cfbb2;p=thirdparty%2Fhostap.git tests: RADIUS Accounting server unreachable and multiple STAs This verifies behavior on reaching RADIUS_CLIENT_MAX_ENTRIES. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index b70020647..ae46828f4 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -146,6 +146,19 @@ def test_radius_acct_unreachable3(dev, apdev): if req_e <= req_s: raise Exception("Unexpected RADIUS server acct MIB value") +def test_radius_acct_unreachable4(dev, apdev): + """RADIUS Accounting server unreachable and multiple STAs""" + params = hostapd.wpa2_eap_params(ssid="radius-acct") + params['acct_server_addr'] = "127.0.0.1" + params['acct_server_port'] = "18139" + params['acct_server_shared_secret'] = "radius" + hostapd.add_ap(apdev[0]['ifname'], params) + hapd = hostapd.Hostapd(apdev[0]['ifname']) + for i in range(20): + connect(dev[0], "radius-acct") + dev[0].request("REMOVE_NETWORK all") + dev[0].wait_disconnected() + def test_radius_acct(dev, apdev): """RADIUS Accounting""" as_hapd = hostapd.Hostapd("as")