tests: Additional radius_auth/acct_req_attr coverage

The third attribute is needed in the list to cover full parsing code
coverage.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2016-12-28 20:10:18 +02:00
parent 4814a136b6
commit fd7f3440eb

View file

@ -167,8 +167,10 @@ def test_radius_acct(dev, apdev):
params['acct_server_addr'] = "127.0.0.1" params['acct_server_addr'] = "127.0.0.1"
params['acct_server_port'] = "1813" params['acct_server_port'] = "1813"
params['acct_server_shared_secret'] = "radius" params['acct_server_shared_secret'] = "radius"
params['radius_auth_req_attr'] = [ "126:s:Operator", "77:s:testing" ] params['radius_auth_req_attr'] = [ "126:s:Operator", "77:s:testing",
params['radius_acct_req_attr'] = [ "126:s:Operator", "77:s:testing" ] "62:d:1" ]
params['radius_acct_req_attr'] = [ "126:s:Operator", "62:d:1",
"77:s:testing" ]
hapd = hostapd.add_ap(apdev[0], params) hapd = hostapd.add_ap(apdev[0], params)
connect(dev[0], "radius-acct") connect(dev[0], "radius-acct")
dev[1].connect("radius-acct", key_mgmt="WPA-EAP", scan_freq="2412", dev[1].connect("radius-acct", key_mgmt="WPA-EAP", scan_freq="2412",