From: Jouni Malinen Date: Sun, 14 Mar 2021 15:59:52 +0000 (+0200) Subject: tests: RADIUS Accounting and interim updates failing X-Git-Tag: hostap_2_10~404 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d251654dbdada11948a87d0b64a416375eb7be1;p=thirdparty%2Fhostap.git tests: RADIUS Accounting and interim updates failing Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index f82e6e074..ca96c979e 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -313,6 +313,20 @@ def test_radius_acct_interim(dev, apdev): req_e = int(as_mib_end['radiusAccServTotalRequests']) if req_e < req_s + 3: raise Exception("Unexpected RADIUS server acct MIB value (req_e=%d req_s=%d)" % (req_e, req_s)) + # Disable Accounting server and wait for interim update retries to fail and + # expire. + as_hapd.disable() + time.sleep(15) + as_hapd.enable() + ok = False + for i in range(10): + time.sleep(1) + as_mib = as_hapd.get_mib(param="radius_server") + if int(as_mib['radiusAccServTotalRequests']) > 0: + ok = True + break + if not ok: + raise Exception("Accounting updates did not seen after server restart") def test_radius_acct_interim_unreachable(dev, apdev): """RADIUS Accounting interim update with unreachable server"""