From: Jouni Malinen Date: Tue, 27 Dec 2016 15:14:49 +0000 (+0200) Subject: tests: Additional HS20_WNM_NOTIF coverage X-Git-Tag: hostap_2_7~1916 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0d215d4b7f6fccb17a0e3cad96dac77d05af2b3;p=thirdparty%2Fhostap.git tests: Additional HS20_WNM_NOTIF coverage Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 2fea6dddb..e8e0001f3 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -2525,6 +2525,8 @@ def _test_ap_hs20_remediation_required_ctrl(dev, apdev): raise Exception("Unexpected HS20_WNM_NOTIF success") if "FAIL" not in hapd.request("HS20_WNM_NOTIF " + addr + " https://12345678923456789842345678456783456712345678923456789842345678456783456712345678923456789842345678456783456712345678923456789842345678456783456712345678923456789842345678456783456712345678923456789842345678456783456712345678923456789842345678456783456712345678927.very.long.example.com/"): raise Exception("Unexpected HS20_WNM_NOTIF success") + if "OK" not in hapd.request("HS20_WNM_NOTIF " + addr + " "): + raise Exception("HS20_WNM_NOTIF failed with empty URL") def test_ap_hs20_session_info(dev, apdev): """Hotspot 2.0 connection and session information from RADIUS"""