tests: RADIUS Accounting server unreachable and multiple STAs

This verifies behavior on reaching RADIUS_CLIENT_MAX_ENTRIES.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-03-01 17:35:06 +02:00
parent 48d9065f7d
commit 1b5664f0fb

View File

@ -146,6 +146,19 @@ def test_radius_acct_unreachable3(dev, apdev):
if req_e <= req_s: if req_e <= req_s:
raise Exception("Unexpected RADIUS server acct MIB value") 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): def test_radius_acct(dev, apdev):
"""RADIUS Accounting""" """RADIUS Accounting"""
as_hapd = hostapd.Hostapd("as") as_hapd = hostapd.Hostapd("as")